The XMLParser is a class used to read the model of a BehaviorTree from file or text and instantiate the corresponding tree using the BehaviorTreeFactory.
More...
#include <xml_parsing.h>
|
|
| XMLParser (const BehaviorTreeFactory &factory) |
| |
|
| XMLParser (const XMLParser &other)=delete |
| |
|
XMLParser & | operator= (const XMLParser &other)=delete |
| |
|
| XMLParser (XMLParser &&other) noexcept |
| |
|
XMLParser & | operator= (XMLParser &&other) noexcept |
| |
| void | loadFromFile (const std::filesystem::path &filename, bool add_includes=true) override |
| |
| void | loadFromText (const std::string &xml_text, bool add_includes=true) override |
| |
| std::vector< std::string > | registeredBehaviorTrees () const override |
| |
| Tree | instantiateTree (const Blackboard::Ptr &root_blackboard, std::string main_tree_to_execute={}) override |
| |
| void | clearInternalState () override |
| |
|
| Parser (const Parser &other)=delete |
| |
|
Parser & | operator= (const Parser &other)=delete |
| |
|
| Parser (Parser &&other)=default |
| |
|
Parser & | operator= (Parser &&other)=default |
| |
|
virtual void | loadFromFile (const std::filesystem::path &filename, bool add_includes=true)=0 |
| |
|
virtual void | loadFromText (const std::string &xml_text, bool add_includes=true)=0 |
| |
|
virtual std::vector< std::string > | registeredBehaviorTrees () const =0 |
| |
|
virtual Tree | instantiateTree (const Blackboard::Ptr &root_blackboard, std::string tree_name={})=0 |
| |
|
virtual void | clearInternalState () |
| |
The XMLParser is a class used to read the model of a BehaviorTree from file or text and instantiate the corresponding tree using the BehaviorTreeFactory.
◆ clearInternalState()
| void BT::XMLParser::clearInternalState |
( |
| ) |
|
|
overridevirtual |
◆ instantiateTree()
| Tree BT::XMLParser::instantiateTree |
( |
const Blackboard::Ptr & |
root_blackboard, |
|
|
std::string |
main_tree_to_execute = {} |
|
) |
| |
|
overridevirtual |
◆ loadFromFile()
| void BT::XMLParser::loadFromFile |
( |
const std::filesystem::path & |
filename, |
|
|
bool |
add_includes = true |
|
) |
| |
|
overridevirtual |
◆ loadFromText()
| void BT::XMLParser::loadFromText |
( |
const std::string & |
xml_text, |
|
|
bool |
add_includes = true |
|
) |
| |
|
overridevirtual |
◆ registeredBehaviorTrees()
| std::vector< std::string > BT::XMLParser::registeredBehaviorTrees |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file: