Mixxx

ConfigObject< ValueType > Class Template Reference

#include <configobject.h>

Collaboration diagram for ConfigObject< ValueType >:

List of all members.

Public Member Functions

 ConfigObject (QString file)
 ConfigObject (QDomNode node)
 ~ConfigObject ()
ConfigOption< ValueType > * set (ConfigKey, ValueType)
ConfigOption< ValueType > * get (ConfigKey key)
ConfigKeyget (ValueType v)
QString getValueString (ConfigKey k)
void clear ()
void reopen (QString file)
void Save ()
QString getConfigPath ()

Public Attributes

ConfigKey key
ValueType value
ConfigOption< ValueType > option

Protected Member Functions

bool Parse ()

Protected Attributes

QList< ConfigOption< ValueType > * > list
QString filename

Detailed Description

template<class ValueType>
class ConfigObject< ValueType >

Definition at line 106 of file configobject.h.


Constructor & Destructor Documentation

template<class ValueType >
ConfigObject< ValueType >::ConfigObject ( QString  file)

Definition at line 113 of file configobject.cpp.

template<class ValueType >
ConfigObject< ValueType >::ConfigObject ( QDomNode  node)

Definition at line 382 of file configobject.cpp.

Here is the call graph for this function:

template<class ValueType >
ConfigObject< ValueType >::~ConfigObject ( )

Definition at line 118 of file configobject.cpp.


Member Function Documentation

template<class ValueType >
void ConfigObject< ValueType >::clear ( )

Definition at line 257 of file configobject.cpp.

template<class ValueType >
ConfigOption< ValueType > * ConfigObject< ValueType >::get ( ConfigKey  key)

Definition at line 157 of file configobject.cpp.

template<class ValueType>
ConfigKey * ConfigObject< ValueType >::get ( ValueType  v)

Definition at line 179 of file configobject.cpp.

template<class ValueType >
QString ConfigObject< ValueType >::getConfigPath ( )

Definition at line 316 of file configobject.cpp.

Here is the caller graph for this function:

template<class ValueType >
QString ConfigObject< ValueType >::getValueString ( ConfigKey  k)

Definition at line 205 of file configobject.cpp.

Here is the caller graph for this function:

template<class ValueType >
bool ConfigObject< ValueType >::Parse ( ) [protected]

Loads and parses the configuration file. Returns false if the file could not be opened; otherwise true.

Definition at line 210 of file configobject.cpp.

template<class ValueType >
void ConfigObject< ValueType >::reopen ( QString  file)

Definition at line 271 of file configobject.cpp.

template<class ValueType >
void ConfigObject< ValueType >::Save ( )

Definition at line 280 of file configobject.cpp.

Here is the caller graph for this function:

template<class ValueType>
ConfigOption< ValueType > * ConfigObject< ValueType >::set ( ConfigKey  k,
ValueType  v 
)

Definition at line 127 of file configobject.cpp.


Member Data Documentation

template<class ValueType>
QString ConfigObject< ValueType >::filename [protected]

Definition at line 127 of file configobject.h.

template<class ValueType>
ConfigKey ConfigObject< ValueType >::key

Definition at line 108 of file configobject.h.

template<class ValueType>
QList< ConfigOption<ValueType>* > ConfigObject< ValueType >::list [protected]

Definition at line 126 of file configobject.h.

template<class ValueType>
ConfigOption<ValueType> ConfigObject< ValueType >::option

Definition at line 110 of file configobject.h.

template<class ValueType>
ValueType ConfigObject< ValueType >::value

Definition at line 109 of file configobject.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines