26 #ifndef CASADI_TINYXML_INTERFACE_HPP
27 #define CASADI_TINYXML_INTERFACE_HPP
40 #include "casadi/core/xml_file_internal.hpp"
41 #include <casadi/interfaces/tinyxml/casadi_xmlfile_tinyxml_export.h>
43 typedef tinyxml2::XMLNode TiXmlNode;
44 typedef tinyxml2::XMLDocument TiXmlDocument;
45 typedef tinyxml2::XMLElement TiXmlElement;
46 typedef tinyxml2::XMLAttribute TiXmlAttribute;
47 typedef tinyxml2::XMLError XMLError;
55 class TinyXmlInterface :
public XmlFileInternal {
62 static XmlFileInternal* creator()
63 {
return new TinyXmlInterface();}
66 const char* plugin_name()
const override {
return "tinyxml";}
69 std::string class_name()
const override {
return "TinyXmlInterface";}
72 XmlNode parse(
const std::string& filename)
override;
75 void dump(
const std::string& filename,
const XmlNode& node)
override;
78 XmlNode import_node(TiXmlNode* n);
81 void export_node(TiXmlNode* n,
const XmlNode& node);
84 ~TinyXmlInterface()
override;
87 static const std::string meta_doc;