pcce::Configuration Class Reference

#include <Configuration.h>

Inheritance diagram for pcce::Configuration:

pcce::PropertyBag

List of all members.

Public Member Functions

tPropertyBagPtr GetConfigSection (const std::string &name) const
bool TryGetConfigSection (const std::string &name, tPropertyBagPtr &result) const
void LoadINIFile (const std::string &filename)
void SaveINIFile (const std::string &filename) const


Detailed Description

Definition at line 41 of file Configuration.h.


Member Function Documentation

tPropertyBagPtr pcce::Configuration::GetConfigSection ( const std::string &  name  )  const

bool Configuration::TryGetConfigSection ( const std::string &  name,
tPropertyBagPtr result 
) const

Definition at line 48 of file Configuration.cpp.

References pcce::Variant::AsPropertyBagPtr(), pcce::PropertyBag::GetValue(), pcce::PropertyBag::HasProperty(), and pcce::Variant::IsPropertyBagPtr().

00048                                                                                             {
00049   bool success = HasProperty(name);
00050   if (success) {
00051     Variant v = GetValue(name);
00052     success = v.IsPropertyBagPtr();
00053     if (success) {
00054       result = v.AsPropertyBagPtr();
00055     }
00056   }
00057   return success;
00058 }

void pcce::Configuration::LoadINIFile ( const std::string &  filename  ) 

void pcce::Configuration::SaveINIFile ( const std::string &  filename  )  const


The documentation for this class was generated from the following files:

Generated on Thu Mar 6 11:39:27 2008 for Protocce by  doxygen 1.5.5