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.
|
|
|
std::ofstream | _filestream |
| File stream to write the file.
|
|
FileType | _fileType |
| File Type.
|
|
std::string | _path |
| Path to the file.
|
|
Parent class for other data loggers which manages the output filestream.
◆ FileType
File Type.
Enumerator |
---|
NONE | Not specified.
|
BINARY | Binary data.
|
ASCII | Ascii text data.
|
◆ 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
◆ 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 |
◆ to_string()
static const char * NAV::FileWriter::to_string |
( |
FileType | type | ) |
|
|
static |
Converts the provided type into string.
- Parameters
-
[in] | type | FileType to convert |
- Returns
- String representation of the type
The documentation for this class was generated from the following file:
- /home/runner/work/INSTINCT/INSTINCT/src/Nodes/DataLogger/Protocol/FileWriter.hpp