22 #ifndef __BIAS_XMLBASE_hh__
23 #define __BIAS_XMLBASE_hh__
25 #include "bias_config.h"
27 #ifndef BIAS_HAVE_XML2
28 # error BIAS_HAVE_XML2 required to use XMLIO.hh. Please recompile BIAS with USE_XML2.
33 #include <Base/Common/XMLIO.hh>
64 xmlNodePtr XMLAdd(
const xmlNodePtr Node,
XMLIO& XMLObject)
const;
69 int XMLWrite(
const std::string& Filename,
70 int CompressionLevel = 0,
71 bool AutoAddCompressionSuffix =
true,
72 std::string encoding=
"UTF-8")
const;
76 int XMLWriteToString(std::string &str,
77 std::string encoding=
"UTF-8")
const;
81 int XMLReadFromString(
const std::string& str);
85 virtual int XMLGetClassName(std::string& TopLevelTag,
86 double& Version)
const = 0;
92 virtual int XMLOut(
const xmlNodePtr Node,
XMLIO& XMLObject)
const = 0;
97 virtual int XMLIn(
const xmlNodePtr Node,
XMLIO& XMLObject) = 0;
103 int XMLRead(
const std::string& Filename);
109 #endif // BIAS_HAVE_XML2
110 #endif // __BIAS_XMLBASE_hh__
Wrapper class for reading and writing XML files based on the XML library libxml2. ...
Base class with interface for xml output.