vdr  1.7.31
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 >
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) 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)
int Count (void) const
void Sort (void)
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)
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 (void)
 cListBase (void)
- Protected Attributes inherited from cListBase
cListObjectobjects
cListObjectlastObject
int count

Detailed Description

Definition at line 202 of file config.h.

Constructor & Destructor Documentation

cNestedItemList::cNestedItemList ( void  )

Definition at line 173 of file config.c.

References fileName.

cNestedItemList::~cNestedItemList ( )
virtual

Definition at line 178 of file config.c.

References fileName.

cNestedItemList::cNestedItemList ( void  )
virtual cNestedItemList::~cNestedItemList ( )
virtual

Member Function Documentation

void cNestedItemList::Clear ( void  )
virtual

Reimplemented from cListBase.

Definition at line 226 of file config.c.

References fileName.

Referenced by Load().

void cNestedItemList::Clear ( void  )
virtual

Reimplemented from cListBase.

bool cNestedItemList::Load ( const char *  FileName)

Definition at line 233 of file config.c.

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

Referenced by main().

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

Definition at line 183 of file config.c.

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

Referenced by Load().

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

Definition at line 257 of file config.c.

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

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

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

Definition at line 212 of file config.c.

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

Referenced by Save().

Member Data Documentation

char * cNestedItemList::fileName
private

Definition at line 204 of file config.h.

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


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