vdr 2.7.6
|
#include <config.h>
Public Member Functions | |
cNestedItemList (void) | |
virtual | ~cNestedItemList () override |
void | Clear (void) |
bool | Load (const char *FileName) |
bool | Save (void) |
![]() | |
cList (const char *NeedsLocking=NULL) | |
const cNestedItem * | Get (int Index) const |
cNestedItem * | Get (int Index) |
const cNestedItem * | First (void) const |
cNestedItem * | First (void) |
const cNestedItem * | Last (void) const |
cNestedItem * | Last (void) |
const cNestedItem * | Prev (const cNestedItem *Object) const |
cNestedItem * | Prev (const cNestedItem *Object) |
const cNestedItem * | Next (const cNestedItem *Object) const |
cNestedItem * | Next (const cNestedItem *Object) |
![]() | |
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 cListObject * | Get (int Index) const |
cListObject * | Get (int Index) |
int | Count (void) const |
void | Sort (void) |
Private Member Functions | |
bool | Parse (FILE *f, cList< cNestedItem > *List, int &Line) |
bool | Write (FILE *f, cList< cNestedItem > *List, int Indent=0) |
Private Attributes | |
char * | fileName |
Additional Inherited Members | |
![]() | |
cListBase (const char *NeedsLocking=NULL) | |
![]() | |
cListObject * | objects |
cListObject * | lastObject |
int | count |
cStateLock | stateLock |
const char * | needsLocking |
bool | useGarbageCollector |
cNestedItemList::cNestedItemList | ( | void | ) |
|
overridevirtual |
|
virtual |
Reimplemented from cListBase.
Definition at line 227 of file config.c.
References cListBase::Clear(), and fileName.
bool cNestedItemList::Load | ( | const char * | FileName | ) |
Definition at line 234 of file config.c.
References cListBase::Clear(), fileName, isyslog, LOG_ERROR_STR, and Parse().
|
private |
Definition at line 184 of file config.c.
References cList< cNestedItem >::cList(), isempty(), Parse(), cReadLine::Read(), skipspace(), stripspace(), and cNestedItem::SubItems().
bool cNestedItemList::Save | ( | void | ) |
Definition at line 258 of file config.c.
References cSafeFile::Close(), fileName, cSafeFile::Open(), and Write().
|
private |
|
private |
Definition at line 221 of file config.h.
Referenced by Clear(), cNestedItemList(), Load(), Save(), and ~cNestedItemList().