File based implementation of the DataStore interface. This class makes use of the toString() method defined in the PhysicalMeasurement interface.
More...
#include <Testvs19_FileDataStore.h>
|
| void | close () override final |
| | Method to close the connection to the data store.
|
| void | open () override final |
| | Method to open a connection to the data store.
|
| void | save (Sfx::IPhyMeasurement *aMeasure) override final |
| | Method to write the PhysicalMeasurement data to the file.
|
| void | save (Sfx::IPhysicalMeasurement *aPhysicalMeasure) override final |
| | Method to save the PhysicalMeasurement bean to the data store.
|
| void | setFileName (std::string aFilename) |
| | Set data store file name.
|
| bool | isOpen () const |
| | check if file open
|
File based implementation of the DataStore interface. This class makes use of the toString() method defined in the PhysicalMeasurement interface.
◆ close()
| void Testvs19::FileDataStore::close |
( |
| ) |
|
|
finaloverride |
Method to close the connection to the data store.
◆ isOpen()
| bool Testvs19::FileDataStore::isOpen |
( |
| ) |
const |
|
inline |
check if file open
- Returns
- true/false
◆ open()
| void Testvs19::FileDataStore::open |
( |
| ) |
|
|
finaloverride |
Method to open a connection to the data store.
◆ save() [1/2]
| void Testvs19::FileDataStore::save |
( |
Sfx::IPhyMeasurement * | aMeasure | ) |
|
|
inlinefinaloverride |
Method to write the PhysicalMeasurement data to the file.
- Parameters
-
◆ save() [2/2]
| void Testvs19::FileDataStore::save |
( |
Sfx::IPhysicalMeasurement * | aPhysicalMeasure | ) |
|
|
finaloverride |
Method to save the PhysicalMeasurement bean to the data store.
- Parameters
-
◆ setFileName()
| void Testvs19::FileDataStore::setFileName |
( |
std::string | aFilename | ) |
|
|
inline |
Set data store file name.
- Parameters
-
◆ m_fileName
| std::string Testvs19::FileDataStore::m_fileName {} |
|
private |
◆ m_FileRes
| std::ofstream Testvs19::FileDataStore::m_FileRes |
|
private |
◆ m_isOpen
| bool Testvs19::FileDataStore::m_isOpen {false} |
|
private |
A file for saving result.
file status
The documentation for this class was generated from the following files: