API
3.3
|
Public Member Functions | |
virtual | ~XMLDocument () |
XMLDocument () | |
XMLDocument (const std::string &aFileName) | |
XMLDocument (const XMLDocument &aDocument) | |
void | copyDefaultObjects (const XMLDocument &aDocument) |
void | writeDefaultObjects (SimTK::Xml::Element &elmt) |
const int & | getDocumentVersion () const |
Xml::Element | getRootDataElement () |
bool | isEqualTo (XMLDocument &aOtherDocument, double toleranceForDoubles=1e-6, bool compareDefaults=false, bool compareVersionNumbers=false) |
void | setFileName (const std::string &aFileName) |
const std::string & | getFileName () const |
void | addDefaultObject (OpenSim::Object *aDefaultObject) |
bool | hasDefaultObjects () const |
bool | print (const std::string &aFileName=NULL) |
Public Member Functions inherited from SimTK::Xml | |
Xml () | |
Xml (const String &pathname) | |
Xml (const Xml::Document &source) | |
Xml::Document & | operator= (const Xml::Document &souce) |
~Xml () | |
void | clear () |
Element | getRootElement () |
const String & | getRootTag () const |
void | setRootTag (const String &tag) |
void | insertTopLevelNodeAfter (const node_iterator &afterThis, Node insertThis) |
void | insertTopLevelNodeBefore (const node_iterator &beforeThis, Node insertThis) |
void | eraseTopLevelNode (const node_iterator &deleteThis) |
Node | removeTopLevelNode (const node_iterator &removeThis) |
node_iterator | node_begin (NodeType allowed=AnyNodes) |
node_iterator | node_end () const |
String | getXmlVersion () const |
String | getXmlEncoding () const |
bool | getXmlIsStandalone () const |
void | setXmlVersion (const String &version) |
void | setXmlEncoding (const String &encoding) |
void | setXmlIsStandalone (bool isStandalone) |
std::ostream & | operator<< (std::ostream &o, const Xml::Document &doc) |
void | readFromFile (const String &pathname) |
void | writeToFile (const String &pathname) const |
void | readFromString (const String &xmlDocument) |
void | readFromString (const char *xmlDocument) |
void | writeToString (String &xmlDocument, bool compact=false) const |
void | setIndentString (const String &indent) |
const String & | getIndentString () const |
Static Public Member Functions | |
static const int & | getLatestVersion () |
static void | renameChildNode (SimTK::Xml::Element &aNode, std::string oldElementName, std::string newElementName) |
static void | getVersionAsString (const int aVersion, std::string &aString) |
Static Public Member Functions inherited from SimTK::Xml | |
static String | getNodeTypeAsString (NodeType type) |
static void | setXmlCondenseWhiteSpace (bool shouldCondense) |
static bool | isXmlWhiteSpaceCondensed () |
Static Public Attributes | |
static const int | LatestVersion |
Latest version of the code encoded as an int xxyyzz where x: major release, y: minor, z: patch. More... | |
Additional Inherited Members | |
Public Types inherited from SimTK::Xml | |
enum | NodeType |
typedef Xml | Document |
|
virtual |
OpenSim::XMLDocument::XMLDocument | ( | ) |
OpenSim::XMLDocument::XMLDocument | ( | const std::string & | aFileName | ) |
OpenSim::XMLDocument::XMLDocument | ( | const XMLDocument & | aDocument | ) |
void OpenSim::XMLDocument::addDefaultObject | ( | OpenSim::Object * | aDefaultObject | ) |
void OpenSim::XMLDocument::copyDefaultObjects | ( | const XMLDocument & | aDocument | ) |
|
inline |
const std::string& OpenSim::XMLDocument::getFileName | ( | ) | const |
|
inlinestatic |
Xml::Element OpenSim::XMLDocument::getRootDataElement | ( | ) |
|
static |
|
inline |
bool OpenSim::XMLDocument::isEqualTo | ( | XMLDocument & | aOtherDocument, |
double | toleranceForDoubles = 1e-6 , |
||
bool | compareDefaults = false , |
||
bool | compareVersionNumbers = false |
||
) |
bool OpenSim::XMLDocument::print | ( | const std::string & | aFileName = NULL | ) |
|
static |
void OpenSim::XMLDocument::setFileName | ( | const std::string & | aFileName | ) |
void OpenSim::XMLDocument::writeDefaultObjects | ( | SimTK::Xml::Element & | elmt | ) |
|
static |
Latest version of the code encoded as an int xxyyzz where x: major release, y: minor, z: patch.