ACE_Parse_Node Class Reference

Provide the base of the object hierarchy that defines the parse tree of Service Nodes. More...

#include <Parse_Node.h>

Inheritance diagram for ACE_Parse_Node:

Inheritance graph
[legend]
Collaboration diagram for ACE_Parse_Node:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACE_Parse_Node (void)
 ACE_Parse_Node (const ACE_TCHAR *name)
virtual ~ACE_Parse_Node (void)
ACE_Parse_Nodelink (void) const
void link (ACE_Parse_Node *)
virtual void apply (ACE_Service_Gestalt *cfg, int &yyerrno)=0
 Will update the yyereno member and/or the corresponding configuration.

const ACE_TCHARname (void) const
void print (void) const
void dump (void) const
 Dump the state of an object.


Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.


Private Member Functions

 ACE_Parse_Node (const ACE_Parse_Node &)
ACE_Parse_Nodeoperator= (const ACE_Parse_Node &)

Private Attributes

const ACE_TCHARname_
ACE_Parse_Nodenext_

Detailed Description

Provide the base of the object hierarchy that defines the parse tree of Service Nodes.

Note:
This class is only meant for INTERNAL use by ACE.

For internal use only.

Definition at line 46 of file Parse_Node.h.


Constructor & Destructor Documentation

ACE_Parse_Node::ACE_Parse_Node void   ) 
 

Definition at line 101 of file Parse_Node.cpp.

References ACE_TRACE.

00102   : name_ (0),
00103     next_ (0)
00104 {
00105   ACE_TRACE ("ACE_Parse_Node::ACE_Parse_Node");
00106 }

ACE_Parse_Node::ACE_Parse_Node const ACE_TCHAR name  )  [explicit]
 

Definition at line 109 of file Parse_Node.cpp.

References ACE_TCHAR, and ACE_TRACE.

00110   : name_ (ACE::strnew (nm)),
00111     next_ (0)
00112 {
00113   ACE_TRACE ("ACE_Parse_Node::ACE_Parse_Node");
00114 }

ACE_Parse_Node::~ACE_Parse_Node void   )  [virtual]
 

Definition at line 130 of file Parse_Node.cpp.

References ACE_TRACE.

00131 {
00132   ACE_TRACE ("ACE_Parse_Node::~ACE_Parse_Node");
00133   delete[] const_cast<ACE_TCHAR*> (this->name_);
00134   delete this->next_;
00135 }

ACE_Parse_Node::ACE_Parse_Node const ACE_Parse_Node  )  [private]
 


Member Function Documentation

virtual void ACE_Parse_Node::apply ACE_Service_Gestalt cfg,
int &  yyerrno
[pure virtual]
 

Will update the yyereno member and/or the corresponding configuration.

Implemented in ACE_Suspend_Node, ACE_Resume_Node, ACE_Remove_Node, ACE_Static_Node, ACE_Dynamic_Node, ACE_Stream_Node, and ACE_Dummy_Node.

void ACE_Parse_Node::dump void   )  const
 

Dump the state of an object.

Reimplemented in ACE_Suspend_Node, ACE_Resume_Node, ACE_Remove_Node, ACE_Static_Node, ACE_Dynamic_Node, ACE_Stream_Node, and ACE_Dummy_Node.

Definition at line 54 of file Parse_Node.cpp.

References ACE_TRACE.

00055 {
00056 #if defined (ACE_HAS_DUMP)
00057   ACE_TRACE ("ACE_Parse_Node::dump");
00058 #endif /* ACE_HAS_DUMP */
00059 }

void ACE_Parse_Node::link ACE_Parse_Node  ) 
 

Definition at line 76 of file Parse_Node.cpp.

References ACE_TRACE.

00077 {
00078   ACE_TRACE ("ACE_Parse_Node::link");
00079   this->next_ = n;
00080 }

ACE_Parse_Node * ACE_Parse_Node::link void   )  const
 

Definition at line 69 of file Parse_Node.cpp.

References ACE_TRACE.

00070 {
00071   ACE_TRACE ("ACE_Parse_Node::link");
00072   return this->next_;
00073 }

const ACE_TCHAR * ACE_Parse_Node::name void   )  const
 

Definition at line 62 of file Parse_Node.cpp.

References ACE_TRACE.

Referenced by ace_yyparse().

00063 {
00064   ACE_TRACE ("ACE_Parse_Node::name");
00065   return this->name_;
00066 }

ACE_Parse_Node& ACE_Parse_Node::operator= const ACE_Parse_Node  )  [private]
 

void ACE_Parse_Node::print void   )  const
 

Definition at line 117 of file Parse_Node.cpp.

References ACE_DEBUG, ACE_LIB_TEXT, ACE_TRACE, and LM_DEBUG.

00118 {
00119   ACE_TRACE ("ACE_Parse_Node::print");
00120 
00121   ACE_DEBUG ((LM_DEBUG,
00122               ACE_LIB_TEXT ("svc = %s\n"),
00123               this->name ()));
00124 
00125   if (this->next_)
00126     this->next_->print ();
00127 }


Member Data Documentation

ACE_Parse_Node::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Reimplemented in ACE_Suspend_Node, ACE_Resume_Node, ACE_Remove_Node, ACE_Static_Node, ACE_Dynamic_Node, ACE_Stream_Node, and ACE_Dummy_Node.

Definition at line 66 of file Parse_Node.h.

const ACE_TCHAR* ACE_Parse_Node::name_ [private]
 

Definition at line 69 of file Parse_Node.h.

ACE_Parse_Node* ACE_Parse_Node::next_ [private]
 

Definition at line 70 of file Parse_Node.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:26:20 2006 for ACE by doxygen 1.3.6