|
SASC-NG
DVBSoftCAM
|
#include <data.h>
Inheritance diagram for cStructItem:Public Member Functions | |
| cStructItem (void) | |
| virtual | ~cStructItem () |
| virtual cString | ToString (bool hide) |
| bool | Save (FILE *f) |
| void | SetComment (const char *com) |
| const char * | Comment (void) const |
| void | Delete (void) |
| bool | Deleted (void) const |
| bool | Special (void) const |
| bool | Valid (void) const |
Protected Member Functions | |
| void | SetSpecial (void) |
| cStructItem::cStructItem | ( | void | ) |
| cStructItem::~cStructItem | ( | ) | [virtual] |
| const char* cStructItem::Comment | ( | void | ) | const [inline] |
| void cStructItem::Delete | ( | void | ) | [inline] |
| bool cStructItem::Deleted | ( | void | ) | const [inline] |
| bool cStructItem::Save | ( | FILE * | f | ) |
Definition at line 163 of file data.c.
References ToString().
{
fprintf(f,"%s%s\n",*ToString(false),comment?comment:"");
return ferror(f)==0;
}
| void cStructItem::SetComment | ( | const char * | com | ) |
Definition at line 157 of file data.c.
References free.
Referenced by cStructLoader::AddItem(), cStructLoader::DelItem(), and cStructLoader::Load().
{
free(comment);
comment=com ? strdup(com):0;
}
| void cStructItem::SetSpecial | ( | void | ) | [inline, protected] |
| bool cStructItem::Special | ( | void | ) | const [inline] |
| virtual cString cStructItem::ToString | ( | bool | hide | ) | [inline, virtual] |
Reimplemented in cEcmData, cEcmInfo, cPlainKey, cIrdCardInfo, and cTpsKey.
Definition at line 82 of file data.h.
Referenced by cStructLoader::DelItem(), and Save().
{ return ""; }
| bool cStructItem::Valid | ( | void | ) | const [inline] |
Definition at line 90 of file data.h.
Referenced by cStructLoader::NextValid().
{ return !deleted && !special; }