Classes | Public Types | Public Member Functions | Public Attributes
BTParser Class Reference

List of all members.

Classes

struct  TokenizerContext
struct  TokenizerInit

Public Types

typedef Parser::Token< TokenTypeToken
enum  TokenType {
  tkn_null = 0, tkn_text = 1, tkn_bopen, tkn_bclose,
  tkn_fopen, tkn_fclose, tkn_semicol, tkn_col,
  tkn_bt_bgn, tkn_bt_root_bgn, tkn_par_bgn, tkn_seq_bgn,
  tkn_sel_bgn, tkn_task_bgn, tkn_dec_not_bgn, tkn_dec_success_bgn,
  tkn_dec_fail_bgn, tkn_bt_end, tkn_par_end, tkn_seq_end,
  tkn_sel_end, tkn_task_end, tkn_dec_not_end, tkn_dec_success_end,
  tkn_dec_fail_end, tkn_set_task_result, tkn_set_task_result_after, tkn_call_bt,
  tkn_call_task, tkn_call_fsm
}
typedef Parser::TokenStream
< TokenType
tstream

Public Member Functions

bool bt (tstream &stream)
bool bt_body (tstream &stream, Token &tkn)
bool bt_node (tstream &stream)
bool bt_node_body (tstream &stream, Token &tkn)
 BTParser (string file)
TokenType endOfTask (TokenType bgn)
size_t findClosingBracket (tstream &stream, TokenType openToken, TokenType closeToken)
BTConstructormain ()
bool name (tstream &stream, string txt, string &output, int &line, int &pos)
bool name (tstream &stream, string txt, string &output)
string node_type_str (TokenType t)
bool parse_bracket_content (tstream &stream, string &outputText)
bool root_name (tstream &stream, string txt, string &output)
void saveReadedChar (TokenizerContext &ctx, char c)
void searchLineInfo (int i, int &line, int &pos)
bool skipComments (TokenizerContext &ctx)

Public Attributes

BTConstructor constructor
std::stringstream errors
string filename
std::string fullText
std::vector< int > lines
std::deque< TokentknStack
tstream tokens

Detailed Description

Definition at line 20 of file Parsers_BT.cpp.


Member Typedef Documentation

Definition at line 121 of file Parsers_BT.cpp.

Definition at line 120 of file Parsers_BT.cpp.


Member Enumeration Documentation

Enumerator:
tkn_null 
tkn_text 
tkn_bopen 
tkn_bclose 
tkn_fopen 
tkn_fclose 
tkn_semicol 
tkn_col 
tkn_bt_bgn 
tkn_bt_root_bgn 
tkn_par_bgn 
tkn_seq_bgn 
tkn_sel_bgn 
tkn_task_bgn 
tkn_dec_not_bgn 
tkn_dec_success_bgn 
tkn_dec_fail_bgn 
tkn_bt_end 
tkn_par_end 
tkn_seq_end 
tkn_sel_end 
tkn_task_end 
tkn_dec_not_end 
tkn_dec_success_end 
tkn_dec_fail_end 
tkn_set_task_result 
tkn_set_task_result_after 
tkn_call_bt 
tkn_call_task 
tkn_call_fsm 

Definition at line 22 of file Parsers_BT.cpp.


Constructor & Destructor Documentation

BTParser::BTParser ( string  file) [inline]

Definition at line 472 of file Parsers_BT.cpp.


Member Function Documentation

bool BTParser::bt ( tstream stream) [inline]

Definition at line 399 of file Parsers_BT.cpp.

bool BTParser::bt_body ( tstream stream,
Token tkn 
) [inline]

Definition at line 389 of file Parsers_BT.cpp.

bool BTParser::bt_node ( tstream stream) [inline]

Decorators

Definition at line 252 of file Parsers_BT.cpp.

bool BTParser::bt_node_body ( tstream stream,
Token tkn 
) [inline]

Definition at line 226 of file Parsers_BT.cpp.

Decorators

Definition at line 206 of file Parsers_BT.cpp.

size_t BTParser::findClosingBracket ( tstream stream,
TokenType  openToken,
TokenType  closeToken 
) [inline]

Definition at line 134 of file Parsers_BT.cpp.

Definition at line 481 of file Parsers_BT.cpp.

bool BTParser::name ( tstream stream,
string  txt,
string &  output,
int &  line,
int &  pos 
) [inline]

Definition at line 123 of file Parsers_BT.cpp.

bool BTParser::name ( tstream stream,
string  txt,
string &  output 
) [inline]

Definition at line 188 of file Parsers_BT.cpp.

string BTParser::node_type_str ( TokenType  t) [inline]

Definition at line 237 of file Parsers_BT.cpp.

bool BTParser::parse_bracket_content ( tstream stream,
string &  outputText 
) [inline]

Definition at line 143 of file Parsers_BT.cpp.

bool BTParser::root_name ( tstream stream,
string  txt,
string &  output 
) [inline]

Definition at line 193 of file Parsers_BT.cpp.

void BTParser::saveReadedChar ( TokenizerContext ctx,
char  c 
) [inline]

Definition at line 446 of file Parsers_BT.cpp.

void BTParser::searchLineInfo ( int  i,
int &  line,
int &  pos 
) [inline]

Definition at line 435 of file Parsers_BT.cpp.

bool BTParser::skipComments ( TokenizerContext ctx) [inline]

Definition at line 451 of file Parsers_BT.cpp.


Member Data Documentation

Definition at line 477 of file Parsers_BT.cpp.

std::stringstream BTParser::errors

Definition at line 478 of file Parsers_BT.cpp.

Definition at line 474 of file Parsers_BT.cpp.

std::string BTParser::fullText

Definition at line 475 of file Parsers_BT.cpp.

std::vector<int> BTParser::lines

Definition at line 479 of file Parsers_BT.cpp.

Definition at line 205 of file Parsers_BT.cpp.

Definition at line 476 of file Parsers_BT.cpp.


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


decision_making_parser
Author(s):
autogenerated on Wed Aug 26 2015 11:16:57