Parent class for other data loggers which manages the output filestream.
More...
|
| static const char * | to_string (FileType type) |
| | Converts the provided type into string.
|
|
| void | deinitialize () |
| | Deinitialize the file reader.
|
| | FileWriter ()=default |
| | Default constructor.
|
| std::filesystem::path | getFilepath () |
| | Returns the path of the file.
|
| bool | guiConfig (const char *vFilters, const std::vector< std::string > &extensions, size_t id, const std::string &nameId) |
| | ImGui config.
|
| bool | initialize () |
| | Initialize the file reader.
|
| void | restore (const json &j) |
| | Restores the node from a json object.
|
| json | save () const |
| | Saves the node into a json object.
|
Parent class for other data loggers which manages the output filestream.
Definition at line 26 of file FileWriter.hpp.
◆ FileType
File Type.
| Enumerator |
|---|
| NONE | Not specified.
|
| BINARY | Binary data.
|
| ASCII | Ascii text data.
|
Definition at line 30 of file FileWriter.hpp.
◆ ~FileWriter()
| NAV::FileWriter::~FileWriter |
( |
| ) |
|
|
default |
◆ FileWriter() [1/3]
| NAV::FileWriter::FileWriter |
( |
const FileWriter & | | ) |
|
|
delete |
◆ FileWriter() [2/3]
◆ FileWriter() [3/3]
| NAV::FileWriter::FileWriter |
( |
| ) |
|
|
protecteddefault |
◆ deinitialize()
| void NAV::FileWriter::deinitialize |
( |
| ) |
|
|
protected |
◆ getFilepath()
| std::filesystem::path NAV::FileWriter::getFilepath |
( |
| ) |
|
|
protected |
◆ guiConfig()
| bool NAV::FileWriter::guiConfig |
( |
const char * | vFilters, |
|
|
const std::vector< std::string > & | extensions, |
|
|
size_t | id, |
|
|
const std::string & | nameId ) |
|
protected |
ImGui config.
- Parameters
-
| [in] | vFilters | Filter to apply for file names |
| [in] | extensions | Extensions to filter |
| [in] | id | Unique id for creating the dialog uid |
| [in] | nameId | Name of the node triggering the window used for logging |
- Returns
- True if changes occurred
Definition at line 20 of file FileWriter.cpp.
◆ initialize()
| bool NAV::FileWriter::initialize |
( |
| ) |
|
|
protected |
◆ operator=() [1/2]
Copy assignment operator.
◆ operator=() [2/2]
Move assignment operator.
◆ restore()
| void NAV::FileWriter::restore |
( |
const json & | j | ) |
|
|
protected |
Restores the node from a json object.
- Parameters
-
| [in] | j | Json object with the node state |
Definition at line 57 of file FileWriter.cpp.
◆ save()
| json NAV::FileWriter::save |
( |
| ) |
const |
|
nodiscardprotected |
Saves the node into a json object.
Definition at line 45 of file FileWriter.cpp.
◆ to_string()
| const char * NAV::FileWriter::to_string |
( |
FileType | type | ) |
|
|
static |
Converts the provided type into string.
- Parameters
-
- Returns
- String representation of the type
Definition at line 124 of file FileWriter.cpp.
◆ _filestream
| std::ofstream NAV::FileWriter::_filestream |
|
protected |
◆ _fileType
◆ _path
| std::string NAV::FileWriter::_path |
|
protected |
The documentation for this class was generated from the following files:
- /home/runner/work/INSTINCT/INSTINCT/src/Nodes/DataLogger/Protocol/FileWriter.hpp
- /home/runner/work/INSTINCT/INSTINCT/src/Nodes/DataLogger/Protocol/FileWriter.cpp