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

Tree instantiateTree (const Blackboard::Ptr &root_blackboard) override
 
void loadFromFile (const std::string &filename) override
 
void loadFromText (const std::string &xml_text) override
 
XMLParseroperator= (const XMLParser &other)=delete
 
 XMLParser (const BehaviorTreeFactory &factory)
 
 XMLParser (const XMLParser &other)=delete
 
 ~XMLParser ()
 
- Public Member Functions inherited from BT::Parser
Parseroperator= (const Parser &other)=delete
 
 Parser ()=default
 
 Parser (const Parser &other)=delete
 
virtual ~Parser ()=default
 

Private Attributes

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 14 of file xml_parsing.h.

Constructor & Destructor Documentation

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

Definition at line 89 of file xml_parsing.cpp.

BT::XMLParser::~XMLParser ( )

Definition at line 94 of file xml_parsing.cpp.

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

Member Function Documentation

Tree BT::XMLParser::instantiateTree ( const Blackboard::Ptr root_blackboard)
overridevirtual

Implements BT::Parser.

Definition at line 420 of file xml_parsing.cpp.

void BT::XMLParser::loadFromFile ( const std::string &  filename)
overridevirtual

Implements BT::Parser.

Definition at line 99 of file xml_parsing.cpp.

void BT::XMLParser::loadFromText ( const std::string &  xml_text)
overridevirtual

Implements BT::Parser.

Definition at line 112 of file xml_parsing.cpp.

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

Member Data Documentation

Pimpl* BT::XMLParser::_p
private

Definition at line 32 of file xml_parsing.h.


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


behaviotree_cpp_v3
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Tue May 4 2021 02:56:26