ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
|
Functions | |
static bool | getAttribute (const pugi::xml_node &node, const std::string &attr_name, std::string &dst, Diagnostics &diag) |
Parser/writer structure: More... | |
static bool | setAttribute (pugi::xml_node &node, const std::string &attr_name, const std::string &src, Diagnostics &diag) |
static bool | getAttribute (const pugi::xml_node &node, const std::string &attr_name, int32_t &dst, Diagnostics &diag) |
static bool | setAttribute (pugi::xml_node &node, const std::string &attr_name, const int32_t &src, Diagnostics &diag) |
template<> | |
bool | parse< std::vector< etiss::fault::Fault > > (pugi::xml_node node, std::vector< etiss::fault::Fault > &dst, Diagnostics &diag) |
template<> | |
bool | write< std::vector< etiss::fault::Fault > > (pugi::xml_node node, const std::vector< etiss::fault::Fault > &src, Diagnostics &diag) |
|
static |
TODO propper conversion
Definition at line 135 of file Fault.cpp.
References getAttribute().
|
static |
Parser/writer structure:
class and field structure is closely modeled by the xml structure. each class is a node and each field is either a sub node or an attribute. This allows for a simple parsing concept. the template function parse() is implemented for each type that needs to be read and is called recursively for fields of different types. parsed values are written directly into the fields. This requires all fields to be public/accessible e.g.
Definition at line 110 of file Fault.cpp.
References pugi::xml_node::first_attribute(), and pugi::xml_attribute::next_attribute().
Referenced by getAttribute().
bool etiss::fault::xml::parse< std::vector< etiss::fault::Fault > > | ( | pugi::xml_node | node, |
std::vector< etiss::fault::Fault > & | dst, | ||
Diagnostics & | diag | ||
) |
Definition at line 152 of file Fault.cpp.
References pugi::xml_node::first_child(), etiss::log(), pugi::xml_node::next_sibling(), and etiss::VERBOSE.
|
static |
Definition at line 143 of file Fault.cpp.
References pugi::xml_node::append_attribute(), int32_t, pugi::xml_attribute::set_value(), and static_assert.
|
static |
Definition at line 130 of file Fault.cpp.
References pugi::xml_node::append_attribute(), and pugi::xml_attribute::set_value().
bool etiss::fault::xml::write< std::vector< etiss::fault::Fault > > | ( | pugi::xml_node | node, |
const std::vector< etiss::fault::Fault > & | src, | ||
Diagnostics & | diag | ||
) |
Definition at line 182 of file Fault.cpp.
References etiss::log(), and etiss::VERBOSE.