xml_parsing.h
Go to the documentation of this file.
1 #ifndef XML_PARSING_BT_H
2 #define XML_PARSING_BT_H
3 
5 
6 namespace BT
7 {
8 
14 class XMLParser: public Parser
15 {
16  public:
17  XMLParser(const BehaviorTreeFactory& factory);
18 
19  ~XMLParser();
20 
21  XMLParser(const XMLParser& other) = delete;
22  XMLParser& operator=(const XMLParser& other) = delete;
23 
24  void loadFromFile(const std::string& filename) override;
25 
26  void loadFromText(const std::string& xml_text) override;
27 
28  Tree instantiateTree(const Blackboard::Ptr &root_blackboard) override;
29 
30  private:
31 
32  struct Pimpl;
33  Pimpl* _p;
34 
35 };
36 
37 void VerifyXML(const std::string& xml_text,
38  const std::set<std::string> &registered_nodes);
39 
40 std::string writeTreeNodesModelXML(const BehaviorTreeFactory& factory);
41 
42 }
43 
44 #endif // XML_PARSING_BT_H
The BehaviorTreeParser is a class used to read the model of a BehaviorTree from file or text and inst...
Definition: bt_parser.h:14
Pimpl * _p
Definition: xml_parsing.h:32
std::shared_ptr< Blackboard > Ptr
Definition: blackboard.h:26
The BehaviorTreeFactory is used to create instances of a TreeNode at run-time.
Definition: bt_factory.h:98
Tree instantiateTree(const Blackboard::Ptr &root_blackboard) override
std::string writeTreeNodesModelXML(const BehaviorTreeFactory &factory)
The XMLParser is a class used to read the model of a BehaviorTree from file or text and instantiate t...
Definition: xml_parsing.h:14
static const char * xml_text
void loadFromText(const std::string &xml_text) override
XMLParser(const BehaviorTreeFactory &factory)
Definition: xml_parsing.cpp:82
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
Definition: bt_factory.h:78
void VerifyXML(const std::string &xml_text, const std::set< std::string > &registered_nodes)
void loadFromFile(const std::string &filename) override
Definition: xml_parsing.cpp:92
XMLParser & operator=(const XMLParser &other)=delete


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 18:04:05