Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

VestaConfig.C File Reference

#include <Basics.H>
#include <Generics.H>
#include "VestaConfig.H"
#include <OS.H>
#include <sstream>

Go to the source code of this file.

Defines

#define VESTA_CONFIG   "VESTACONFIG"
#define DEFAULT_CONFIG_FILE_NAME   "vesta.cfg"
#define DEFAULT_GLOBAL_CONFIG_FILE_NAME   "/etc/vesta.cfg"
#define HOME_DIRECTORY   "HOME"
#define MAX_INCLUDE_DEPTH   10

Typedefs

typedef Table< Text, TextSeq
* >::Default 
SectionVarsTbl
typedef Table< Text, TextSeq
* >::Iterator 
SectionVarsIter

Functions

void VestaConfig::set_location (const Text &file_name)
Text VestaConfig::get_location () throw (VestaConfig::failure)
bool VestaConfig::get (const Text &section, const Text &name, Text &value) throw (VestaConfig::failure)
Text VestaConfig::get_Text (const Text &section, const Text &name) throw (VestaConfig::failure)
int VestaConfig::get_int (const Text &section, const Text &name) throw (VestaConfig::failure)
bool VestaConfig::get_bool (const Text &section, const Text &name) throw (VestaConfig::failure)
bool VestaConfig::is_set (const Text &section, const Text &name) throw (VestaConfig::failure)
float VestaConfig::get_float (const Text &section, const Text &name) throw (VestaConfig::failure)
TextSeq VestaConfig::sections () throw (VestaConfig::failure)
TextSeq VestaConfig::section_vars (const Text &section) throw (VestaConfig::failure)


Define Documentation

#define DEFAULT_CONFIG_FILE_NAME   "vesta.cfg"
 

Definition at line 35 of file VestaConfig.C.

#define DEFAULT_GLOBAL_CONFIG_FILE_NAME   "/etc/vesta.cfg"
 

Definition at line 36 of file VestaConfig.C.

#define HOME_DIRECTORY   "HOME"
 

Definition at line 37 of file VestaConfig.C.

#define MAX_INCLUDE_DEPTH   10
 

Definition at line 39 of file VestaConfig.C.

#define VESTA_CONFIG   "VESTACONFIG"
 

Definition at line 34 of file VestaConfig.C.


Typedef Documentation

typedef Table<Text,TextSeq *>::Iterator SectionVarsIter
 

Definition at line 53 of file VestaConfig.C.

typedef Table<Text,TextSeq *>::Default SectionVarsTbl
 

Definition at line 52 of file VestaConfig.C.


Function Documentation

bool VestaConfig::get const Text section,
const Text name,
Text value
throw (VestaConfig::failure)
 

Definition at line 291 of file VestaConfig.C.

References Table< K, V >::Default::Get(), Basics::mutex::lock(), and Basics::mutex::unlock().

bool VestaConfig::get_bool const Text section,
const Text name
throw (VestaConfig::failure)
 

Definition at line 330 of file VestaConfig.C.

References Text::cchars(), Text::chars(), and VestaConfig::get_Text().

float VestaConfig::get_float const Text section,
const Text name
throw (VestaConfig::failure)
 

Definition at line 376 of file VestaConfig.C.

References Text::chars(), and VestaConfig::get_Text().

int VestaConfig::get_int const Text section,
const Text name
throw (VestaConfig::failure)
 

Definition at line 318 of file VestaConfig.C.

References Text::chars(), and VestaConfig::get_Text().

Text VestaConfig::get_location  )  throw (VestaConfig::failure)
 

Definition at line 115 of file VestaConfig.C.

References Basics::mutex::lock(), and Basics::mutex::unlock().

Text VestaConfig::get_Text const Text section,
const Text name
throw (VestaConfig::failure)
 

Definition at line 308 of file VestaConfig.C.

References VestaConfig::get().

bool VestaConfig::is_set const Text section,
const Text name
throw (VestaConfig::failure)
 

Definition at line 358 of file VestaConfig.C.

References Table< K, V >::Default::Get(), Basics::mutex::lock(), and Basics::mutex::unlock().

TextSeq VestaConfig::section_vars const Text section  )  throw (VestaConfig::failure)
 

Definition at line 413 of file VestaConfig.C.

References Table< K, V >::Default::Get(), Basics::mutex::lock(), and Basics::mutex::unlock().

TextSeq VestaConfig::sections  )  throw (VestaConfig::failure)
 

Definition at line 388 of file VestaConfig.C.

References Sequence< Elem, elem_ptrfree >::addhi(), Basics::mutex::lock(), Table< K, V >::Iterator::Next(), and Basics::mutex::unlock().

void VestaConfig::set_location const Text file_name  ) 
 

Definition at line 107 of file VestaConfig.C.

References Basics::mutex::lock(), and Basics::mutex::unlock().


Generated on Mon May 8 00:49:02 2006 for Vesta by  doxygen 1.4.2