Public Member Functions | Protected Attributes

ACE_Parsed_Info Class Reference

#include <Svcconf_Handler.h>

List of all members.

Public Member Functions

 ACE_Parsed_Info ()
 ~ACE_Parsed_Info ()
int name (const ACEXML_Char *n)
const ACEXML_Charname (void)
int service_type (int type)
int 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_
int service_type_
int active_
ACEXML_Charpath_
ACEXML_Charinit_func_
ACEXML_Charinit_params_

Detailed Description

Definition at line 21 of file Svcconf_Handler.h.


Constructor & Destructor Documentation

ACE_INLINE ACE_Parsed_Info::ACE_Parsed_Info (  ) 

Definition at line 4 of file Svcconf_Handler.inl.

ACE_INLINE ACE_Parsed_Info::~ACE_Parsed_Info (  ) 

Definition at line 15 of file Svcconf_Handler.inl.

{
  delete[] this->name_;
  delete[] this->path_;
  delete[] this->init_func_;
  delete[] this->init_params_;
}


Member Function Documentation

ACE_INLINE int ACE_Parsed_Info::active ( int  a  ) 

Set/Get active status.

Definition at line 58 of file Svcconf_Handler.inl.

{
  this->active_ = a;
  return 0;
}

ACE_INLINE int ACE_Parsed_Info::active ( void   ) 

Definition at line 65 of file Svcconf_Handler.inl.

{
  return this->active_;
}

ACE_INLINE int ACE_Parsed_Info::init_func ( const ACEXML_Char n  ) 

Set/get initializer init function.

Definition at line 88 of file Svcconf_Handler.inl.

{
  if (this->init_func_ == 0)
    {
      this->init_func_ = ACE::strnew (n);
      return 0;
    }
  return -1;
}

ACE_INLINE const ACEXML_Char * ACE_Parsed_Info::init_func ( void   ) 

Definition at line 99 of file Svcconf_Handler.inl.

{
  return this->init_func_;
}

ACE_INLINE int ACE_Parsed_Info::init_params ( const ACEXML_Char n  ) 

Set/get initializer init parameter.

Definition at line 105 of file Svcconf_Handler.inl.

{
  if (this->init_params_ == 0)
    {
      this->init_params_ = ACE::strnew (n);
      return 0;
    }
  return -1;
}

ACE_INLINE const ACEXML_Char * ACE_Parsed_Info::init_params ( void   ) 

Definition at line 116 of file Svcconf_Handler.inl.

{
  return this->init_params_;
}

ACE_INLINE int ACE_Parsed_Info::name ( const ACEXML_Char n  ) 

Set/get name of a parsed entity.

Definition at line 24 of file Svcconf_Handler.inl.

{
  if (this->name_ == 0)
    {
      this->name_ = ACE::strnew (n);
      return 0;
    }
  return -1;
}

ACE_INLINE const ACEXML_Char * ACE_Parsed_Info::name ( void   ) 

Definition at line 35 of file Svcconf_Handler.inl.

{
  return this->name_;
}

ACE_INLINE const ACEXML_Char * ACE_Parsed_Info::path ( void   ) 

Definition at line 82 of file Svcconf_Handler.inl.

{
  return this->path_;
}

ACE_INLINE int ACE_Parsed_Info::path ( const ACEXML_Char n  ) 

Set/get initializer path.

Definition at line 71 of file Svcconf_Handler.inl.

{
  if (this->path_ == 0)
    {
      this->path_ = ACE::strnew (p);
      return 0;
    }
  return -1;
}

ACE_INLINE void ACE_Parsed_Info::reset ( void   ) 

Reset Parsed_Info.

Definition at line 122 of file Svcconf_Handler.inl.

{
  delete[] this->name_;
  this->name_ = 0;
  this->service_type_ = -1;
  delete[] this->path_;
  this->path_ = 0;
  delete[] this->init_func_;
  this->init_func_ = 0;
  delete[] this->init_params_;
  this->init_params_ = 0;
}

ACE_INLINE int ACE_Parsed_Info::service_type ( void   ) 

Definition at line 52 of file Svcconf_Handler.inl.

{
  return this->service_type_;
}

ACE_INLINE int ACE_Parsed_Info::service_type ( int  type  ) 

Set/get type of a dynamic node.

Definition at line 41 of file Svcconf_Handler.inl.

{
  if (this->service_type_ == -1)
    {
      this->service_type_ = type;
      return 0;
    }
  return -1;
}


Member Data Documentation

int ACE_Parsed_Info::active_ [protected]

Definition at line 71 of file Svcconf_Handler.h.

Definition at line 73 of file Svcconf_Handler.h.

Definition at line 74 of file Svcconf_Handler.h.

Definition at line 69 of file Svcconf_Handler.h.

Definition at line 72 of file Svcconf_Handler.h.

Definition at line 70 of file Svcconf_Handler.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines