13#ifndef RTCTK_COMPONENTFRAMEWORK_RUNTIMEREPOIF_HPP
14#define RTCTK_COMPONENTFRAMEWORK_RUNTIMEREPOIF_HPP
63 static std::unique_ptr<RuntimeRepoIf> CreateAdapter(
const elt::mal::Uri& uri);
74 [[deprecated]] std::string GetDefaultServerAlias()
const;
91 [[deprecated]]
void SetDefaultServerAlias(
const std::string& server_alias);
111 [[deprecated]]
virtual void CreateDataPoint(
const DataPointPath& path,
112 const std::type_info& type,
113 const std::string& server_alias);
115 using RepositoryIf::CreateDataPoint;
136 template <
typename T>
138 const T default_value,
139 const std::string& server_alias);
151 [[deprecated]]
virtual std::string GetServerAlias(
const DataPointPath& path)
const;
161 mutable std::mutex m_mutex;
164 std::string m_server_alias;
167#pragma GCC diagnostic push
168#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
178#pragma GCC diagnostic pop
This class provides a wrapper for a data point path.
Definition dataPointPath.hpp:74
void SetDataPoint(const DataPointPath &path, const T &value)
Sets a datapoint in the repository.
Definition repositoryIf.ipp:1720
Abstract interface providing I/O and additional subscription facilities for a repository.
Definition repositorySubscriberIf.hpp:27
Base interface for all Runtime Configuration Repository adapters.
Definition runtimeRepoIf.hpp:27
elt::mal::Uri AdapterIdType
The type used to distinguish between different adapters implementing RuntimeRepoIf.
Definition runtimeRepoIf.hpp:36
virtual ~RuntimeRepoIf()=default
virtual void CreateDataPoint(const DataPointPath &path, const std::type_info &type, const std::string &server_alias)
Creates a new datapoint in the repository with a specified type on a particular external Redis server...
Definition runtimeRepoIf.cpp:37
#define RTCTK_API
Helper to indicate that a class or function must be exported in the public symbol table.
Definition config.hpp:33
Definition commandReplier.cpp:22
elt::mal::future< std::string > InjectReqRepEvent(StateMachineEngine &engine)
Definition malEventInjector.hpp:23
Header file for RepositorySubscriberIf and related base classes.