RTC Toolkit  0.1.0-alpha
Public Member Functions | List of all members
rtctk::componentFramework::FakeRuntimeRepoAdapter Class Reference

#include <fakeRuntimeRepoAdapter.hpp>

Inheritance diagram for rtctk::componentFramework::FakeRuntimeRepoAdapter:
rtctk::componentFramework::FileRepository rtctk::componentFramework::RuntimeRepoApiIf rtctk::componentFramework::RepositoryIf rtctk::componentFramework::RepositoryIf

Public Member Functions

 FakeRuntimeRepoAdapter ()=delete
 
 FakeRuntimeRepoAdapter (const FakeRuntimeRepoAdapter &)=delete
 
FakeRuntimeRepoAdapteroperator= (const FakeRuntimeRepoAdapter &)=delete
 
 FakeRuntimeRepoAdapter (FakeRuntimeRepoAdapter &&)=default
 
FakeRuntimeRepoAdapteroperator= (FakeRuntimeRepoAdapter &&)=default
 
 FakeRuntimeRepoAdapter (const ::elt::mal::Uri &datauri, const int dirdepth=1)
 Constructor to create a RuntimeRepositoryAdapter for a simple file based implementation. More...
 
virtual ~FakeRuntimeRepoAdapter ()
 
void Subscribe (const Subscription &subscription) const override
 
void Unsubscribe (const Subscription &subscription) const override
 
- Public Member Functions inherited from rtctk::componentFramework::FileRepository
 FileRepository ()=delete
 
 FileRepository (const FileRepository &)=delete
 
FileRepositoryoperator= (const FileRepository &)=delete
 
 FileRepository (FileRepository &&)=default
 
FileRepositoryoperator= (FileRepository &&)=default
 
 FileRepository (const ::elt::mal::Uri &datauri, const int dirdepth)
 
virtual ~FileRepository ()
 
void CreateDataPoint (const DataPointPath &path, const std::string &type) override
 Creates a new datapoint in the repository with a specified type. More...
 
void DeleteDataPoint (const DataPointPath &path) override
 Deletes a datapoint. More...
 
std::string 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, StringListGetChildren (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 get_fits_write_threshold () const
 
void set_fits_write_threshold (size_t value)
 
virtual void CreateDataPoint (const DataPointPath &path, const std::string &type)=0
 Creates a new datapoint in the repository with a specified type. More...
 
virtual void DeleteDataPoint (const DataPointPath &path)=0
 Deletes a datapoint. More...
 
virtual std::string GetDataPointType (const DataPointPath &path) const=0
 Fetches the type of the datapoint. More...
 
virtual size_t GetDataPointSize (const DataPointPath &path) const=0
 Fetches the size of the datapoint's data. More...
 
virtual bool DataPointExists (const DataPointPath &path) const=0
 Checks for the existence of a datapoint in the repository. More...
 
virtual std::pair< StringList, StringListGetChildren (const DataPointPath &path) const=0
 Queries the datapoints and child paths for a given path. More...
 
- Public Member Functions inherited from rtctk::componentFramework::RepositoryIf
virtual ~RepositoryIf ()
 
template<typename T >
void CreateDataPointV2 (const DataPointPath &path)
 Creates a new datapoint in the repository. More...
 
template<typename T >
void CreateDataPointV2 (const DataPointPath &path, const T default_value)
 Creates a new datapoint in the repository and sets a default value. More...
 
template<typename 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 CreateDataPointV2 (const DataPointPath &path, const char *default_value)
 
template<>
void SetDataPoint (const DataPointPath &path, const char *value)
 
- Public Member Functions inherited from rtctk::componentFramework::RuntimeRepoApiIf
virtual ~RuntimeRepoApiIf ()
 

Additional Inherited Members

- Public Types inherited from rtctk::componentFramework::RepositoryIf
using StringList = std::vector< std::string >
 

Constructor & Destructor Documentation

◆ FakeRuntimeRepoAdapter() [1/4]

rtctk::componentFramework::FakeRuntimeRepoAdapter::FakeRuntimeRepoAdapter ( )
delete

◆ FakeRuntimeRepoAdapter() [2/4]

rtctk::componentFramework::FakeRuntimeRepoAdapter::FakeRuntimeRepoAdapter ( const FakeRuntimeRepoAdapter )
delete

◆ FakeRuntimeRepoAdapter() [3/4]

rtctk::componentFramework::FakeRuntimeRepoAdapter::FakeRuntimeRepoAdapter ( FakeRuntimeRepoAdapter &&  )
default

◆ FakeRuntimeRepoAdapter() [4/4]

rtctk::componentFramework::FakeRuntimeRepoAdapter::FakeRuntimeRepoAdapter ( const ::elt::mal::Uri &  datauri,
const int  dirdepth = 1 
)
explicit

Constructor to create a RuntimeRepositoryAdapter for a simple file based implementation.

Parameters
[in]datauri
[in]dirdepth

◆ ~FakeRuntimeRepoAdapter()

rtctk::componentFramework::FakeRuntimeRepoAdapter::~FakeRuntimeRepoAdapter ( )
virtual

Member Function Documentation

◆ operator=() [1/2]

FakeRuntimeRepoAdapter& rtctk::componentFramework::FakeRuntimeRepoAdapter::operator= ( const FakeRuntimeRepoAdapter )
delete

◆ operator=() [2/2]

FakeRuntimeRepoAdapter& rtctk::componentFramework::FakeRuntimeRepoAdapter::operator= ( FakeRuntimeRepoAdapter &&  )
default

◆ Subscribe()

void rtctk::componentFramework::FakeRuntimeRepoAdapter::Subscribe ( const Subscription subscription) const
overridevirtual
Todo:
This method is not implemented yet and needs to be completed for the next release.

Implements rtctk::componentFramework::RuntimeRepoApiIf.

◆ Unsubscribe()

void rtctk::componentFramework::FakeRuntimeRepoAdapter::Unsubscribe ( const Subscription subscription) const
overridevirtual
Todo:
This method is not implemented yet and needs to be completed for the next release.

Implements rtctk::componentFramework::RuntimeRepoApiIf.


The documentation for this class was generated from the following files: