Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

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 Methods

 ACE_Static_Node (const ACE_TCHAR *name, ACE_TCHAR *params=0)
virtual ~ACE_Static_Node (void)
virtual void apply (int &yyerrno)
virtual const ACE_Service_Typerecord (void) const
ACE_TCHARparameters (void) const
void dump (void) const
 Dump the state of an object. More...


Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...


Private Attributes

ACE_TCHARparameters_
 "Command-line" parameters. More...


Detailed Description

Handle a statically linked node.

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

Definition at line 141 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 278 of file Parse_Node.cpp.

References ACE_TCHAR, and ACE_TRACE.

00280   : ACE_Parse_Node (nm),
00281     parameters_ (ACE::strnew (params))
00282 {
00283   ACE_TRACE ("ACE_Static_Node::ACE_Static_Node");
00284 }

ACE_Static_Node::~ACE_Static_Node void    [virtual]
 

Definition at line 322 of file Parse_Node.cpp.

References ACE_TRACE, and parameters_.

00323 {
00324   ACE_TRACE ("ACE_Static_Node::~ACE_Static_Node");
00325   delete[] this->parameters_;
00326 }


Member Function Documentation

void ACE_Static_Node::apply int &    yyerrno [virtual]
 

Implements ACE_Parse_Node.

Reimplemented in ACE_Dynamic_Node.

Definition at line 308 of file Parse_Node.cpp.

References ACE_DEBUG, ACE_LIB_TEXT, ACE_TRACE, ACE::debug, ACE_Service_Config::initialize, LM_DEBUG, and parameters.

00309 {
00310   ACE_TRACE ("ACE_Static_Node::apply");
00311   if (ACE_Service_Config::initialize (this->name (),
00312                                       this->parameters ()) == -1)
00313     yyerrno++;
00314 
00315   if (ACE::debug ())
00316     ACE_DEBUG ((LM_DEBUG,
00317                 ACE_LIB_TEXT ("did static on %s, error = %d\n"),
00318                 this->name (),
00319                 yyerrno));
00320 }

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 273 of file Parse_Node.cpp.

References ACE_TRACE.

00274 {
00275   ACE_TRACE ("ACE_Static_Node::dump");
00276 }

ACE_TCHAR * ACE_Static_Node::parameters void    const
 

Definition at line 301 of file Parse_Node.cpp.

References ACE_TRACE, and parameters_.

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

00302 {
00303   ACE_TRACE ("ACE_Static_Node::parameters");
00304   return this->parameters_;
00305 }

const ACE_Service_Type * ACE_Static_Node::record void    const [virtual]
 

Reimplemented in ACE_Dynamic_Node.

Definition at line 287 of file Parse_Node.cpp.

References ACE_TRACE, ACE_Service_Repository::find, ACE_Service_Repository::instance, and ACE_Parse_Node::name.

Referenced by ace_get_module, and ace_yyparse.

00288 {
00289   ACE_TRACE ("ACE_Static_Node::record");
00290   ACE_Service_Type *sr;
00291 
00292   if (ACE_Service_Repository::instance()->find
00293       (this->name (),
00294        (const ACE_Service_Type **) &sr) == -1)
00295     return 0;
00296   else
00297     return sr;
00298 }


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 155 of file Parse_Node.h.

ACE_TCHAR* ACE_Static_Node::parameters_ [private]
 

"Command-line" parameters.

Definition at line 159 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 Mon Jun 16 12:56:36 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002