49 #ifndef vpXMLPARSERHOMOGENEOUSMATRIX_H
50 #define vpXMLPARSERHOMOGENEOUSMATRIX_H
52 #include <visp/vpConfig.h>
57 #include <visp/vpXmlParser.h>
58 #include <visp/vpHomogeneousMatrix.h>
59 #include <libxml/xmlmemory.h>
189 } vpXmlCodeSequenceType;
216 int read (xmlDocPtr doc, xmlNodePtr node,
217 const std::string& name);
219 int count (xmlDocPtr doc, xmlNodePtr node,
220 const std::string& name);
222 int read_matrix (xmlDocPtr doc, xmlNodePtr node,
223 const std::string& name);
225 vpXmlCodeSequenceType read_values (xmlDocPtr doc, xmlNodePtr node,
228 static vpXmlCodeSequenceType str2xmlcode (
char * str, vpXmlCodeType & res);
229 void myXmlReadIntChild (xmlDocPtr doc,
232 vpXmlCodeSequenceType &code_error);
234 void myXmlReadDoubleChild (xmlDocPtr doc,
237 vpXmlCodeSequenceType &code_error);
239 void myXmlReadCharChild (xmlDocPtr doc,
242 int write (xmlNodePtr node,
const std::string& name);
261 #endif //VISP_HAVE_XML2
void setHomogeneousMatrixName(const std::string &name)
std::string getHomogeneousMatrixName() const
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
virtual void writeMainClass(xmlNodePtr node)=0
void save(const std::string &filename, const bool append=false)
This class intends to simplify the creation of xml parser based on the libxml2 third party library...
vpHomogeneousMatrix getHomogeneousMatrix() const
XML parser to load and save an homogenous matrix in a file.
virtual void readMainClass(xmlDocPtr doc, xmlNodePtr node)=0
~vpXmlParserHomogeneousMatrix()
void parse(const std::string &filename)