Skyward boardcore
Loading...
Searching...
No Matches
Boardcore::Deserializer Class Reference

Class used to deserialize the binary logs created using fedetft's logger into csv files. More...

#include <Deserializer.h>

Public Member Functions

 Deserializer (std::string fileName)
 Initializes the deserializer with the filename provided.
 
 ~Deserializer ()
 
template<typename T >
void registerType ()
 Register a type to be deserialized.
 
bool deserialize ()
 Deserializes the provided file.
 
void close ()
 Closes all the openend files.
 

Detailed Description

Class used to deserialize the binary logs created using fedetft's logger into csv files.

Definition at line 54 of file Deserializer.h.

Constructor & Destructor Documentation

◆ Deserializer()

Boardcore::Deserializer::Deserializer ( std::string fileName)

Initializes the deserializer with the filename provided.

Definition at line 111 of file Deserializer.h.

◆ ~Deserializer()

Boardcore::Deserializer::~Deserializer ( )

Definition at line 119 of file Deserializer.h.

Member Function Documentation

◆ close()

void Boardcore::Deserializer::close ( )

Closes all the openend files.

Definition at line 231 of file Deserializer.h.

◆ deserialize()

bool Boardcore::Deserializer::deserialize ( )

Deserializes the provided file.

Returns
Whether the deserialization was successful.

Definition at line 176 of file Deserializer.h.

◆ registerType()

template<typename T >
void Boardcore::Deserializer::registerType ( )

Register a type to be deserialized.

Node: The object type must provide a static header function and a print function with the following prototypes: static std::string header() void print(std::ostream& os) const

Template Parameters
TThe object type to be deserialized.

Definition at line 122 of file Deserializer.h.


The documentation for this class was generated from the following file: