00001 #ifndef PARSING_BT_H 00002 #define PARSING_BT_H 00003 00004 #include "behaviortree_cpp/bt_factory.h" 00005 #include "behaviortree_cpp/blackboard.h" 00006 00007 namespace BT 00008 { 00014 class Parser 00015 { 00016 public: 00017 Parser() = default; 00018 00019 ~Parser() = default; 00020 00021 Parser(const Parser& other) = delete; 00022 Parser& operator=(const Parser& other) = delete; 00023 00024 virtual void loadFromFile(const std::string& filename) = 0; 00025 00026 virtual void loadFromText(const std::string& xml_text) = 0; 00027 00028 virtual Tree instantiateTree(const Blackboard::Ptr &root_blackboard) = 0; 00029 }; 00030 00031 } 00032 00033 #endif // PARSING_BT_H