INFM HIL Interface
Interface between Artery simulation and DuTs
|
ConfigSerializer: This class is for de-/ serializing the different connectorConfig types and overwrites the boost:serialization methods More...
#include <ConfigSerializer.h>
Static Public Member Functions | |
template<typename T > | |
static void | deserialize (std::istringstream &ifs, const std::string &objName, T *obj) |
template<typename T > | |
static void | serialize (const std::string &file, const std::string &objName, T &obj) |
ConfigSerializer: This class is for de-/ serializing the different connectorConfig types and overwrites the boost:serialization methods
|
inlinestatic |
T: Templates for any type, so that the following methods can be used by them method:deserialize
ifs | address of an input stringstream |
objName | address of name of a object |
obj | pointer of any type of object |
if: when the input string stream is available exception handling: catching archive exception and start InterfaceLogger: iss: create an input stringstream ia: create an xml input archive with the input stringstream and no header deserialize the object catch the exception if the deserialisation failed and start logging else: start logging:
|
inlinestatic |
T: Templates for any type, so that the following methods can be used by them method:serialize
objName | address of a string --> name of the object |
file | address of a string --> file |
obj | pointer of any type of object |
ofs: create an output file stream if: when the output file stream is available oa: create an xml output archive with the output stringstream and no header serialize now the object in the outputarchive and close file else: start logging