vdr  2.2.0
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 >
cNestedItemGet (int Index) const
 
cNestedItemFirst (void) const
 
cNestedItemLast (void) const
 
cNestedItemPrev (const cNestedItem *object) const
 
cNestedItemNext (const cNestedItem *object) const
 
- Public Member Functions inherited from cListBase
virtual ~cListBase ()
 
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)
 
cListObjectGet (int Index) const
 
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 (void)
 
- Protected Attributes inherited from cListBase
cListObjectobjects
 
cListObjectlastObject
 
int count
 

Detailed Description

Definition at line 204 of file config.h.

Constructor & Destructor Documentation

cNestedItemList::cNestedItemList ( void  )

Definition at line 174 of file config.c.

cNestedItemList::~cNestedItemList ( )
virtual

Definition at line 179 of file config.c.

Member Function Documentation

void cNestedItemList::Clear ( void  )
virtual

Reimplemented from cListBase.

Definition at line 227 of file config.c.

References cListBase::Clear().

bool cNestedItemList::Load ( const char *  FileName)

Definition at line 234 of file config.c.

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

Referenced by main().

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

Definition at line 258 of file config.c.

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

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

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

Definition at line 213 of file config.c.

References cList< T >::First(), and cList< T >::Next().

Member Data Documentation

char* cNestedItemList::fileName
private

Definition at line 206 of file config.h.


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