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

Svcconf_Handler.i

Go to the documentation of this file.
00001 // -*- C++ -*-  $Id: Svcconf_Handler.i,v 1.1.1.1 2003/02/21 18:36:32 chad Exp $
00002 
00003 ACE_INLINE
00004 ACE_Parsed_Info::ACE_Parsed_Info ()
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 }
00013 
00014 ACE_INLINE
00015 ACE_Parsed_Info::~ACE_Parsed_Info ()
00016 {
00017   delete[] this->name_;
00018   delete[] this->path_;
00019   delete[] this->init_func_;
00020   delete[] this->init_params_;
00021 }
00022 
00023 ACE_INLINE int
00024 ACE_Parsed_Info::name (const ACEXML_Char *n)
00025 {
00026   if (this->name_ == 0)
00027     {
00028       this->name_ = ACE::strnew (n);
00029       return 0;
00030     }
00031   return -1;
00032 }
00033 
00034 ACE_INLINE const ACEXML_Char *
00035 ACE_Parsed_Info::name (void)
00036 {
00037   return this->name_;
00038 }
00039 
00040 ACE_INLINE int
00041 ACE_Parsed_Info::service_type (int type)
00042 {
00043   if (this->service_type_ == -1)
00044     {
00045       this->service_type_ = type;
00046       return 0;
00047     }
00048   return -1;
00049 }
00050 
00051 ACE_INLINE int
00052 ACE_Parsed_Info::service_type (void)
00053 {
00054   return this->service_type_;
00055 }
00056 
00057 ACE_INLINE int
00058 ACE_Parsed_Info::active (int a)
00059 {
00060   this->active_ = a;
00061   return 0;
00062 }
00063 
00064 ACE_INLINE int
00065 ACE_Parsed_Info::active (void)
00066 {
00067   return this->active_;
00068 }
00069 
00070 ACE_INLINE int
00071 ACE_Parsed_Info::path (const ACEXML_Char *p)
00072 {
00073   if (this->path_ == 0)
00074     {
00075       this->path_ = ACE::strnew (p);
00076       return 0;
00077     }
00078   return -1;
00079 }
00080 
00081 ACE_INLINE const ACEXML_Char *
00082 ACE_Parsed_Info::path (void)
00083 {
00084   return this->path_;
00085 }
00086 
00087 ACE_INLINE int
00088 ACE_Parsed_Info::init_func (const ACEXML_Char *n)
00089 {
00090   if (this->init_func_ == 0)
00091     {
00092       this->init_func_ = ACE::strnew (n);
00093       return 0;
00094     }
00095   return -1;
00096 }
00097 
00098 ACE_INLINE const ACEXML_Char *
00099 ACE_Parsed_Info::init_func (void)
00100 {
00101   return this->init_func_;
00102 }
00103 
00104 ACE_INLINE int
00105 ACE_Parsed_Info::init_params (const ACEXML_Char *n)
00106 {
00107   if (this->init_params_ == 0)
00108     {
00109       this->init_params_ = ACE::strnew (n);
00110       return 0;
00111     }
00112   return -1;
00113 }
00114 
00115 ACE_INLINE const ACEXML_Char *
00116 ACE_Parsed_Info::init_params (void)
00117 {
00118   return this->init_params_;
00119 }
00120 
00121 ACE_INLINE void
00122 ACE_Parsed_Info::reset (void)
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 }

Generated on Mon Jun 16 13:23:27 2003 for ACEXML by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002