47 #ifndef vpXMLPARSERHOMOGENEOUSMATRIX_H
48 #define vpXMLPARSERHOMOGENEOUSMATRIX_H
50 #include <visp3/core/vpConfig.h>
54 #include <libxml/xmlmemory.h>
56 #include <visp3/core/vpHomogeneousMatrix.h>
57 #include <visp3/core/vpXmlParser.h>
185 typedef enum { SEQUENCE_OK, SEQUENCE_ERROR } vpXmlCodeSequenceType;
199 std::string getHomogeneousMatrixName()
const {
return this->m_name; }
206 void setHomogeneousMatrixName(
const std::string &name) { this->m_name = name; }
209 int read(xmlDocPtr doc, xmlNodePtr node,
const std::string &name);
211 int count(xmlDocPtr doc, xmlNodePtr node,
const std::string &name);
213 int read_matrix(xmlDocPtr doc, xmlNodePtr node,
const std::string &name);
217 static vpXmlCodeSequenceType str2xmlcode(
char *str, vpXmlCodeType &res);
218 void myXmlReadIntChild(xmlDocPtr doc, xmlNodePtr node,
int &res, vpXmlCodeSequenceType &code_error);
220 void myXmlReadDoubleChild(xmlDocPtr doc, xmlNodePtr node,
double &res, vpXmlCodeSequenceType &code_error);
222 void myXmlReadCharChild(xmlDocPtr doc, xmlNodePtr node,
char **res);
223 int write(xmlNodePtr node,
const std::string &name);
240 #endif // VISP_HAVE_XML2