#include <PSDL_Interpreter.h>
Collaboration diagram for TAO_PSDL_Interpreter:
Protected Member Functions | |
TAO_PSDL_Interpreter (void) | |
~TAO_PSDL_Interpreter (void) | |
int | build_tree (const char *constraints) |
Static Protected Member Functions | |
int | is_empty_string (const char *str) |
Protected Attributes | |
TAO_PSDL_Node * | root_ |
Static Private Attributes | |
TAO_SYNCH_MUTEX | parserMutex__ |
|
Definition at line 12 of file PSDL_Interpreter.cpp.
00013 : root_ (0) 00014 { 00015 } |
|
Definition at line 17 of file PSDL_Interpreter.cpp.
00018 { 00019 delete this->root_; 00020 } |
|
Definition at line 23 of file PSDL_Interpreter.cpp. References ACE_GUARD_RETURN, parserMutex__, TAO_Lex_String_Input::reset(), TAO_PSDL_yyparse(), TAO_SYNCH_MUTEX, and yyval.
00024 { 00025 ACE_GUARD_RETURN (TAO_SYNCH_MUTEX, 00026 guard, 00027 TAO_PSDL_Interpreter::parserMutex__, 00028 -1); 00029 00030 TAO_Lex_String_Input::reset ((char*)nodes); 00031 00032 yyval = 0; 00033 void *result_ptr = 0; 00034 int return_value = TAO_PSDL_yyparse (result_ptr); 00035 00036 if (return_value == 0 && yyval != 0) 00037 { 00038 this->root_ = yyval; 00039 } 00040 else 00041 { 00042 this->root_ = 0; 00043 } 00044 00045 return return_value; 00046 } |
|
Definition at line 49 of file PSDL_Interpreter.cpp.
00050 { 00051 int return_value = 0; 00052 00053 if (str != 0) 00054 { 00055 int i = 0; 00056 00057 while (str[i] != '\0') 00058 { 00059 if (str[i] != ' ') 00060 { 00061 break; 00062 } 00063 00064 i++; 00065 } 00066 00067 if (str[i] == '\0') 00068 { 00069 return_value = 1; 00070 } 00071 } 00072 00073 return return_value; 00074 } |
|
Definition at line 10 of file PSDL_Interpreter.cpp. Referenced by build_tree(). |
|
Definition at line 52 of file PSDL_Interpreter.h. |