SASC-NG
DVBSoftCAM

cStructItem Class Reference

#include <data.h>

Inheritance diagram for cStructItem:

List of all members.

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)

Detailed Description

Definition at line 73 of file data.h.


Constructor & Destructor Documentation

cStructItem::cStructItem ( void  )

Definition at line 147 of file data.c.

{
  comment=0; deleted=special=false;
}
cStructItem::~cStructItem ( ) [virtual]

Definition at line 152 of file data.c.

References free.

{
  free(comment);
}

Member Function Documentation

const char* cStructItem::Comment ( void  ) const [inline]

Definition at line 86 of file data.h.

Referenced by cStructLoader::DelItem().

{ return comment; }
void cStructItem::Delete ( void  ) [inline]

Definition at line 87 of file data.h.

Referenced by cStructLoader::DelItem().

{ deleted=true; }
bool cStructItem::Deleted ( void  ) const [inline]

Definition at line 88 of file data.h.

{ return deleted; }
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]

Definition at line 78 of file data.h.

Referenced by cCommentItem::cCommentItem().

{ special=true; }
bool cStructItem::Special ( void  ) const [inline]

Definition at line 89 of file data.h.

Referenced by cStructLoader::AddItem().

{ return special; }
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; }

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines