vdr 2.7.5
SI::CharArray Class Reference

#include <util.h>

Classes

class  Data
class  DataForeignData
class  DataOwnData

Public Member Functions

 CharArray ()
 CharArray (const CharArray &source)
CharArrayoperator= (const CharArray &source)
 ~CharArray ()
void assign (const unsigned char *data, int size, bool doCopy=true)
bool operator== (const char *string) const
bool operator== (const CharArray &other) const
CharArray operator+ (const int offset) const
const unsigned char * getData () const
const unsigned char * getData (int offset) const
template<typename T>
const T * getData () const
template<typename T>
const T * getData (int offset) const
template<typename T>
void setPointerAndOffset (const T *&p, int &offset) const
unsigned char operator[] (const int index) const
int getLength () const
u_int16_t TwoBytes (const int index) const
u_int32_t FourBytes (const int index) const
bool isValid () const
bool checkSize (int offset)
void addOffset (int offset)

Private Attributes

Datadata_
int off

Detailed Description

Definition at line 32 of file util.h.

Constructor & Destructor Documentation

◆ CharArray() [1/2]

SI::CharArray::CharArray ( )

Definition at line 20 of file util.c.

References data_, and off.

Referenced by CharArray(), operator+(), operator=(), and operator==().

◆ CharArray() [2/2]

SI::CharArray::CharArray ( const CharArray & source)

Definition at line 30 of file util.c.

References CharArray(), data_, and off.

◆ ~CharArray()

SI::CharArray::~CharArray ( )

Definition at line 23 of file util.c.

References data_.

Member Function Documentation

◆ addOffset()

void SI::CharArray::addOffset ( int offset)
inline

Definition at line 65 of file util.h.

References off.

Referenced by SI::StructureLoop< T >::getNext(), and SI::StructureLoop< T >::getNextAsPointer().

◆ assign()

void SI::CharArray::assign ( const unsigned char * data,
int size,
bool doCopy = true )

Definition at line 50 of file util.c.

References data_.

◆ checkSize()

bool SI::CharArray::checkSize ( int offset)
inline

Definition at line 63 of file util.h.

References data_, and off.

◆ FourBytes()

u_int32_t SI::CharArray::FourBytes ( const int index) const
inline

Definition at line 60 of file util.h.

References data_, and off.

◆ getData() [1/4]

const unsigned char * SI::CharArray::getData ( ) const
inline

Definition at line 51 of file util.h.

References data_, and off.

Referenced by cCaDescriptors::AddCaDescriptor(), cEIT::cEIT(), SI::Descriptor::getDescriptor(), and setPointerAndOffset().

◆ getData() [2/4]

template<typename T>
const T * SI::CharArray::getData ( ) const
inline

Definition at line 53 of file util.h.

References data_, and off.

◆ getData() [3/4]

const unsigned char * SI::CharArray::getData ( int offset) const
inline

Definition at line 52 of file util.h.

References data_, and off.

◆ getData() [4/4]

template<typename T>
const T * SI::CharArray::getData ( int offset) const
inline

Definition at line 54 of file util.h.

References data_, and off.

◆ getLength()

int SI::CharArray::getLength ( ) const
inline

Definition at line 58 of file util.h.

References data_.

Referenced by cCaDescriptors::AddCaDescriptor(), and cEIT::cEIT().

◆ isValid()

bool SI::CharArray::isValid ( ) const
inline

Definition at line 62 of file util.h.

References data_.

◆ operator+()

CharArray SI::CharArray::operator+ ( const int offset) const

Definition at line 85 of file util.c.

References CharArray(), and off.

◆ operator=()

CharArray & SI::CharArray::operator= ( const CharArray & source)

Definition at line 35 of file util.c.

References CharArray(), SI::CharArray::Data::count_, data_, and off.

◆ operator==() [1/2]

bool SI::CharArray::operator== ( const char * string) const

Definition at line 64 of file util.c.

References data_.

◆ operator==() [2/2]

bool SI::CharArray::operator== ( const CharArray & other) const

Definition at line 71 of file util.c.

References CharArray(), SI::CharArray::Data::data, data_, and SI::CharArray::Data::size.

◆ operator[]()

unsigned char SI::CharArray::operator[] ( const int index) const
inline

Definition at line 57 of file util.h.

References data_, and off.

◆ setPointerAndOffset()

template<typename T>
void SI::CharArray::setPointerAndOffset ( const T *& p,
int & offset ) const
inline

Definition at line 56 of file util.h.

References getData().

◆ TwoBytes()

u_int16_t SI::CharArray::TwoBytes ( const int index) const
inline

Definition at line 59 of file util.h.

References data_, and off.

Member Data Documentation

◆ data_

◆ off

int SI::CharArray::off
private

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