vdr  2.2.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cConfig< T > Class Template Reference

#include <config.h>

Public Member Functions

 cConfig (void)
 
virtual ~cConfig ()
 
const char * FileName (void)
 
bool Load (const char *FileName=NULL, bool AllowComments=false, bool MustExist=false)
 
bool Save (void)
 
- Public Member Functions inherited from cList< T >
T * Get (int Index) const
 
T * First (void) const
 
T * Last (void) const
 
T * Prev (const T *object) const
 
T * Next (const T *object) const
 
- Public Member Functions inherited from cListBase
virtual ~cListBase ()
 
void Add (cListObject *Object, cListObject *After=NULL)
 
void Ins (cListObject *Object, cListObject *Before=NULL)
 
void Del (cListObject *Object, bool DeleteObject=true)
 
virtual void Move (int From, int To)
 
void Move (cListObject *From, cListObject *To)
 
cListObjectGet (int Index) const
 
int Count (void) const
 
void Sort (void)
 

Private Member Functions

void Clear (void)
 

Private Attributes

char * fileName
 
bool allowComments
 

Additional Inherited Members

- Protected Member Functions inherited from cListBase
 cListBase (void)
 
- Protected Attributes inherited from cListBase
cListObjectobjects
 
cListObjectlastObject
 
int count
 

Detailed Description

template<class T>
class cConfig< T >

Definition at line 106 of file config.h.

Constructor & Destructor Documentation

template<class T>
cConfig< T >::cConfig ( void  )
inline

Definition at line 117 of file config.h.

template<class T>
virtual cConfig< T >::~cConfig ( )
inlinevirtual

Definition at line 118 of file config.h.

Member Function Documentation

template<class T>
void cConfig< T >::Clear ( void  )
inlineprivatevirtual

Reimplemented from cListBase.

Definition at line 110 of file config.h.

Referenced by cConfig< cDiseqc >::Load().

template<class T>
const char* cConfig< T >::FileName ( void  )
inline

Definition at line 119 of file config.h.

template<class T>
bool cConfig< T >::Load ( const char *  FileName = NULL,
bool  AllowComments = false,
bool  MustExist = false 
)
inline

Definition at line 120 of file config.h.

Referenced by cInterface::LearnKeys(), cScrs::Load(), cDiseqcs::Load(), and main().

template<class T>
bool cConfig< T >::Save ( void  )
inline

Definition at line 167 of file config.h.

Referenced by cInterface::LearnKeys(), and main().

Member Data Documentation

template<class T>
bool cConfig< T >::allowComments
private

Definition at line 109 of file config.h.

template<class T>
char* cConfig< T >::fileName
private

Definition at line 108 of file config.h.


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