45 #ifndef vpXMLPARSERHOMOGENEOUSMATRIX_H
46 #define vpXMLPARSERHOMOGENEOUSMATRIX_H
48 #include <visp3/core/vpConfig.h>
53 #include <visp3/core/vpXmlParser.h>
54 #include <visp3/core/vpHomogeneousMatrix.h>
55 #include <libxml/xmlmemory.h>
185 } vpXmlCodeSequenceType;
212 int read (xmlDocPtr doc, xmlNodePtr node,
213 const std::string& name);
215 int count (xmlDocPtr doc, xmlNodePtr node,
216 const std::string& name);
218 int read_matrix (xmlDocPtr doc, xmlNodePtr node,
219 const std::string& name);
221 vpXmlCodeSequenceType read_values (xmlDocPtr doc, xmlNodePtr node,
224 static vpXmlCodeSequenceType str2xmlcode (
char * str, vpXmlCodeType & res);
225 void myXmlReadIntChild (xmlDocPtr doc,
228 vpXmlCodeSequenceType &code_error);
230 void myXmlReadDoubleChild (xmlDocPtr doc,
233 vpXmlCodeSequenceType &code_error);
235 void myXmlReadCharChild (xmlDocPtr doc,
238 int write (xmlNodePtr node,
const std::string& name);
257 #endif //VISP_HAVE_XML2
void setHomogeneousMatrixName(const std::string &name)
std::string getHomogeneousMatrixName() const
Implementation of an homogeneous matrix and operations on such kind of matrices.
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 homogeneous matrix in a file.
virtual void readMainClass(xmlDocPtr doc, xmlNodePtr node)=0
~vpXmlParserHomogeneousMatrix()
void parse(const std::string &filename)