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>
188 } 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)
virtual ~vpXmlParserHomogeneousMatrix()
Default destructor.
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
void parse(const std::string &filename)