bt_parser.h
Go to the documentation of this file.
1 #ifndef PARSING_BT_H
2 #define PARSING_BT_H
3 
6 
7 namespace BT
8 {
14 class Parser
15 {
16  public:
17  Parser() = default;
18 
19  ~Parser() = default;
20 
21  Parser(const Parser& other) = delete;
22  Parser& operator=(const Parser& other) = delete;
23 
24  virtual void loadFromFile(const std::string& filename) = 0;
25 
26  virtual void loadFromText(const std::string& xml_text) = 0;
27 
28  virtual Tree instantiateTree(const Blackboard::Ptr &root_blackboard) = 0;
29 };
30 
31 }
32 
33 #endif // 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
Parser()=default
std::shared_ptr< Blackboard > Ptr
Definition: blackboard.h:26
Parser & operator=(const Parser &other)=delete
virtual void loadFromText(const std::string &xml_text)=0
~Parser()=default
virtual void loadFromFile(const std::string &filename)=0
virtual Tree instantiateTree(const Blackboard::Ptr &root_blackboard)=0
static const char * xml_text
Struct used to store a tree. If this object goes out of scope, the tree is destroyed.
Definition: bt_factory.h:78


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