Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Private Attributes

TAO_PSDL_Interpreter Class Reference

#include <PSDL_Interpreter.h>

Collaboration diagram for TAO_PSDL_Interpreter:
Collaboration graph
[legend]

List of all members.

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_Noderoot_

Static Private Attributes

static TAO_SYNCH_MUTEX parserMutex__

Detailed Description

Definition at line 32 of file PSDL_Interpreter.h.


Constructor & Destructor Documentation

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_;
}


Member Function Documentation

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;
}


Member Data Documentation

TAO_SYNCH_MUTEX TAO_PSDL_Interpreter::parserMutex__ [static, private]

Definition at line 56 of file PSDL_Interpreter.h.

Definition at line 52 of file PSDL_Interpreter.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines