43 [[nodiscard]] std::string
type()
const override;
46 [[nodiscard]]
static std::string
category();
53 [[nodiscard]]
json save()
const override;
Abstract File Reader class.
nlohmann::json json
json namespace
void guiConfig() override
ImGui config window which is shown on double click.
CsvFile & operator=(CsvFile &&)=delete
Move assignment operator.
FileType determineFileType() override
Determines the type of the file.
CsvFile(const CsvFile &)=delete
Copy constructor.
bool initialize() override
Initialize the node.
int _skipLines
Amount of lines to skip at the start.
void deinitialize() override
Deinitialize the node.
static std::string category()
String representation of the Class Category.
CsvFile()
Default constructor.
CsvFile(CsvFile &&)=delete
Move constructor.
char _comment
Comment character.
void readHeader() override
Read the Header of the file.
CsvFile & operator=(const CsvFile &)=delete
Copy assignment operator.
std::string type() const override
String representation of the Class Type.
void restore(const json &j) override
Restores the node from a json object.
~CsvFile() override
Destructor.
char _delimiter
Delimiter character.
CsvData _data
Data container.
bool _hasHeaderLine
Flag whether there is a header line at the start.
bool resetNode() override
Resets the node. It is guaranteed that the node is initialized when this is called.
static std::string typeStatic()
String representation of the Class Type.
json save() const override
Saves the node into a json object.
FileType
File Type Enumeration.
FileReader(const FileReader &)=delete
Copy constructor.
Node(std::string name)
Constructor.