45 [[nodiscard]] std::string
type()
const override;
48 [[nodiscard]]
static std::string
category();
55 [[nodiscard]]
json save()
const override;
62 void flush()
override;
Common logging variables like time into run and local positions.
nlohmann::json json
json namespace
CommonLog(const CommonLog &)=delete
Copy constructor.
void guiConfig() override
ImGui config window which is shown on double click.
bool _headerLoggingSortGui
Sort headers in the GUI.
static std::string typeStatic()
String representation of the Class Type.
std::vector< std::pair< std::string, bool > > _headerLogging
Header which should be logged.
bool initialize() override
Initialize the node.
void rewriteData(size_t oldSize, size_t newSize)
Rewrites the data file with a new size.
std::vector< std::string > _dynamicHeader
Dynamic Header.
bool _headerWritten
Flag whether the header was written already.
void restore(const json &j) override
Restores the node from a json object.
json save() const override
Saves the node into a json object.
void writeObservation(InputPin::NodeDataQueue &queue, size_t pinIdx)
Write Observation to the file.
CsvLogger(const CsvLogger &)=delete
Copy constructor.
CsvLogger(CsvLogger &&)=delete
Move constructor.
std::string _lastConnectedType
Type last connected.
bool onCreateLink(OutputPin &startPin, InputPin &endPin) override
Called when a new link is to be established.
std::string type() const override
String representation of the Class Type.
void writeHeader()
Writes the header.
bool _headerLoggingDefault
Default for new headers.
CsvLogger & operator=(CsvLogger &&)=delete
Move assignment operator.
CsvLogger & operator=(const CsvLogger &)=delete
Copy assignment operator.
void flush() override
Function called by the flow executer after finishing to flush out remaining data.
~CsvLogger() override
Destructor.
static std::string category()
String representation of the Class Category.
std::string _headerLoggingRegex
Regex to search for when selecting.
size_t _headerLoggingCount
Amount of headers which are logged.
CsvLogger()
Default constructor.
void deinitialize() override
Deinitialize the node.
FileWriter(const FileWriter &)=delete
Copy constructor.
Parent class for all data transmitted over Flow pins.
Node(std::string name)
Constructor.