Sarafun Behavior Trees package  1
Behavior trees for the SARAFun project
 All Data Structures Namespaces Functions Variables Enumerations Enumerator
Public Member Functions | Private Member Functions | Private Attributes
bt_parser::Parser Class Reference

#include <parse_tree.h>

Collaboration diagram for bt_parser::Parser:
Collaboration graph

Public Member Functions

 Parser (std::string filepath)
 
 ~Parser ()
 
BT::TreeNode * parseTree ()
 

Private Member Functions

BT::TreeNode * parseTree (json node)
 
void verifyNode (json node)
 

Private Attributes

std::ifstream file_
 
json tree_j_
 
std::string current_id_
 

Detailed Description

Implements a behavior tree parser, that reads a JSON file describing the tree and generates the executable tree structure.

Definition at line 17 of file parse_tree.h.


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