42 [[nodiscard]] std::string
type()
const override;
45 [[nodiscard]]
static std::string
category();
52 [[nodiscard]]
json save()
const override;
81 [[nodiscard]] std::shared_ptr<const NodeData>
pollData();
Abstract File Reader class.
nlohmann::json json
json namespace
FileReader(const FileReader &)=delete
Copy constructor.
Node(std::string name)
Constructor.
void deinitialize() override
Deinitialize the node.
bool resetNode() override
Resets the node. Moves the read cursor to the start.
PosVelAttFile & operator=(const PosVelAttFile &)=delete
Copy assignment operator.
static std::string category()
String representation of the Class Category.
FileContent
Data included in the file.
@ PosVel
Position and Velocity.
@ PosVelAtt
Position, Velocity and Attitude.
void guiConfig() override
ImGui config window which is shown on double click.
json save() const override
Saves the node into a json object.
void restore(const json &j) override
Restores the node from a json object.
std::string type() const override
String representation of the Class Type.
static constexpr size_t OUTPUT_PORT_INDEX_HEADER_COLUMNS
Object (std::vector<std::string>)
bool initialize() override
Initialize the node.
static constexpr size_t OUTPUT_PORT_INDEX_PVA
Flow (PosVelAtt)
PosVelAttFile(const PosVelAttFile &)=delete
Copy constructor.
~PosVelAttFile() override
Destructor.
PosVelAttFile & operator=(PosVelAttFile &&)=delete
Move assignment operator.
FileContent _fileContent
Data included in the file.
static std::string typeStatic()
String representation of the Class Type.
PosVelAttFile(PosVelAttFile &&)=delete
Move constructor.
PosVelAttFile()
Default constructor.
std::shared_ptr< const NodeData > pollData()
Polls data from the file.