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> 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
void setHomogeneousMatrixName(const std::string &name)
virtual ~vpXmlParserHomogeneousMatrix()
Default destructor.
Implementation of an homogeneous matrix and operations on such kind of matrices.
virtual void writeMainClass(xmlNodePtr node)=0
std::string getHomogeneousMatrixName() const
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...
XML parser to load and save an homogeneous matrix in a file.
virtual void readMainClass(xmlDocPtr doc, xmlNodePtr node)=0
vpHomogeneousMatrix getHomogeneousMatrix() const
void parse(const std::string &filename)