vdr 2.6.3
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)
 
- 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)
 
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)
 

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 211 of file config.h.

Constructor & Destructor Documentation

◆ cNestedItemList()

cNestedItemList::cNestedItemList ( void  )

Definition at line 174 of file config.c.

References fileName.

◆ ~cNestedItemList()

cNestedItemList::~cNestedItemList ( )
virtual

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().

Referenced by main().

◆ Parse()

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().

◆ Save()

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().

◆ Write()

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().

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: