vdr 2.7.7
cScrs Class Reference

#include <diseqc.h>

Public Member Functions

bool Load (const char *FileName, bool AllowComments=false, bool MustExist=false)
cScr * GetUnused (int Device)
Public Member Functions inherited from cConfig< cScr >
 cConfig (const char *NeedsLocking=NULL)
virtual ~cConfig () override
const char * FileName (void)
bool Load (const char *FileName=NULL, bool AllowComments=false, bool MustExist=false)
bool Save (void) const
Public Member Functions inherited from cList< cScr >
 cList (const char *NeedsLocking=NULL)
const cScr * Get (int Index) const
const cScr * First (void) const
const cScr * Last (void) const
const cScr * Prev (const cScr *Object) const
const cScr * Next (const cScr *Object) const
Public Member Functions inherited from cListBase
virtual ~cListBase ()
bool Lock (cStateKey &StateKey, bool Write=false, int TimeoutMs=0) const
void SetSyncStateKey (cStateKey &StateKey)
void SetUseGarbageCollector (void)
void SetExplicitModify (void)
void SetModified (void)
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)
bool Contains (const cListObject *Object) const
const cListObject * Get (int Index) const
cListObject * Get (int Index)
int Count (void) const
void Sort (void)

Private Attributes

cMutex mutex

Additional Inherited Members

Protected Member Functions inherited from cListBase
 cListBase (const char *NeedsLocking=NULL)
Protected Attributes inherited from cListBase
cListObject * objects
cListObject * lastObject
int count
cStateLock stateLock
const char * needsLocking
bool useGarbageCollector

Detailed Description

Definition at line 52 of file diseqc.h.

Member Function Documentation

◆ GetUnused()

cScr * cScrs::GetUnused ( int Device)

Definition at line 190 of file diseqc.c.

References cList< cScr >::First(), IsBitSet, mutex, and cList< cScr >::Next().

◆ Load()

bool cScrs::Load ( const char * FileName,
bool AllowComments = false,
bool MustExist = false )

Member Data Documentation

◆ mutex

cMutex cScrs::mutex
private

Definition at line 54 of file diseqc.h.

Referenced by GetUnused().


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