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

ACE_Parsed_Info Class Reference

#include <Svcconf_Handler.h>

List of all members.

Public Types

enum  Service_Type { MODULE_TYPE, SERVICE_OBJECT_TYPE, STREAM_TYPE, INVALID_TYPE }

Public Methods

 ACE_Parsed_Info ()
 ~ACE_Parsed_Info ()
int name (const ACEXML_Char *n)
const ACEXML_Charname (void)
int service_type (Service_Type type)
Service_Type service_type (void)
int active (int a)
int active (void)
int path (const ACEXML_Char *n)
const ACEXML_Charpath (void)
int init_func (const ACEXML_Char *n)
const ACEXML_Charinit_func (void)
int init_params (const ACEXML_Char *n)
const ACEXML_Charinit_params (void)
void reset (void)

Protected Attributes

ACEXML_Charname_
Service_Type service_type_
int active_
ACEXML_Charpath_
ACEXML_Charinit_func_
ACEXML_Charinit_params_


Member Enumeration Documentation

enum ACE_Parsed_Info::Service_Type
 

Enumeration values:
MODULE_TYPE 
SERVICE_OBJECT_TYPE 
STREAM_TYPE 
INVALID_TYPE 

Definition at line 21 of file examples/svcconf/Svcconf_Handler.h.

00021                {
00022     MODULE_TYPE,
00023     SERVICE_OBJECT_TYPE,
00024     STREAM_TYPE,
00025     INVALID_TYPE
00026   } Service_Type;


Constructor & Destructor Documentation

ACE_INLINE ACE_Parsed_Info::ACE_Parsed_Info  
 

Definition at line 4 of file apps/svcconf/Svcconf_Handler.i.

00005   : name_ (0),
00006     service_type_ (ACE_Service_Type::INVALID_TYPE),
00007     active_ (1),
00008     path_ (0),
00009     init_func_ (0),
00010     init_params_ (0)
00011 {
00012 }

ACE_INLINE ACE_Parsed_Info::~ACE_Parsed_Info  
 

Definition at line 15 of file apps/svcconf/Svcconf_Handler.i.

References init_func_, init_params_, name_, and path_.

00016 {
00017   delete[] this->name_;
00018   delete[] this->path_;
00019   delete[] this->init_func_;
00020   delete[] this->init_params_;
00021 }


Member Function Documentation

ACE_INLINE int ACE_Parsed_Info::active void   
 

Definition at line 65 of file apps/svcconf/Svcconf_Handler.i.

References active_.

00066 {
00067   return this->active_;
00068 }

ACE_INLINE int ACE_Parsed_Info::active int    a
 

Set/Get active status.

Definition at line 58 of file apps/svcconf/Svcconf_Handler.i.

References active_.

00059 {
00060   this->active_ = a;
00061   return 0;
00062 }

ACE_INLINE const ACEXML_Char * ACE_Parsed_Info::init_func void   
 

Definition at line 99 of file apps/svcconf/Svcconf_Handler.i.

References init_func_.

00100 {
00101   return this->init_func_;
00102 }

ACE_INLINE int ACE_Parsed_Info::init_func const ACEXML_Char   n
 

Set/get initializer init function.

Definition at line 88 of file apps/svcconf/Svcconf_Handler.i.

References ACEXML_Char, init_func_, and ACE::strnew.

Referenced by ACEXML_Svcconf_Handler::get_initializer_attrs.

00089 {
00090   if (this->init_func_ == 0)
00091     {
00092       this->init_func_ = ACE::strnew (n);
00093       return 0;
00094     }
00095   return -1;
00096 }

ACE_INLINE const ACEXML_Char * ACE_Parsed_Info::init_params void   
 

Definition at line 116 of file apps/svcconf/Svcconf_Handler.i.

References init_params_.

00117 {
00118   return this->init_params_;
00119 }

ACE_INLINE int ACE_Parsed_Info::init_params const ACEXML_Char   n
 

Set/get initializer init parameter.

Definition at line 105 of file apps/svcconf/Svcconf_Handler.i.

References ACEXML_Char, init_params_, and ACE::strnew.

Referenced by ACEXML_Svcconf_Handler::get_initializer_attrs, and ACEXML_Svcconf_Handler::get_static_attrs.

00106 {
00107   if (this->init_params_ == 0)
00108     {
00109       this->init_params_ = ACE::strnew (n);
00110       return 0;
00111     }
00112   return -1;
00113 }

ACE_INLINE const ACEXML_Char * ACE_Parsed_Info::name void   
 

Definition at line 35 of file apps/svcconf/Svcconf_Handler.i.

References name_.

00036 {
00037   return this->name_;
00038 }

ACE_INLINE int ACE_Parsed_Info::name const ACEXML_Char   n
 

Set/get name of a parsed entity.

Definition at line 24 of file apps/svcconf/Svcconf_Handler.i.

References ACEXML_Char, name_, and ACE::strnew.

Referenced by ACEXML_Svcconf_Handler::get_dynamic_attrs, ACEXML_Svcconf_Handler::get_id, ACEXML_Svcconf_Handler::get_static_attrs, and ACEXML_Svcconf_Handler::get_stream_id.

00025 {
00026   if (this->name_ == 0)
00027     {
00028       this->name_ = ACE::strnew (n);
00029       return 0;
00030     }
00031   return -1;
00032 }

ACE_INLINE const ACEXML_Char * ACE_Parsed_Info::path void   
 

Definition at line 82 of file apps/svcconf/Svcconf_Handler.i.

References path_.

00083 {
00084   return this->path_;
00085 }

ACE_INLINE int ACE_Parsed_Info::path const ACEXML_Char   n
 

Set/get initializer path.

Definition at line 71 of file apps/svcconf/Svcconf_Handler.i.

References ACEXML_Char, path_, and ACE::strnew.

Referenced by ACEXML_Svcconf_Handler::get_initializer_attrs.

00072 {
00073   if (this->path_ == 0)
00074     {
00075       this->path_ = ACE::strnew (p);
00076       return 0;
00077     }
00078   return -1;
00079 }

ACE_INLINE void ACE_Parsed_Info::reset void   
 

Reset Parsed_Info.

Definition at line 122 of file apps/svcconf/Svcconf_Handler.i.

References init_func_, init_params_, name_, path_, and service_type_.

00123 {
00124   delete[] this->name_;
00125   this->name_ = 0;
00126   this->service_type_ = -1;
00127   delete[] this->path_;
00128   this->path_ = 0;
00129   delete[] this->init_func_;
00130   this->init_func_ = 0;
00131   delete[] this->init_params_;
00132   this->init_params_ = 0;
00133 }

ACE_INLINE ACE_Parsed_Info::Service_Type ACE_Parsed_Info::service_type void   
 

Definition at line 52 of file apps/svcconf/Svcconf_Handler.i.

References service_type_.

00053 {
00054   return this->service_type_;
00055 }

ACE_INLINE int ACE_Parsed_Info::service_type Service_Type    type
 

Set/get type of a dynamic node.

Definition at line 41 of file examples/svcconf/Svcconf_Handler.i.

References INVALID_TYPE, and service_type_.

Referenced by ACEXML_Svcconf_Handler::get_dynamic_attrs.

00042 {
00043   if (this->service_type_ == INVALID_TYPE)
00044     {
00045       this->service_type_ = type;
00046       return 0;
00047     }
00048   return -1;
00049 }


Member Data Documentation

int ACE_Parsed_Info::active_ [protected]
 

Definition at line 75 of file examples/svcconf/Svcconf_Handler.h.

Referenced by active.

ACEXML_Char* ACE_Parsed_Info::init_func_ [protected]
 

Definition at line 77 of file examples/svcconf/Svcconf_Handler.h.

Referenced by init_func, reset, and ~ACE_Parsed_Info.

ACEXML_Char* ACE_Parsed_Info::init_params_ [protected]
 

Definition at line 78 of file examples/svcconf/Svcconf_Handler.h.

Referenced by init_params, reset, and ~ACE_Parsed_Info.

ACEXML_Char* ACE_Parsed_Info::name_ [protected]
 

Definition at line 73 of file examples/svcconf/Svcconf_Handler.h.

Referenced by name, reset, and ~ACE_Parsed_Info.

ACEXML_Char* ACE_Parsed_Info::path_ [protected]
 

Definition at line 76 of file examples/svcconf/Svcconf_Handler.h.

Referenced by path, reset, and ~ACE_Parsed_Info.

Service_Type ACE_Parsed_Info::service_type_ [protected]
 

Definition at line 74 of file examples/svcconf/Svcconf_Handler.h.

Referenced by reset, and service_type.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 13:26:29 2003 for ACEXML by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002