YARP
Yet Another Robot Platform
XMLReader.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_ROBOTINTERFACE_XMLREADER_H
10 #define YARP_ROBOTINTERFACE_XMLREADER_H
11 
14 
15 #include <string>
16 
17 
18 namespace yarp {
19 namespace robotinterface {
20 namespace experimental {
21 
26 {
27 public:
29  {
30  XMLReaderResult result;
31  result.parsingIsSuccessful = false;
32  return result;
33  }
34 
38  bool parsingIsSuccessful = false;
39 
44 };
45 
47 {
48 public:
49  XMLReader();
50  virtual ~XMLReader();
51 
58  XMLReaderResult getRobotFromFile(const std::string& filename);
59 
66  XMLReaderResult getRobotFromString(const std::string& xmlString);
67  void setVerbose(bool verbose);
68  void setEnableDeprecated(bool enab);
69 
70 private:
71  class Private;
72  Private* const mPriv;
73 
74 }; // class XMLReader
75 
76 } // namespace experimental
77 } // namespace robotinterface
78 } // namespace yarp
79 
80 #endif // YARP_ROBOTINTERFACE_XMLREADER_H
Result of the parsing of XMLReader.
Definition: XMLReader.h:26
Robot robot
If parsingIsSuccessful is true, contains a valid robot instance.
Definition: XMLReader.h:43
bool parsingIsSuccessful
True if the parsing was successful, false otherwise.
Definition: XMLReader.h:38
The main, catch-all namespace for YARP.
Definition: environment.h:18
#define YARP_robotinterface_API
Definition: api.h:19