13#ifndef RTCTK_COMPONENTFRAMEWORK_PERSISTENTREPOADAPTER_HPP
14#define RTCTK_COMPONENTFRAMEWORK_PERSISTENTREPOADAPTER_HPP
22#include <mal/utility/Uri.hpp>
82 elt::mal::Uri
GetUri()
const override {
83 return m_path_mapper.GetBaseUri();
94 return m_fits_write_threshold;
102 m_fits_write_threshold = value;
106 template <
typename T>
109 template <
typename T>
112 template <
typename T>
115 template <
typename T>
118 template <
typename T>
129 BatchResponse ProcessRequests(
const RequestList& requests)
override;
153 template <
typename T>
154 static void CheckBufferAndDataPointTypesMatch(
const std::type_info& type,
const T* node);
156 log4cplus::Logger& m_logger;
162 std::atomic<uint64_t> m_fits_write_threshold;
170 RTCTK_LOCAL static const std::type_info& LookupCppType(
const std::string& tag);
171 RTCTK_LOCAL static std::string LookupYamlTag(
const MetaData& metadata);
173 RTCTK_LOCAL static std::tuple<std::string, std::string, bool>
174 LookupYamlTags(
const MetaData& metadata);
176 using TagToTypeMap = std::unordered_map<std::string, const std::type_info&>;
177 using TypeToTagMap = std::unordered_map<std::type_index, std::pair<std::string, std::string>>;
180 static const TagToTypeMap S_TAG_TO_TYPE;
183 static const TypeToTagMap S_TYPE_TO_TAG;
185 template <
typename T>
186 static RequestDispatcher<PersistentRepoAdapter>::TableEntries BindTypeHandlers();
188 static const RequestDispatcher<PersistentRepoAdapter> S_REQUEST_DISPATCHER;
This class provides a wrapper for a data point path.
Definition dataPointPath.hpp:77
The DynamicThreadPool allows creating multiple threads which are garbage collected.
Definition dynamicThreadPool.hpp:37
Used to calculate URIs from datapoint paths.
Definition pathMapper.hpp:33
~PersistentRepoAdapter() override=default
PersistentRepoAdapter()=delete
Do not allow construction with no arguments.
PersistentRepoAdapter & operator=(PersistentRepoAdapter &&)=default
Objects of this class can be moved with the move assignment operator.
PersistentRepoAdapter & operator=(const PersistentRepoAdapter &)=delete
This class cannot be copy assigned.
PersistentRepoAdapter(const PersistentRepoAdapter &)=delete
This class cannot be copy constructed.
uint64_t GetFitsWriteThreshold() const
Return the number of elements above which matrices and vectors are written to FITS files.
Definition persistentRepoAdapter.hpp:93
PersistentRepoAdapter(PersistentRepoAdapter &&)=default
Objects of this class can be moved.
static const std::string SUPPORTED_URI_SCHEME
Definition persistentRepoAdapter.hpp:53
void SetFitsWriteThreshold(uint64_t value)
Set the number of elements above which matrices and vectors are written to FITS files.
Definition persistentRepoAdapter.hpp:101
elt::mal::Uri GetUri() const override
Get the URI used when creating this adapter object.
Definition persistentRepoAdapter.hpp:82
Base interface for all Persistent Configuration Repository adapters.
Definition persistentRepoIf.hpp:25
#define RTCTK_LOCAL
Helper to hide a class or function from the public symbol table.
Definition config.hpp:60
#define RTCTK_API
Helper to indicate that a class or function must be exported in the public symbol table.
Definition config.hpp:33
Header file for a dynamic resizing thread pool.
Provides macros and utilities for exception handling.
Logging Support Library based on log4cplus.
Definition commandReplier.cpp:22
RepositoryIf::MetaData MetaData
Definition oldbAdapter.cpp:55
RepositoryIf::PathList PathList
Definition persistentRepoAdapter.cpp:96
Header file declaring PathMapper.
Header file for PersistentRepoIf, which defines the API for PersistentRepoAdapter.
Header file for the RequestDispatcher utility class.
Definition repositoryIf.ipp:40
Definition repositoryIf.ipp:124
Definition repositoryIf.ipp:48
Definition repositoryIf.ipp:53
Definition repositoryIf.ipp:59
Definition repositoryIf.ipp:91
Definition repositoryIf.ipp:102
Definition repositoryIf.ipp:67
Definition repositoryIf.ipp:130
Definition repositoryIf.ipp:81