Logo Search packages:      
Sourcecode: libconfig version File versions  Download package

Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends

libconfig::Setting Class Reference

Collaboration diagram for libconfig::Setting:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Format { FormatDefault = 0, FormatHex = 1 }
enum  Type {
  TypeNone = 0, TypeInt, TypeInt64, TypeFloat,
  TypeString, TypeBoolean, TypeGroup, TypeArray,
  TypeList
}

Public Member Functions

Settingadd (const std::string &name, Type type) throw (SettingNameException, SettingTypeException)
Settingadd (const char *name, Type type) throw (SettingNameException, SettingTypeException)
Settingadd (Type type) throw (SettingTypeException)
bool exists (const std::string &name) const throw ()
bool exists (const char *name) const throw ()
Format getFormat () const throw ()
int getIndex () const throw ()
int getLength () const throw ()
const char * getName () const throw ()
const SettinggetParent () const throw (SettingNotFoundException)
SettinggetParent () throw (SettingNotFoundException)
std::string getPath () const
unsigned int getSourceLine () const throw ()
Type getType () const throw ()
bool isAggregate () const throw ()
bool isArray () const throw ()
bool isGroup () const throw ()
bool isList () const throw ()
bool isNumber () const throw ()
bool isRoot () const throw ()
bool isScalar () const throw ()
bool lookupValue (const char *name, double &value) const throw ()
bool lookupValue (const char *name, long long &value) const throw ()
bool lookupValue (const char *name, const char *&value) const throw ()
bool lookupValue (const std::string &name, const char *&value) const throw ()
bool lookupValue (const char *name, std::string &value) const throw ()
bool lookupValue (const std::string &name, bool &value) const throw ()
bool lookupValue (const std::string &name, long &value) const throw ()
bool lookupValue (const std::string &name, unsigned long &value) const throw ()
bool lookupValue (const std::string &name, int &value) const throw ()
bool lookupValue (const std::string &name, unsigned int &value) const throw ()
bool lookupValue (const std::string &name, long long &value) const throw ()
bool lookupValue (const std::string &name, unsigned long long &value) const throw ()
bool lookupValue (const std::string &name, double &value) const throw ()
bool lookupValue (const std::string &name, float &value) const throw ()
bool lookupValue (const std::string &name, std::string &value) const throw ()
bool lookupValue (const char *name, unsigned long long &value) const throw ()
bool lookupValue (const char *name, bool &value) const throw ()
bool lookupValue (const char *name, float &value) const throw ()
bool lookupValue (const char *name, long &value) const throw ()
bool lookupValue (const char *name, unsigned long &value) const throw ()
bool lookupValue (const char *name, int &value) const throw ()
bool lookupValue (const char *name, unsigned int &value) const throw ()
 operator bool () const throw (SettingTypeException)
 operator const char * () const throw (SettingTypeException)
 operator double () const throw (SettingTypeException)
 operator float () const throw (SettingTypeException)
 operator int () const throw (SettingTypeException)
 operator long () const throw (SettingTypeException)
 operator long long () const throw (SettingTypeException)
 operator std::string () const throw (SettingTypeException)
 operator unsigned int () const throw (SettingTypeException)
 operator unsigned long () const throw (SettingTypeException)
 operator unsigned long long () const throw (SettingTypeException)
Settingoperator= (const long long &value) throw (SettingTypeException)
Settingoperator= (const std::string &value) throw (SettingTypeException)
Settingoperator= (float value) throw (SettingTypeException)
Settingoperator= (const char *value) throw (SettingTypeException)
Settingoperator= (const double &value) throw (SettingTypeException)
Settingoperator= (long value) throw (SettingTypeException)
Settingoperator= (bool value) throw (SettingTypeException)
Settingoperator= (int value) throw (SettingTypeException)
Settingoperator[] (int index) const throw (SettingTypeException, SettingNotFoundException)
Settingoperator[] (const std::string &key) const throw (SettingTypeException, SettingNotFoundException)
Settingoperator[] (const char *key) const throw (SettingTypeException, SettingNotFoundException)
void remove (const char *name) throw (SettingTypeException, SettingNotFoundException)
void remove (const std::string &name) throw (SettingTypeException, SettingNotFoundException)
void remove (unsigned int idx) throw (SettingTypeException, SettingNotFoundException)
void setFormat (Format format) throw ()

Private Member Functions

void assertType (Type type) const throw (SettingTypeException)
Settingoperator= (const Setting &other)
 Setting (const Setting &other)
 Setting (config_setting_t *setting)

Static Private Member Functions

static SettingwrapSetting (config_setting_t *setting)

Private Attributes

Format _format
config_setting_t_setting
Type _type

Friends

class Config

Detailed Description

Definition at line 135 of file libconfig.h++.


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

Generated by  Doxygen 1.6.0   Back to index