#include <PSDL_Interpreter.h>
Protected Member Functions | |
TAO_PSDL_Interpreter (void) | |
~TAO_PSDL_Interpreter (void) | |
int | build_tree (const char *constraints) |
Static Protected Member Functions | |
static int | is_empty_string (const char *str) |
Protected Attributes | |
TAO_PSDL_Node * | root_ |
Static Private Attributes | |
static TAO_SYNCH_MUTEX | parserMutex__ |
Definition at line 32 of file PSDL_Interpreter.h.
TAO_PSDL_Interpreter::TAO_PSDL_Interpreter | ( | void | ) | [protected] |
Definition at line 12 of file PSDL_Interpreter.cpp.
: root_ (0) { }
TAO_PSDL_Interpreter::~TAO_PSDL_Interpreter | ( | void | ) | [protected] |
Definition at line 17 of file PSDL_Interpreter.cpp.
{ delete this->root_; }
int TAO_PSDL_Interpreter::build_tree | ( | const char * | constraints | ) | [protected] |
Definition at line 23 of file PSDL_Interpreter.cpp.
{ ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, guard, TAO_PSDL_Interpreter::parserMutex__, -1); TAO_Lex_String_Input::reset ((char*)nodes); yyval = 0; void *result_ptr = 0; int return_value = TAO_PSDL_yyparse (result_ptr); if (return_value == 0 && yyval != 0) { this->root_ = yyval; } else { this->root_ = 0; } return return_value; }
int TAO_PSDL_Interpreter::is_empty_string | ( | const char * | str | ) | [static, protected] |
Definition at line 49 of file PSDL_Interpreter.cpp.
{ int return_value = 0; if (str != 0) { int i = 0; while (str[i] != '\0') { if (str[i] != ' ') { break; } i++; } if (str[i] == '\0') { return_value = 1; } } return return_value; }
TAO_SYNCH_MUTEX TAO_PSDL_Interpreter::parserMutex__ [static, private] |
Definition at line 56 of file PSDL_Interpreter.h.
TAO_PSDL_Node* TAO_PSDL_Interpreter::root_ [protected] |
Definition at line 52 of file PSDL_Interpreter.h.