Implements a file based Persistent Configuration Repository adapter that can be used for testing.
More...
|
| | FilePersistentRepoAdapter ()=delete |
| |
| | FilePersistentRepoAdapter (const FilePersistentRepoAdapter &)=delete |
| |
| FilePersistentRepoAdapter & | operator= (const FilePersistentRepoAdapter &)=delete |
| |
| | FilePersistentRepoAdapter (FilePersistentRepoAdapter &&)=default |
| |
| FilePersistentRepoAdapter & | operator= (FilePersistentRepoAdapter &&)=default |
| |
| | FilePersistentRepoAdapter (const elt::mal::Uri &datauri, const int dirdepth=1) |
| | Constructor to create a Persistent Configuration Repository adapter for a simple file based implementation. More...
|
| |
| virtual | ~FilePersistentRepoAdapter () |
| |
| | FileRepository ()=delete |
| |
| | FileRepository (const FileRepository &)=delete |
| |
| FileRepository & | operator= (const FileRepository &)=delete |
| |
| | FileRepository (const elt::mal::Uri &datauri, const int dirdepth) |
| |
| virtual | ~FileRepository () noexcept=default |
| |
| void | CreateDataPoint (const DataPointPath &path, const std::type_info &type) override |
| | Creates a new datapoint in the repository with a specified type. More...
|
| |
| void | DeleteDataPoint (const DataPointPath &path) override |
| | Deletes a datapoint. More...
|
| |
| const std::type_info & | GetDataPointType (const DataPointPath &path) const override |
| | Fetches the type of the datapoint. More...
|
| |
| size_t | GetDataPointSize (const DataPointPath &path) const override |
| | Fetches the size of the datapoint's data. More...
|
| |
| bool | DataPointExists (const DataPointPath &path) const override |
| | Checks for the existence of a datapoint in the repository. More...
|
| |
| std::pair< StringList, StringList > | GetChildren (const DataPointPath &path) const override |
| | Queries the datapoints and child paths for a given path. More...
|
| |
| Response | SendReadRequest (const Request &request) const override |
| | Sends a request to read data from the repository. More...
|
| |
| Response | SendWriteRequest (const Request &request) override |
| | Sends a request to write data to the repository. More...
|
| |
| size_t | GetFitsWriteThreshold () const |
| |
| void | SetFitsWriteThreshold (size_t value) |
| | Sets the threshold for storing numerical matrices and vectors in FITS files rather than the YAML file. More...
|
| |
| virtual void | CreateDataPoint (const DataPointPath &path, const std::type_info &type)=0 |
| | Creates a new datapoint in the repository with a specified type. More...
|
| |
| template<typename T > |
| void | CreateDataPoint (const DataPointPath &path) |
| | Creates a new datapoint in the repository. More...
|
| |
| template<typename T > |
| void | CreateDataPoint (const DataPointPath &path, const T default_value) |
| | Creates a new datapoint in the repository and sets a default value. More...
|
| |
| template<> |
| void | CreateDataPoint (const DataPointPath &path, const char *default_value) |
| |
| virtual | ~RepositoryIf () |
| |
| template<typename T > |
| void | CreateDataPoint (const DataPointPath &path) |
| | Creates a new datapoint in the repository. More...
|
| |
| template<typename T > |
| void | CreateDataPoint (const DataPointPath &path, const T default_value) |
| | Creates a new datapoint in the repository and sets a default value. More...
|
| |
| template<typename T > |
| T | GetDataPoint (const DataPointPath &path) const |
| | Fetches a datapoint from the repository. More...
|
| |
| template<typename T > |
| void | SetDataPoint (const DataPointPath &path, const T value) |
| | Sets a datapoint in the repository. More...
|
| |
| template<typename T > |
| void | ReadDataPoint (const DataPointPath &path, T &buffer) const |
| | Reads a datapoint from the repository. More...
|
| |
| template<typename T > |
| void | WriteDataPoint (const DataPointPath &path, const T &buffer) |
| | Writes a datapoint to the repository. More...
|
| |
| void | WriteDataPoint (const DataPointPath &path, const char *buffer) |
| |
| template<> |
| void | CreateDataPoint (const DataPointPath &path, const char *default_value) |
| |
| template<> |
| void | SetDataPoint (const DataPointPath &path, const char *value) |
| |
| virtual | ~PersistentRepoIf ()=default |
| |
Implements a file based Persistent Configuration Repository adapter that can be used for testing.
- Thread Safety
- thread-safe – File based locking is used to make all read/write methods synchronous between all processes and threads, in addition to mutex locking to protect the structures of this class.