RTC Toolkit
1.0.0
|
Implementation of configTool Operations. More...
#include <cstddef>
#include <exception>
#include <iostream>
#include <optional>
#include <string>
#include <typeindex>
#include <typeinfo>
#include <utility>
#include <boost/core/demangle.hpp>
#include <boost/optional.hpp>
#include <boost/program_options.hpp>
#include <ciiConfigApi.hpp>
#include <ciiOldbUtil.hpp>
#include <meta/mdOldb.hpp>
#include <meta/mdOldbBinary.hpp>
#include <meta/mdOldbMatrix.hpp>
#include <../../../componentFramework/services/common/src/fitsIoFunctions.hpp>
#include <operations.hpp>
#include <rtctk/componentFramework/dataPointPath.hpp>
#include <rtctk/componentFramework/exceptions.hpp>
#include <rtctk/componentFramework/matrixBuffer.hpp>
#include <rtctk/componentFramework/persistentRepoIf.hpp>
#include <rtctk/componentFramework/runtimeRepoIf.hpp>
#include <rtctk/componentFramework/serviceDiscovery.hpp>
#include <rtctk/rtcSupervisor/populateConfig.hpp>
Functions | |
template<class T > | |
void | print_vector (std::vector< T > vec, bool endline=true) |
template<class T > | |
void | print_matrix (MatrixBuffer< T > mat) |
int | GetData (std::unique_ptr< RepositoryIf > &&rtr, const DataPointPath &path) |
int | Delete (std::unique_ptr< RepositoryIf > &&rtr, const DataPointPath &path) |
int | DoList (std::unique_ptr< RepositoryIf > &&rtr, const DataPointPath &path) |
int | SetData (std::unique_ptr< RepositoryIf > &&rtr, const DataPointPath &path, std::string type, std::string value) |
int | DoRead (std::unique_ptr< RepositoryIf > &&rtr, const DataPointPath &path, const std::string &file) |
int | DoWrite (std::unique_ptr< RepositoryIf > &&rtr, const DataPointPath &path, std::string type, const std::string &file) |
int | GetDataWithServiceDiscovery (const elt::mal::Uri &endpoint, const DataPointPath &component_name, const DataPointPath &attribute) |
std::unique_ptr< RepositoryIf > | GetRepository (std::string repo) |
int | GetType (std::unique_ptr< RepositoryIf > &&rtr, const 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... | |
Implementation of configTool Operations.
int Delete | ( | std::unique_ptr< RepositoryIf > && | rtr, |
const DataPointPath & | path | ||
) |
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.
int DoList | ( | std::unique_ptr< RepositoryIf > && | rtr, |
const DataPointPath & | path | ||
) |
int DoPopulate | ( | const std::string & | persistent_repo, |
const std::string & | runtime_repo | ||
) |
int DoRead | ( | std::unique_ptr< RepositoryIf > && | rtr, |
const DataPointPath & | path, | ||
const std::string & | file | ||
) |
int DoWrite | ( | std::unique_ptr< RepositoryIf > && | rtr, |
const DataPointPath & | path, | ||
std::string | type, | ||
const std::string & | file | ||
) |
int GetData | ( | std::unique_ptr< RepositoryIf > && | rtr, |
const DataPointPath & | path | ||
) |
int GetDataWithServiceDiscovery | ( | const elt::mal::Uri & | endpoint, |
const DataPointPath & | component_name, | ||
const DataPointPath & | attribute | ||
) |
std::unique_ptr<RepositoryIf> GetRepository | ( | std::string | repo | ) |
int GetType | ( | std::unique_ptr< RepositoryIf > && | rtr, |
const DataPointPath & | path | ||
) |
void print_matrix | ( | MatrixBuffer< T > | mat | ) |
void print_vector | ( | std::vector< T > | vec, |
bool | endline = true |
||
) |
int SetData | ( | std::unique_ptr< RepositoryIf > && | rtr, |
const DataPointPath & | path, | ||
std::string | type, | ||
std::string | value | ||
) |