omegalib  13.1
omicron::Config Class Reference

#include <Config.h>

Public Member Functions

 Config (const String &filename)
 
virtual ~Config ()
 
const StringgetFilename ()
 
bool load ()
 
bool isLoaded ()
 
SettinggetRootSetting ()
 
bool exists (const String &path)
 
Settinglookup (const String &path)
 
bool getBoolValue (const String &name, bool defaultValue=false)
 
void append (Config *cfg, bool overwrite=true)
 Appends another configuration to this one. More...
 
- Public Member Functions inherited from omicron::ReferenceType
 ReferenceType ()
 
virtual ~ReferenceType ()
 
void ref ()
 
void unref ()
 
long refCount ()
 

Static Public Member Functions

static String getTypeName (Setting::Type type)
 
static bool getBoolValue (const String &name, const Setting &s, bool defaultValue=false)
 
static float getFloatValue (const String &name, const Setting &s, float defaultValue=0.0f)
 
static float getFloatValue (int index, const Setting &s, float defaultValue=0.0f)
 
static int getIntValue (const String &name, const Setting &s, int defaultValue=0)
 
static int getIntValue (int index, const Setting &s, int defaultValue=0)
 
static Vector4f getVector4fValue (const String &name, const Setting &s, const Vector4f &defaultValue=Vector4f::Zero())
 
static Vector3f getVector3fValue (const String &name, const Setting &s, const Vector3f &defaultValue=Vector3f::Zero())
 
static Vector2f getVector2fValue (const String &name, const Setting &s, const Vector2f &defaultValue=Vector2f::Zero())
 
static Vector2i getVector2iValue (const String &name, const Setting &s, const Vector2i &defaultValue=Vector2i::Zero())
 
static String getStringValue (const String &name, const Setting &s, const String &defaultValue="")
 
- Static Public Member Functions inherited from omicron::ReferenceType
static void printObjCounts ()
 

Additional Inherited Members

- Static Protected Attributes inherited from omicron::ReferenceType
static List< ReferenceType * > mysObjList
 
+ Inheritance diagram for omicron::Config:

Constructor & Destructor Documentation

omicron::Config::Config ( const String filename)
virtual omicron::Config::~Config ( )
virtual

Member Function Documentation

void omicron::Config::append ( Config cfg,
bool  overwrite = true 
)

Appends another configuration to this one.

bool omicron::Config::exists ( const String path)
static bool omicron::Config::getBoolValue ( const String name,
const Setting s,
bool  defaultValue = false 
)
static
bool omicron::Config::getBoolValue ( const String name,
bool  defaultValue = false 
)
const String& omicron::Config::getFilename ( )
inline
static float omicron::Config::getFloatValue ( const String name,
const Setting s,
float  defaultValue = 0.0f 
)
static
static float omicron::Config::getFloatValue ( int  index,
const Setting s,
float  defaultValue = 0.0f 
)
static
static int omicron::Config::getIntValue ( const String name,
const Setting s,
int  defaultValue = 0 
)
static
static int omicron::Config::getIntValue ( int  index,
const Setting s,
int  defaultValue = 0 
)
static
Setting& omicron::Config::getRootSetting ( )
static String omicron::Config::getStringValue ( const String name,
const Setting s,
const String defaultValue = "" 
)
static
static String omicron::Config::getTypeName ( Setting::Type  type)
static
static Vector2f omicron::Config::getVector2fValue ( const String name,
const Setting s,
const Vector2f defaultValue = Vector2f::Zero() 
)
static
static Vector2i omicron::Config::getVector2iValue ( const String name,
const Setting s,
const Vector2i defaultValue = Vector2i::Zero() 
)
static
static Vector3f omicron::Config::getVector3fValue ( const String name,
const Setting s,
const Vector3f defaultValue = Vector3f::Zero() 
)
static
static Vector4f omicron::Config::getVector4fValue ( const String name,
const Setting s,
const Vector4f defaultValue = Vector4f::Zero() 
)
static
bool omicron::Config::isLoaded ( )
inline
bool omicron::Config::load ( )
Setting& omicron::Config::lookup ( const String path)

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