RTC Toolkit 4.0.1
Loading...
Searching...
No Matches
fileRuntimeRepoAdapter.hpp
Go to the documentation of this file.
1
13#ifndef RTCTK_COMPONENTFRAMEWORK_FILERUNTIMEREPOADAPTER_HPP
14#define RTCTK_COMPONENTFRAMEWORK_FILERUNTIMEREPOADAPTER_HPP
15
16#include <mal/utility/Uri.hpp>
17#include <map>
20
22
32public:
33 inline static const std::string SUPPORTED_URI_SCHEME = "file";
34
40
51 explicit FileRuntimeRepoAdapter(const elt::mal::Uri& datauri, const int dirdepth = 1);
52
56
58
72 void CreateDataPoint(const DataPointPath& path,
73 const std::type_info& type,
74 const std::string& server_alias) override;
75
85 std::string GetServerAlias(const DataPointPath& path) const override;
86};
87
88} // namespace rtctk::componentFramework
89
90#endif // RTCTK_COMPONENTFRAMEWORK_FILERUNTIMEREPOADAPTER_HPP
This class provides a wrapper for a data point path.
Definition: dataPointPath.hpp:73
Implements a file based repository that stores datapoints in local YAML and FITS files.
Definition: fileRepository.hpp:88
File based implementation of a Runtime Configuration Repository adapter.
Definition: fileRuntimeRepoAdapter.hpp:31
FileRuntimeRepoAdapter & operator=(FileRuntimeRepoAdapter &&)=default
FileRuntimeRepoAdapter(const FileRuntimeRepoAdapter &)=delete
static const std::string SUPPORTED_URI_SCHEME
Definition: fileRuntimeRepoAdapter.hpp:33
void CreateDataPoint(const DataPointPath &path, const std::type_info &type, const std::string &server_alias) override
Creates a new datapoint in the repository with a specified type.
Definition: fileRuntimeRepoAdapter.cpp:37
FileRuntimeRepoAdapter & operator=(const FileRuntimeRepoAdapter &)=delete
virtual ~FileRuntimeRepoAdapter()
Definition: fileRuntimeRepoAdapter.cpp:24
RepositoryIf::Response SendSubscribeRequest(const SubscribeRequest &request) const override
This is called to asynchronously send a subscription request for datapoints.
Definition: fileRuntimeRepoAdapter.cpp:28
FileRuntimeRepoAdapter(FileRuntimeRepoAdapter &&)=default
std::string GetServerAlias(const DataPointPath &path) const override
Returns the server alias setting that was recorded in the YAML file.
Definition: fileRuntimeRepoAdapter.cpp:44
RepositoryIf::Response SendUnsubscribeRequest(const UnsubscribeRequest &request) const override
This is called to asynchronously send a request to unsubscribe from various notifications.
Definition: fileRuntimeRepoAdapter.cpp:33
An object used to wait for a request to complete.
Definition: repositoryIf.hpp:197
A request object to pass information about datapoints to subscribe to.
Definition: repositorySubscriberIf.hpp:37
A request object to pass information about datapoints to unsubscribe from.
Definition: repositorySubscriberIf.hpp:143
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...
Declaration of FileRepository that provides a simple file based repository.
Definition: commandReplier.cpp:22
Header file for RuntimeRepoIf, which defines the API for RuntimeRepoAdapters.