SASC-NG
DVBSoftCAM

cOpt Class Reference

#include <opts.h>

Inheritance diagram for cOpt:

List of all members.

Public Member Functions

 cOpt (const char *Name, const char *Title)
virtual ~cOpt ()
virtual void Parse (const char *Value)=0
virtual void Backup (void)=0
virtual bool Set (void)=0
virtual void Store (const char *PreStr)=0
virtual void Create (cOsdMenu *menu)=0
const char * Name (void)
void Persistant (bool per)
bool Persistant (void)

Protected Member Functions

const char * FullName (const char *PreStr)

Protected Attributes

const char * name
const char * title

Detailed Description

Definition at line 29 of file opts.h.


Constructor & Destructor Documentation

cOpt::cOpt ( const char *  Name,
const char *  Title 
)

Definition at line 256 of file sc.c.

References Name(), name, and title.

{
  name=Name; title=Title;
  fullname=0; persistant=true;
}
cOpt::~cOpt ( ) [virtual]

Definition at line 262 of file sc.c.

References free.

{
  free(fullname);
}

Member Function Documentation

virtual void cOpt::Backup ( void  ) [pure virtual]

Implemented in cOptInt, cOptStr, cOptMInt, and cOptCap.

Referenced by cOpts::Backup().

virtual void cOpt::Create ( cOsdMenu *  menu) [pure virtual]

Implemented in cOptInt, cOptSel, cOptBool, cOptStr, cOptMInt, and cOptCap.

Referenced by cOpts::Create().

const char * cOpt::FullName ( const char *  PreStr) [protected]

Definition at line 267 of file sc.c.

References bprintf(), free, and name.

Referenced by cOptMInt::Store(), cOptStr::Store(), and cOptInt::Store().

{
  if(PreStr) {
    free(fullname);
    fullname=bprintf("%s.%s",PreStr,name);
    return fullname;
    }
  else return name;
}
const char* cOpt::Name ( void  ) [inline]

Definition at line 45 of file opts.h.

References name.

Referenced by cOpt().

{ return name; }
virtual void cOpt::Parse ( const char *  Value) [pure virtual]

Implemented in cOptInt, cOptStr, cOptMInt, and cOptCap.

Referenced by cOpts::Parse().

void cOpt::Persistant ( bool  per) [inline]

Definition at line 46 of file opts.h.

{ persistant=per; }
bool cOpt::Persistant ( void  ) [inline]

Definition at line 47 of file opts.h.

{ return persistant; }
virtual bool cOpt::Set ( void  ) [pure virtual]

Implemented in cOptInt, cOptStr, cOptMInt, and cOptCap.

virtual void cOpt::Store ( const char *  PreStr) [pure virtual]

Implemented in cOptInt, cOptStr, cOptMInt, and cOptCap.

Referenced by cOpts::Store().


Member Data Documentation

const char* cOpt::name [protected]

Definition at line 34 of file opts.h.

Referenced by cOpt(), FullName(), and Name().

const char * cOpt::title [protected]

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