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

ACE_Stream_Node Class Reference

Handle a Stream. More...

#include <Parse_Node.h>

Inheritance diagram for ACE_Stream_Node:

Inheritance graph
[legend]
Collaboration diagram for ACE_Stream_Node:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Stream_Node (const ACE_Static_Node *, const ACE_Parse_Node *)
virtual ~ACE_Stream_Node (void)
virtual void apply (int &yyerrno)
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

const ACE_Static_Nodenode_
 Linked list of modules that are part of the stream. More...

const ACE_Parse_Nodemods_

Detailed Description

Handle a Stream.

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

Definition at line 196 of file Parse_Node.h.


Constructor & Destructor Documentation

ACE_Stream_Node::ACE_Stream_Node const ACE_Static_Node  ,
const ACE_Parse_Node  
 

Definition at line 77 of file Parse_Node.cpp.

References ACE_LIB_TEXT, ACE_TCHAR, and ACE_TRACE.

00080   : ACE_Parse_Node (str_ops == 0 ? ACE_static_cast (ACE_TCHAR *,
00081                                                     ACE_LIB_TEXT ("<unknown>"))
00082                                  : ACE_static_cast (ACE_TCHAR *,
00083                                                     str_ops->name ())),
00084 #else
00085   : ACE_Parse_Node ((str_ops == 0 ? ACE_LIB_TEXT ("<unknown>") : str_ops->name ())),
00086 #endif /* defined (ACE_HAS_BROKEN_CONDITIONAL_STRING_CASTS) */
00087     node_ (str_ops),
00088     mods_ (str_mods)
00089 {
00090   ACE_TRACE ("ACE_Stream_Node::ACE_Stream_Node");
00091 }

ACE_Stream_Node::~ACE_Stream_Node void    [virtual]
 

Definition at line 94 of file Parse_Node.cpp.

References ACE_TRACE.

00095 {
00096   ACE_TRACE ("ACE_Stream_Node::~ACE_Stream_Node");
00097   ACE_Static_Node *n = ACE_const_cast (ACE_Static_Node *,
00098                                        this->node_);
00099   delete n;
00100   ACE_Parse_Node *m = ACE_const_cast (ACE_Parse_Node *,
00101                                       this->mods_);
00102   delete m;
00103 }


Member Function Documentation

void ACE_Stream_Node::apply int &    yyerrno [virtual]
 

Implements ACE_Parse_Node.

Definition at line 33 of file Parse_Node.cpp.

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

00034 {
00035   ACE_TRACE ("ACE_Stream_Node::apply");
00036 
00037   if (ACE_Service_Config::initialize (this->node_->record (),
00038                                       this->node_->parameters ()) == -1)
00039     yyerrno++;
00040 
00041   if (ACE::debug ())
00042     ACE_DEBUG ((LM_DEBUG,
00043                 ACE_LIB_TEXT ("did stream on %s, error = %d\n"),
00044                 this->node_->name (),
00045                 yyerrno));
00046 }

void ACE_Stream_Node::dump void    const
 

Dump the state of an object.

Reimplemented from ACE_Parse_Node.

Definition at line 27 of file Parse_Node.cpp.

References ACE_TRACE.

00028 {
00029   ACE_TRACE ("ACE_Stream_Node::dump");
00030 }


Member Data Documentation

ACE_Stream_Node::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Reimplemented from ACE_Parse_Node.

Definition at line 208 of file Parse_Node.h.

const ACE_Parse_Node* ACE_Stream_Node::mods_ [private]
 

Definition at line 213 of file Parse_Node.h.

const ACE_Static_Node* ACE_Stream_Node::node_ [private]
 

Linked list of modules that are part of the stream.

Definition at line 212 of file Parse_Node.h.

Referenced by apply.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:56:54 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002