vdr 2.6.9
cConfig< T > Class Template Reference

#include <config.h>

Public Member Functions

 cConfig (const char *NeedsLocking=NULL)
 
virtual ~cConfig ()
 
const char * FileName (void)
 
bool Load (const char *FileName=NULL, bool AllowComments=false, bool MustExist=false)
 
bool Save (void) const
 
- Public Member Functions inherited from cList< T >
 cList (const char *NeedsLocking=NULL)
 
const T * Get (int Index) const
 
const T * First (void) const
 
const T * Last (void) const
 
const T * Prev (const T *Object) const
 
const T * Next (const T *Object) const
 
T * Get (int Index)
 
T * First (void)
 
T * Last (void)
 
T * Prev (const T *Object)
 
T * Next (const T *Object)
 
- Public Member Functions inherited from cListBase
virtual ~cListBase ()
 
bool Lock (cStateKey &StateKey, bool Write=false, int TimeoutMs=0) const
 
void SetSyncStateKey (cStateKey &StateKey)
 
void SetUseGarbageCollector (void)
 
void SetExplicitModify (void)
 
void SetModified (void)
 
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)
 
bool Contains (const cListObject *Object) const
 
const cListObjectGet (int Index) const
 
cListObjectGet (int Index)
 
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 (const char *NeedsLocking=NULL)
 
- Protected Attributes inherited from cListBase
cListObjectobjects
 
cListObjectlastObject
 
int count
 
cStateLock stateLock
 
const char * needsLocking
 
bool useGarbageCollector
 

Detailed Description

template<class T>
class cConfig< T >

Definition at line 113 of file config.h.

Constructor & Destructor Documentation

◆ cConfig()

template<class T >
cConfig< T >::cConfig ( const char * NeedsLocking = NULL)
inline

Definition at line 124 of file config.h.

References cConfig< T >::fileName.

◆ ~cConfig()

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

Definition at line 125 of file config.h.

References cConfig< T >::fileName.

Member Function Documentation

◆ Clear()

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

Reimplemented from cListBase.

Definition at line 117 of file config.h.

References cListBase::Clear(), and cConfig< T >::fileName.

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

◆ FileName()

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

Definition at line 126 of file config.h.

References cConfig< T >::fileName.

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

◆ Load()

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

◆ Save()

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

Member Data Documentation

◆ allowComments

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

Definition at line 116 of file config.h.

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

◆ fileName

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

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