Visual Servoing Platform
version 3.5.0 under development (2022-02-15)
|
#include <visp3/core/vpXmlParserRectOriented.h>
Public Types | |
enum | vpXmlCodeSequenceType { SEQUENCE_OK, SEQUENCE_ERROR } |
Public Member Functions | |
vpXmlParserRectOriented () | |
~vpXmlParserRectOriented () | |
vpRectOriented | getRectangle () const |
void | parse (const std::string &filename) |
void | save (const std::string &filename, bool append=false) |
void | setRectangle (const vpRectOriented &rectangle) |
XML parser to load and save an oriented rectangle in a file.
The following example shows how to save an oriented rectangle in an xml file:
The following example shows how to read an oriented rectangle from an xml file:
Definition at line 92 of file vpXmlParserRectOriented.h.
Enumerator | |
---|---|
SEQUENCE_OK | |
SEQUENCE_ERROR |
Definition at line 98 of file vpXmlParserRectOriented.h.
vpXmlParserRectOriented::vpXmlParserRectOriented | ( | ) |
Definition at line 171 of file vpXmlParserRectOriented.cpp.
vpXmlParserRectOriented::~vpXmlParserRectOriented | ( | ) |
Definition at line 175 of file vpXmlParserRectOriented.cpp.
vpRectOriented vpXmlParserRectOriented::getRectangle | ( | ) | const |
Definition at line 208 of file vpXmlParserRectOriented.cpp.
void vpXmlParserRectOriented::parse | ( | const std::string & | filename | ) |
Parse the document. The data in the file are stored in the attributes of the child class. This method calls the readMainClass method which has to be implemented for every child class depending on the content to parse.
filename | : name of the file to parse |
Definition at line 188 of file vpXmlParserRectOriented.cpp.
void vpXmlParserRectOriented::save | ( | const std::string & | filename, |
bool | append = false |
||
) |
Save the content of the class in the file given in parameters. The data of the class are in the child class. This method calls the write_main_class method which has to be implemented for every class depending on the data to save.
filename | : the name of the file used to record the data |
append | : if true and if the file exists, the data will be added to the data already in the file |
Definition at line 203 of file vpXmlParserRectOriented.cpp.
void vpXmlParserRectOriented::setRectangle | ( | const vpRectOriented & | rectangle | ) |
Definition at line 213 of file vpXmlParserRectOriented.cpp.