vdr 2.6.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cNestedItemList Class Reference

#include <config.h>

Public Member Functions

 cNestedItemList (void)
 
virtual ~cNestedItemList ()
 
void Clear (void)
 
bool Load (const char *FileName)
 
bool Save (void)
 
 cNestedItemList (void)
 
virtual ~cNestedItemList ()
 
void Clear (void)
 
bool Load (const char *FileName)
 
bool Save (void)
 
- Public Member Functions inherited from cList< cNestedItem >
 cList (const char *NeedsLocking=NULL)
 
 cList (const char *NeedsLocking=NULL)
 
const cNestedItemGet (int Index) const
 
cNestedItemGet (int Index)
 
const cNestedItemGet (int Index) const
 
cNestedItemGet (int Index)
 
const cNestedItemFirst (void) const
 
cNestedItemFirst (void)
 
const cNestedItemFirst (void) const
 
cNestedItemFirst (void)
 
const cNestedItemLast (void) const
 
cNestedItemLast (void)
 
const cNestedItemLast (void) const
 
cNestedItemLast (void)
 
const cNestedItemPrev (const cNestedItem *Object) const
 
cNestedItemPrev (const cNestedItem *Object)
 
const cNestedItemPrev (const cNestedItem *Object) const
 
cNestedItemPrev (const cNestedItem *Object)
 
const cNestedItemNext (const cNestedItem *Object) const
 
cNestedItemNext (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)
 
virtual void Clear (void)
 
bool Contains (const cListObject *Object) const
 
const cListObjectGet (int Index) const
 
cListObjectGet (int Index)
 
int Count (void) const
 
void Sort (void)
 
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)
 
virtual void Clear (void)
 
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)
 
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)
 
 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 211 of file config.h.

Constructor & Destructor Documentation

◆ cNestedItemList() [1/2]

cNestedItemList::cNestedItemList ( void  )

Definition at line 174 of file config.c.

References fileName.

◆ ~cNestedItemList() [1/2]

cNestedItemList::~cNestedItemList ( )
virtual

Definition at line 179 of file config.c.

References fileName.

◆ cNestedItemList() [2/2]

cNestedItemList::cNestedItemList ( void  )

◆ ~cNestedItemList() [2/2]

virtual cNestedItemList::~cNestedItemList ( )
virtual

Member Function Documentation

◆ Clear() [1/2]

void cNestedItemList::Clear ( void  )
virtual

Reimplemented from cListBase.

Definition at line 227 of file config.c.

References cListBase::Clear(), and fileName.

◆ Clear() [2/2]

void cNestedItemList::Clear ( void  )
virtual

Reimplemented from cListBase.

◆ Load() [1/2]

bool cNestedItemList::Load ( const char *  FileName)

Definition at line 234 of file config.c.

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

Referenced by main().

◆ Load() [2/2]

bool cNestedItemList::Load ( const char *  FileName)

◆ Parse() [1/2]

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

Definition at line 184 of file config.c.

References isempty(), Parse(), cReadLine::Read(), skipspace(), stripspace(), and cNestedItem::SubItems().

Referenced by Load(), and Parse().

◆ Parse() [2/2]

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

◆ Save() [1/2]

bool cNestedItemList::Save ( void  )

Definition at line 258 of file config.c.

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

Referenced by cMenuFolder::Delete(), and cMenuFolder::SetFolder().

◆ Save() [2/2]

bool cNestedItemList::Save ( void  )

◆ Write() [1/2]

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

Definition at line 213 of file config.c.

References Write().

Referenced by Save(), and Write().

◆ Write() [2/2]

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

Member Data Documentation

◆ fileName

char * cNestedItemList::fileName
private

Definition at line 213 of file config.h.

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


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