|
swSim
Version 1.0
|
Defines data structures for ParsableObject in swSim. More...
#include "include/ParsableObject.hpp"
Public Member Functions | |
| virtual void | ParseSwitch (xmlDocPtr doc, xmlNodePtr cur, int caseNumber) |
| Function to help parse the input. More... | |
| void | Parse (xmlDocPtr doc, xmlNodePtr cur) |
| Parse the specific object. More... | |
| xmlNodePtr | ParseSearch (xmlDocPtr doc, xmlNodePtr cur, const char *value) |
| Search to the xml element corespondng to each parsable variable. More... | |
| void | Do_parse (xmlDocPtr doc, xmlNodePtr cur, double *value) |
| Parse a double object. More... | |
| void | Do_parse (xmlDocPtr doc, xmlNodePtr cur, float *value) |
| Parse a float object. More... | |
| void | Do_parse (xmlDocPtr doc, xmlNodePtr cur, uint8_t *value) |
| Parse a uint_8 object. More... | |
| void | Do_parse (xmlDocPtr doc, xmlNodePtr cur, uint32_t *value) |
| Parse a uint_32 object. More... | |
| void | Do_parse (xmlDocPtr doc, xmlNodePtr cur, uint64_t *value) |
| Parse a uint_64 object. More... | |
| void | Do_parse (xmlDocPtr doc, xmlNodePtr cur, bool *value) |
| Parse a boolean object. More... | |
| void | Do_parse (xmlDocPtr doc, xmlNodePtr cur, char *value) |
| Parse a char array object. More... | |
Public Attributes | |
| std::vector< std::string > | parseNames |
| Vector of parse names to look for when reading inputs. More... | |
Defines data structures for ParsableObject in swSim.
|
virtual |
Function to help parse the input.
Reimplemented in swSim::Model, swSim::Material, swSim::Geometry, and swSim::Excitation.
| void swSim::ParsableObject::Parse | ( | xmlDocPtr | doc, |
| xmlNodePtr | cur | ||
| ) |
Parse the specific object.
| xmlNodePtr swSim::ParsableObject::ParseSearch | ( | xmlDocPtr | doc, |
| xmlNodePtr | cur, | ||
| const char * | value | ||
| ) |
Search to the xml element corespondng to each parsable variable.
| void swSim::ParsableObject::Do_parse | ( | xmlDocPtr | doc, |
| xmlNodePtr | cur, | ||
| double * | value | ||
| ) |
Parse a double object.
| void swSim::ParsableObject::Do_parse | ( | xmlDocPtr | doc, |
| xmlNodePtr | cur, | ||
| float * | value | ||
| ) |
Parse a float object.
| void swSim::ParsableObject::Do_parse | ( | xmlDocPtr | doc, |
| xmlNodePtr | cur, | ||
| uint8_t * | value | ||
| ) |
Parse a uint_8 object.
| void swSim::ParsableObject::Do_parse | ( | xmlDocPtr | doc, |
| xmlNodePtr | cur, | ||
| uint32_t * | value | ||
| ) |
Parse a uint_32 object.
| void swSim::ParsableObject::Do_parse | ( | xmlDocPtr | doc, |
| xmlNodePtr | cur, | ||
| uint64_t * | value | ||
| ) |
Parse a uint_64 object.
| void swSim::ParsableObject::Do_parse | ( | xmlDocPtr | doc, |
| xmlNodePtr | cur, | ||
| bool * | value | ||
| ) |
Parse a boolean object.
| void swSim::ParsableObject::Do_parse | ( | xmlDocPtr | doc, |
| xmlNodePtr | cur, | ||
| char * | value | ||
| ) |
Parse a char array object.
| std::vector<std::string> swSim::ParsableObject::parseNames |
Vector of parse names to look for when reading inputs.