#include <Configuration.h>

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 |
Definition at line 41 of file Configuration.h.
| 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 |
1.5.5