Classes | Public Member Functions | Private Attributes | List of all members
BT::XMLParser Class Reference

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>

Inheritance diagram for BT::XMLParser:
Inheritance graph
[legend]

Classes

struct  PImpl
 

Public Member Functions

void clearInternalState () override
 
Tree instantiateTree (const Blackboard::Ptr &root_blackboard, std::string main_tree_to_execute={}) override
 
void loadFromFile (const std::filesystem::path &filename, bool add_includes=true) override
 
void loadFromText (const std::string &xml_text, bool add_includes=true) override
 
XMLParseroperator= (const XMLParser &other)=delete
 
XMLParseroperator= (XMLParser &&other) noexcept
 
std::vector< std::string > registeredBehaviorTrees () const override
 
 XMLParser (const BehaviorTreeFactory &factory)
 
 XMLParser (const XMLParser &other)=delete
 
 XMLParser (XMLParser &&other) noexcept
 
 ~XMLParser () override
 
- Public Member Functions inherited from BT::Parser
Parseroperator= (const Parser &other)=delete
 
Parseroperator= (Parser &&other)=default
 
 Parser ()=default
 
 Parser (const Parser &other)=delete
 
 Parser (Parser &&other)=default
 
virtual ~Parser ()=default
 

Private Attributes

std::unique_ptr< PImpl_p
 

Detailed Description

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.

Definition at line 16 of file xml_parsing.h.

Constructor & Destructor Documentation

◆ XMLParser() [1/3]

BT::XMLParser::XMLParser ( const BehaviorTreeFactory factory)

Definition at line 135 of file xml_parsing.cpp.

◆ ~XMLParser()

BT::XMLParser::~XMLParser ( )
override

Definition at line 149 of file xml_parsing.cpp.

◆ XMLParser() [2/3]

BT::XMLParser::XMLParser ( const XMLParser other)
delete

◆ XMLParser() [3/3]

BT::XMLParser::XMLParser ( XMLParser &&  other)
noexcept

Definition at line 138 of file xml_parsing.cpp.

Member Function Documentation

◆ clearInternalState()

void BT::XMLParser::clearInternalState ( )
overridevirtual

Reimplemented from BT::Parser.

Definition at line 589 of file xml_parsing.cpp.

◆ instantiateTree()

Tree BT::XMLParser::instantiateTree ( const Blackboard::Ptr root_blackboard,
std::string  main_tree_to_execute = {} 
)
overridevirtual

Implements BT::Parser.

Definition at line 550 of file xml_parsing.cpp.

◆ loadFromFile()

void BT::XMLParser::loadFromFile ( const std::filesystem::path &  filename,
bool  add_includes = true 
)
overridevirtual

Implements BT::Parser.

Definition at line 152 of file xml_parsing.cpp.

◆ loadFromText()

void BT::XMLParser::loadFromText ( const std::string &  xml_text,
bool  add_includes = true 
)
overridevirtual

Implements BT::Parser.

Definition at line 164 of file xml_parsing.cpp.

◆ operator=() [1/2]

XMLParser& BT::XMLParser::operator= ( const XMLParser other)
delete

◆ operator=() [2/2]

XMLParser & BT::XMLParser::operator= ( XMLParser &&  other)
noexcept

Definition at line 143 of file xml_parsing.cpp.

◆ registeredBehaviorTrees()

std::vector< std::string > BT::XMLParser::registeredBehaviorTrees ( ) const
overridevirtual

Implements BT::Parser.

Definition at line 174 of file xml_parsing.cpp.

Member Data Documentation

◆ _p

std::unique_ptr<PImpl> BT::XMLParser::_p
private

Definition at line 42 of file xml_parsing.h.


The documentation for this class was generated from the following files:


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Jun 28 2024 02:20:09