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

PROFILE Class Reference

#include <profiles.h>

Inheritance diagram for PROFILE:

ARRAY_OBJ List of all members.

Public Methods

 PROFILE (void)
void init (void)
void reset (void)
int setfile (const char *path)
 ~PROFILE (void)

Public Attributes

SSTRING id
CONFDB* data
CONFIG_FILE* file

Constructor & Destructor Documentation

PUBLIC PROFILE::PROFILE ( void )
 

Definition at line 65 of file profiles.cc.

00066 {
00067     this->init();
00068 }

PUBLIC PROFILE::~PROFILE ( void )
 

Definition at line 70 of file profiles.cc.

00071 {
00072     this->reset();
00073 }


Member Function Documentation

PUBLIC void PROFILE::init ( void )
 

Definition at line 78 of file profiles.cc.

Referenced by PROFILE(), and reset().

00078                          {
00079     D(debugf(6,"PROFILE::init \n"));
00080     this->data = NULL;
00081     this->file = NULL;
00082 }

PUBLIC void PROFILE::reset ( void )
 

Definition at line 87 of file profiles.cc.

Referenced by PROFILES::reset(), setfile(), and ~PROFILE().

00087                           {
00088     D(debugf(6,"PROFILE::reset \n"));
00089     if (this->file) {
00090         delete(file);
00091     }
00092 /*
00093   if (this->data) {
00094   delete(data);
00095   }
00096 */
00097     this->init();
00098 }

PUBLIC int PROFILE::setfile ( const char * path )
 

Definition at line 106 of file profiles.cc.

Referenced by PROFILES::setpath().

00107 {
00108     D(debugf(6,"PROFILE::setfile path=%s \n",path));    
00109     int ret = 0;
00110     this->reset();
00111     file = new CONFIG_FILE (path,
00112                             help_profiles
00113                             ,CONFIGF_MANAGED|CONFIGF_OPTIONAL
00114                             ,"root","root",0600
00115                             ,subsys_profiles);  
00116     data = new CONFDB(*file);
00117     return ret;
00118 }


Member Data Documentation

SSTRING PROFILE::id
 

Definition at line 11 of file profiles.h.

CONFDB * PROFILE::data
 

Definition at line 12 of file profiles.h.

CONFIG_FILE * PROFILE::file
 

Definition at line 13 of file profiles.h.


The documentation for this class was generated from the following files:
Generated at Mon Jan 22 08:35:18 2001 for ldapconf by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000