13#ifndef RTCTK_COMPONENTFRAMEWORK_RUNTIMEREPOADAPTER_HPP
14#define RTCTK_COMPONENTFRAMEWORK_RUNTIMEREPOADAPTER_HPP
61 const std::shared_ptr<elt::oldb::CiiOldb>& oldb);
85 const std::type_info& type,
86 const std::string& server_alias)
override;
109 static const std::map<std::type_index, std::string> S_METADATA_INSTANCE_MAP;
115 static const std::map<std::string, const std::type_info&> S_TYPE_INFO_MAP;
This class provides a wrapper for a data point path.
Definition: dataPointPath.hpp:73
Provides access to the OLDB to read and write datapoints.
Definition: oldbAdapter.hpp:38
Implementation of the Runtime Configuration Repository backed by the OLDB.
Definition: runtimeRepoAdapter.hpp:26
static void InitMetadata()
Initialises the type metadata in the CII configuration service for the Runtime Configuration Reposito...
Definition: runtimeRepoAdapter.cpp:89
RuntimeRepoAdapter(RuntimeRepoAdapter &&)=default
Objects of this class can be moved.
RuntimeRepoAdapter & operator=(RuntimeRepoAdapter &&)=default
Objects of this class can be moved with the move assignment operator.
RuntimeRepoAdapter()=delete
Do not allow construction with no arguments.
RuntimeRepoAdapter & operator=(const RuntimeRepoAdapter &)=delete
This class cannot be copy assigned.
RuntimeRepoAdapter(const RuntimeRepoAdapter &)=delete
This class cannot be copy constructed.
std::string GetServerAlias(const DataPointPath &path) const override
Fetches the server alias for a specific datapoint.
Definition: runtimeRepoAdapter.cpp:78
static const std::string SUPPORTED_URI_SCHEME
Definition: runtimeRepoAdapter.hpp:28
virtual ~RuntimeRepoAdapter()=default
void CreateDataPoint(const DataPointPath &path, const std::type_info &type) override
Creates a new datapoint in the currently set external Redis server.
Definition: runtimeRepoAdapter.cpp:53
Base interface for all Runtime Configuration Repository adapters.
Definition: runtimeRepoIf.hpp:28
virtual void CreateDataPoint(const DataPointPath &path, const std::type_info &type, const std::string &server_alias)=0
Creates a new datapoint in the repository with a specified type on a particular external Redis server...
Definition: commandReplier.cpp:22
Header file needed to instantiate a OldbAdapter.
Header file for RuntimeRepoIf, which defines the API for RuntimeRepoAdapters.