YARP
Yet Another Robot Platform
yarp::robotinterface::XMLReader Class Reference

Class to read an XML file. More...

#include <yarp/robotinterface/XMLReader.h>

Classes

class  Private
 

Public Member Functions

 XMLReader ()
 
virtual ~XMLReader ()
 
XMLReaderResult getRobotFromFile (const std::string &filename, const yarp::os::Searchable &config=yarp::os::Property())
 Parse the XML description of a robotinterface from a file. More...
 
XMLReaderResult getRobotFromString (const std::string &filename, const yarp::os::Searchable &config=yarp::os::Property())
 Parse the XML description of a robotinterface from a string. More...
 
void setVerbose (bool verbose)
 
void setEnableDeprecated (bool enab)
 

Detailed Description

Class to read an XML file.

Definition at line 51 of file XMLReader.h.

Constructor & Destructor Documentation

◆ XMLReader()

yarp::robotinterface::XMLReader::XMLReader ( )

Definition at line 54 of file XMLReader.cpp.

◆ ~XMLReader()

yarp::robotinterface::XMLReader::~XMLReader ( )
virtual

Definition at line 59 of file XMLReader.cpp.

Member Function Documentation

◆ getRobotFromFile()

yarp::robotinterface::XMLReaderResult yarp::robotinterface::XMLReader::getRobotFromFile ( const std::string &  filename,
const yarp::os::Searchable config = yarp::os::Property() 
)

Parse the XML description of a robotinterface from a file.

Parameters
filenamepath to the XML file to load.
Returns
result of parsing.

Definition at line 74 of file XMLReader.cpp.

◆ getRobotFromString()

yarp::robotinterface::XMLReaderResult yarp::robotinterface::XMLReader::getRobotFromString ( const std::string &  filename,
const yarp::os::Searchable config = yarp::os::Property() 
)

Parse the XML description of a robotinterface from a string.

Parameters
xmlStringstring containing the XML code to parse.
Returns
result of parsing.

Definition at line 140 of file XMLReader.cpp.

◆ setEnableDeprecated()

void yarp::robotinterface::XMLReader::setEnableDeprecated ( bool  enab)

Definition at line 69 of file XMLReader.cpp.

◆ setVerbose()

void yarp::robotinterface::XMLReader::setVerbose ( bool  verbose)

Definition at line 64 of file XMLReader.cpp.


The documentation for this class was generated from the following files: