RTC Toolkit  1.0.0
Functions
operations.hpp File Reference

Operations for configTool. More...

#include <string>
#include <rtctk/componentFramework/repositoryIf.hpp>
#include <rtctk/componentFramework/dataPointPath.hpp>

Go to the source code of this file.

Functions

std::unique_ptr< rtctk::componentFramework::RepositoryIfGetRepository (std::string repo)
 
int DoList (std::unique_ptr< rtctk::componentFramework::RepositoryIf > &&rtr, const rtctk::componentFramework::DataPointPath &path)
 
int GetData (std::unique_ptr< rtctk::componentFramework::RepositoryIf > &&rtr, const rtctk::componentFramework::DataPointPath &path)
 
int SetData (std::unique_ptr< rtctk::componentFramework::RepositoryIf > &&rtr, const rtctk::componentFramework::DataPointPath &path, std::string type, std::string value)
 
int Delete (std::unique_ptr< rtctk::componentFramework::RepositoryIf > &&rtr, const rtctk::componentFramework::DataPointPath &path)
 
int DoRead (std::unique_ptr< rtctk::componentFramework::RepositoryIf > &&rtr, const rtctk::componentFramework::DataPointPath &path, const std::string &file)
 
int DoWrite (std::unique_ptr< rtctk::componentFramework::RepositoryIf > &&rtr, const rtctk::componentFramework::DataPointPath &path, std::string type, const std::string &file)
 
int GetType (std::unique_ptr< rtctk::componentFramework::RepositoryIf > &&rtr, const rtctk::componentFramework::DataPointPath &path)
 
int DoPopulate (const std::string &persistent_repo, const std::string &runtime_repo)
 
int DoInitMetadata ()
 Initialises the type metadata in the CII configuration service for the OLDB and Runtime Configuration Repository. More...
 

Detailed Description

Operations for configTool.

Function Documentation

◆ Delete()

int Delete ( std::unique_ptr< rtctk::componentFramework::RepositoryIf > &&  rtr,
const rtctk::componentFramework::DataPointPath path 
)

◆ DoInitMetadata()

int DoInitMetadata ( )

Initialises the type metadata in the CII configuration service for the OLDB and Runtime Configuration Repository.

Metadata related to various data types needs to be initialised in the CII configuration service before the RuntimeRepoAdapter or OldbAdapter can be used with the standard types supported by the RTC Toolkit. This function will initialise the needed metadata if it is missing. If the metadata for the types already exists then this function will reset it to the default initial values.

Returns
EXIT_SUCCESS if the metadata was successfully updated and EXIT_FAILURE if an error occurred. In case of error, an appropriate message is printed to standard output.

◆ DoList()

int DoList ( std::unique_ptr< rtctk::componentFramework::RepositoryIf > &&  rtr,
const rtctk::componentFramework::DataPointPath path 
)

◆ DoPopulate()

int DoPopulate ( const std::string &  persistent_repo,
const std::string &  runtime_repo 
)

◆ DoRead()

int DoRead ( std::unique_ptr< rtctk::componentFramework::RepositoryIf > &&  rtr,
const rtctk::componentFramework::DataPointPath path,
const std::string &  file 
)

◆ DoWrite()

int DoWrite ( std::unique_ptr< rtctk::componentFramework::RepositoryIf > &&  rtr,
const rtctk::componentFramework::DataPointPath path,
std::string  type,
const std::string &  file 
)

◆ GetData()

int GetData ( std::unique_ptr< rtctk::componentFramework::RepositoryIf > &&  rtr,
const rtctk::componentFramework::DataPointPath path 
)

◆ GetRepository()

std::unique_ptr<rtctk::componentFramework::RepositoryIf> GetRepository ( std::string  repo)

◆ GetType()

int GetType ( std::unique_ptr< rtctk::componentFramework::RepositoryIf > &&  rtr,
const rtctk::componentFramework::DataPointPath path 
)

◆ SetData()

int SetData ( std::unique_ptr< rtctk::componentFramework::RepositoryIf > &&  rtr,
const rtctk::componentFramework::DataPointPath path,
std::string  type,
std::string  value 
)