vdr 2.7.4
cSatCableNumbers Class Reference

#include <config.h>

Public Member Functions

 cSatCableNumbers (int Size, const char *s=NULL)
 
 ~cSatCableNumbers ()
 
int Size (void) const
 
int * Array (void)
 
bool FromString (const char *s)
 
cString ToString (void)
 
int FirstDeviceIndex (int DeviceIndex) const
 

Private Attributes

int size
 
int * array
 

Detailed Description

Definition at line 92 of file config.h.

Constructor & Destructor Documentation

◆ cSatCableNumbers()

cSatCableNumbers::cSatCableNumbers ( int Size,
const char * s = NULL )

Definition at line 69 of file config.c.

References array, FromString(), MALLOC, Size(), and size.

◆ ~cSatCableNumbers()

cSatCableNumbers::~cSatCableNumbers ( )

Definition at line 76 of file config.c.

References array.

Member Function Documentation

◆ Array()

int * cSatCableNumbers::Array ( void )
inline

Definition at line 100 of file config.h.

References array.

◆ FirstDeviceIndex()

int cSatCableNumbers::FirstDeviceIndex ( int DeviceIndex) const

Returns the first device index (starting at 0) that uses the same sat cable number as the device with the given DeviceIndex.

If the given device does not use the same sat cable as any other device, or if the resulting value would be the same as DeviceIndex, or if DeviceIndex is out of range, -1 is returned.

Definition at line 116 of file config.c.

References array, and size.

Referenced by cDvbDevice::BondDevices().

◆ FromString()

bool cSatCableNumbers::FromString ( const char * s)

Definition at line 81 of file config.c.

References array, esyslog, size, and skipspace().

Referenced by cSatCableNumbers().

◆ Size()

int cSatCableNumbers::Size ( void ) const
inline

Definition at line 99 of file config.h.

References size.

Referenced by cSatCableNumbers().

◆ ToString()

cString cSatCableNumbers::ToString ( void )

Definition at line 107 of file config.c.

References array, size, and cString::sprintf().

Member Data Documentation

◆ array

int* cSatCableNumbers::array
private

◆ size

int cSatCableNumbers::size
private

Definition at line 94 of file config.h.

Referenced by cSatCableNumbers(), FirstDeviceIndex(), FromString(), Size(), and ToString().


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