vdr 2.7.6
cNestedItemList Class Reference

#include <config.h>

Public Member Functions

 cNestedItemList (void)
 
virtual ~cNestedItemList () override
 
void Clear (void)
 
bool Load (const char *FileName)
 
bool Save (void)
 
- Public Member Functions inherited from cList< cNestedItem >
 cList (const char *NeedsLocking=NULL)
 
const cNestedItemGet (int Index) const
 
cNestedItemGet (int Index)
 
const cNestedItemFirst (void) const
 
cNestedItemFirst (void)
 
const cNestedItemLast (void) const
 
cNestedItemLast (void)
 
const cNestedItemPrev (const cNestedItem *Object) const
 
cNestedItemPrev (const cNestedItem *Object)
 
const cNestedItemNext (const cNestedItem *Object) const
 
cNestedItemNext (const cNestedItem *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

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

- 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

Definition at line 219 of file config.h.

Constructor & Destructor Documentation

◆ cNestedItemList()

cNestedItemList::cNestedItemList ( void )

Definition at line 174 of file config.c.

References fileName.

◆ ~cNestedItemList()

cNestedItemList::~cNestedItemList ( )
overridevirtual

Definition at line 179 of file config.c.

References fileName.

Member Function Documentation

◆ Clear()

void cNestedItemList::Clear ( void )
virtual

Reimplemented from cListBase.

Definition at line 227 of file config.c.

References cListBase::Clear(), and fileName.

◆ Load()

bool cNestedItemList::Load ( const char * FileName)

Definition at line 234 of file config.c.

References cListBase::Clear(), fileName, isyslog, LOG_ERROR_STR, and Parse().

◆ Parse()

bool cNestedItemList::Parse ( FILE * f,
cList< cNestedItem > * List,
int & Line )
private

◆ Save()

bool cNestedItemList::Save ( void )

Definition at line 258 of file config.c.

References cSafeFile::Close(), fileName, cSafeFile::Open(), and Write().

◆ Write()

bool cNestedItemList::Write ( FILE * f,
cList< cNestedItem > * List,
int Indent = 0 )
private

Definition at line 213 of file config.c.

References cList< cNestedItem >::cList(), and Write().

Referenced by Save(), and Write().

Member Data Documentation

◆ fileName

char* cNestedItemList::fileName
private

Definition at line 221 of file config.h.

Referenced by Clear(), cNestedItemList(), Load(), Save(), and ~cNestedItemList().


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