45 [[nodiscard]] std::string
type()
const override;
Common logging variables like time into run and local positions.
nlohmann::json json
json namespace
Definition FlowManager.hpp:21
Common logging variables like time into run and local positions.
Definition CommonLog.hpp:31
Data Logger for PosVelAtt observations.
Definition CsvLogger.hpp:26
void guiConfig() override
ImGui config window which is shown on double click.
bool _headerLoggingSortGui
Sort headers in the GUI.
Definition CsvLogger.hpp:108
static std::string category()
String representation of the Class Category.
std::vector< std::pair< std::string, bool > > _headerLogging
Header which should be logged.
Definition CsvLogger.hpp:100
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.
Definition CsvLogger.hpp:97
bool _headerWritten
Flag whether the header was written already.
Definition CsvLogger.hpp:94
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.
Definition CsvLogger.hpp:91
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.
Definition CsvLogger.hpp:106
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 typeStatic()
String representation of the Class Type.
std::string _headerLoggingRegex
Regex to search for when selecting.
Definition CsvLogger.hpp:104
size_t _headerLoggingCount
Amount of headers which are logged.
Definition CsvLogger.hpp:102
CsvLogger()
Default constructor.
void deinitialize() override
Deinitialize the node.
Parent class for other data loggers which manages the output filestream.
Definition FileWriter.hpp:27
Abstract parent class for all nodes.
Definition Node.hpp:86
Output pins of nodes.
Definition Pin.hpp:338