Go to the documentation of this file.
9 #ifndef RTCTK_COMPONENTFRAMEWORK_FILEREPOSITORY_HPP
10 #define RTCTK_COMPONENTFRAMEWORK_FILEREPOSITORY_HPP
13 #include <boost/filesystem.hpp>
14 #include <mal/utility/Uri.hpp>
51 explicit FileRepository(const ::elt::mal::Uri& datauri,
const int dirdepth);
73 return m_fits_write_threshold;
84 m_fits_write_threshold = value;
89 std::string m_defaultfile;
91 size_t m_fits_write_threshold;
96 #endif // RTCTK_COMPONENTFRAMEWORK_FILEREPOSITORY_HPP
InvalidUriInFileError(const boost::filesystem::path &filepath, const std::string &uri)
Definition: fileRepository.cpp:947
virtual void CreateDataPoint(const DataPointPath &path, const std::string &type)=0
Creates a new datapoint in the repository with a specified type.
void set_fits_write_threshold(size_t value)
Definition: fileRepository.hpp:83
DirCreationError(const boost::filesystem::path &path)
Definition: fileRepository.cpp:954
Definition: fileRepository.hpp:24
FileRepository & operator=(FileRepository &&)=default
FileRepository(const FileRepository &)=delete
A request object to pass information about datapoints that should be read (written) from (to) the rep...
Definition: repositoryIf.hpp:37
virtual void DeleteDataPoint(const DataPointPath &path)=0
Deletes a datapoint.
Definition: fileRepository.hpp:44
Definition: rtcComponent.hpp:17
virtual bool DataPointExists(const DataPointPath &path) const =0
Checks for the existence of a datapoint in the repository.
PathMissingException(const std::string &path)
Definition: fileRepository.cpp:939
string path
Definition: rtctkExampleDataTaskRobotTest.py:228
FileRepository & operator=(const FileRepository &)=delete
virtual size_t GetDataPointSize(const DataPointPath &path) const =0
Fetches the size of the datapoint's data.
virtual void CreateDataPoint(const DataPointPath &path, const std::string &type)=0
Creates a new datapoint in the repository with a specified type.
virtual std::pair< StringList, StringList > GetChildren(const DataPointPath &path) const=0
Queries the datapoints and child paths for a given path.
Header file for RepositoryIf and related base classes.
virtual std::string GetDataPointType(const DataPointPath &path) const=0
Fetches the type of the datapoint.
virtual size_t GetDataPointSize(const DataPointPath &path) const=0
Fetches the size of the datapoint's data.
virtual void DeleteDataPoint(const DataPointPath &path)=0
Deletes a datapoint.
virtual bool DataPointExists(const DataPointPath &path) const=0
Checks for the existence of a datapoint in the repository.
Abstract interface providing basic read and write facilities to a repository.
Definition: repositoryIf.hpp:28
virtual std::pair< StringList, StringList > GetChildren(const DataPointPath &path) const =0
Queries the datapoints and child paths for a given path.
Response SendReadRequest(const Request &request) const override
Sends a request to read data from the repository.
Definition: fileRepository.cpp:1200
size_t get_fits_write_threshold() const
Definition: fileRepository.hpp:72
Definition: fileRepository.hpp:39
virtual std::string GetDataPointType(const DataPointPath &path) const =0
Fetches the type of the datapoint.
FileRepository(FileRepository &&)=default
InvalidArgumentException(const std::string &message)
Definition: fileRepository.cpp:935
Definition: dataPointPath.hpp:30
An object used to wait for a request to complete.
Definition: repositoryIf.hpp:74
Definition: fileRepository.hpp:34
Definition: fileRepository.hpp:19
virtual ~FileRepository()
Definition: fileRepository.cpp:990
Response SendWriteRequest(const Request &request) override
Sends a request to write data to the repository.
Definition: fileRepository.cpp:1229