#include <Parse_Node.h>
Inheritance diagram for ACE_Static_Node:


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_Type * | record (const ACE_Service_Gestalt *g) const |
| ACE_TCHAR * | parameters (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_Node & | operator= (const ACE_Static_Node &) |
Private Attributes | |
| ACE_TCHAR * | parameters_ |
| "Command-line" parameters. | |
For internal use only.
Definition at line 170 of file Parse_Node.h.
|
||||||||||||
|
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 } |
|
|
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 }
|
|
|
|
|
||||||||||||
|
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 }
|
|
|
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 }
|
|
|
|
|
|
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 }
|
|
|
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 }
|
|
|
Declare the dynamic allocation hooks.
Reimplemented from ACE_Parse_Node. Reimplemented in ACE_Dynamic_Node. Definition at line 185 of file Parse_Node.h. |
|
|
"Command-line" parameters.
Definition at line 189 of file Parse_Node.h. Referenced by parameters(), and ~ACE_Static_Node(). |
1.3.6