ACE_Static_Node Class Reference

Handle a statically linked node. More...

#include <Parse_Node.h>

Inheritance diagram for ACE_Static_Node:

Inheritance graph
[legend]
Collaboration diagram for ACE_Static_Node:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual const ACE_Service_Typerecord (const ACE_Service_Gestalt *g) const
ACE_TCHARparameters (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_Static_Node (const ACE_Static_Node &)
ACE_Static_Nodeoperator= (const ACE_Static_Node &)

Private Attributes

ACE_TCHARparameters_
 "Command-line" parameters.


Detailed Description

Handle a statically linked node.

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

For internal use only.

Definition at line 170 of file Parse_Node.h.


Constructor & Destructor Documentation

ACE_Static_Node::ACE_Static_Node const ACE_TCHAR name,
ACE_TCHAR params = 0
 

Definition at line 302 of file Parse_Node.cpp.

References ACE_TCHAR, and ACE_TRACE.

00304   : ACE_Parse_Node (nm),
00305     parameters_ (ACE::strnew (params))
00306 {
00307   ACE_TRACE ("ACE_Static_Node::ACE_Static_Node");
00308 }

ACE_Static_Node::~ACE_Static_Node void   )  [virtual]
 

Definition at line 346 of file Parse_Node.cpp.

References ACE_TRACE, and parameters_.

00347 {
00348   ACE_TRACE ("ACE_Static_Node::~ACE_Static_Node");
00349   delete[] this->parameters_;
00350 }

ACE_Static_Node::ACE_Static_Node const ACE_Static_Node  )  [private]
 


Member Function Documentation

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

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

Implements ACE_Parse_Node.

Reimplemented in ACE_Dynamic_Node.

Definition at line 330 of file Parse_Node.cpp.

References ACE_DEBUG, ACE_LIB_TEXT, ACE_TRACE, ACE::debug(), ACE_Service_Gestalt::initialize(), LM_DEBUG, and parameters().

00331 {
00332   ACE_TRACE ("ACE_Static_Node::apply");
00333   if (config->initialize (this->name (),
00334         this->parameters ()) == -1)
00335     ++yyerrno;
00336 
00337 #ifndef ACE_NLOGGING
00338   if (ACE::debug ())
00339     ACE_DEBUG ((LM_DEBUG,
00340                 ACE_LIB_TEXT ("did static on %s, error = %d\n"),
00341                 this->name (),
00342                 yyerrno));
00343 #endif /* ACE_NLOGGING */
00344 }

void ACE_Static_Node::dump void   )  const
 

Dump the state of an object.

Reimplemented from ACE_Parse_Node.

Reimplemented in ACE_Dynamic_Node.

Definition at line 295 of file Parse_Node.cpp.

References ACE_TRACE.

00296 {
00297 #if defined (ACE_HAS_DUMP)
00298   ACE_TRACE ("ACE_Static_Node::dump");
00299 #endif /* ACE_HAS_DUMP */
00300 }

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

ACE_TCHAR * ACE_Static_Node::parameters void   )  const
 

Definition at line 323 of file Parse_Node.cpp.

References ACE_TRACE, and parameters_.

Referenced by ace_yyparse(), apply(), ACE_Dynamic_Node::apply(), and ACE_Stream_Node::apply().

00324 {
00325   ACE_TRACE ("ACE_Static_Node::parameters");
00326   return this->parameters_;
00327 }

const ACE_Service_Type * ACE_Static_Node::record const ACE_Service_Gestalt g  )  const [virtual]
 

Definition at line 311 of file Parse_Node.cpp.

References ACE_TRACE, and ACE_Service_Gestalt::find().

Referenced by ace_yyparse().

00312 {
00313   ACE_TRACE ("ACE_Static_Node::record");
00314   ACE_Service_Type *sr = 0;
00315 
00316   if (config->find (this->name (), (const ACE_Service_Type **) &sr) == -1)
00317     return 0;
00318 
00319   return sr;
00320 }


Member Data Documentation

ACE_Static_Node::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Reimplemented from ACE_Parse_Node.

Reimplemented in ACE_Dynamic_Node.

Definition at line 185 of file Parse_Node.h.

ACE_TCHAR* ACE_Static_Node::parameters_ [private]
 

"Command-line" parameters.

Definition at line 189 of file Parse_Node.h.

Referenced by parameters(), and ~ACE_Static_Node().


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