vdr  2.4.1
Classes | Public Member Functions | Private Attributes | List of all members
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 30 of file util.c.

References SI::CharArray::Data::count_, and data_.

◆ CharArray() [2/2]

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

Definition at line 40 of file util.c.

◆ ~CharArray()

SI::CharArray::~CharArray ( )

Definition at line 33 of file util.c.

Member Function Documentation

◆ addOffset()

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

Definition at line 65 of file util.h.

References off.

◆ assign()

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

Definition at line 60 of file util.c.

◆ checkSize()

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

Definition at line 63 of file util.h.

References data_, off, and SI::CharArray::Data::valid.

Referenced by SI::Object::Object().

◆ FourBytes()

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

Definition at line 60 of file util.h.

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

◆ getData() [1/4]

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

◆ getData() [2/4]

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

Definition at line 53 of file util.h.

References SI::CharArray::Data::data, 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 SI::CharArray::Data::data, 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 SI::CharArray::Data::data, data_, and off.

◆ getLength()

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

Definition at line 58 of file util.h.

References data_, and SI::CharArray::Data::size.

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

◆ isValid()

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

Definition at line 62 of file util.h.

References data_, and SI::CharArray::Data::valid.

◆ operator+()

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

Definition at line 95 of file util.c.

◆ operator=()

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

Definition at line 45 of file util.c.

◆ operator==() [1/2]

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

Definition at line 74 of file util.c.

◆ operator==() [2/2]

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

Definition at line 81 of file util.c.

◆ operator[]()

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

Definition at line 57 of file util.h.

References SI::CharArray::Data::data, data_, and off.

◆ setPointerAndOffset()

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

◆ TwoBytes()

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

Definition at line 59 of file util.h.

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

Member Data Documentation

◆ data_

Data* SI::CharArray::data_
private

Definition at line 120 of file util.h.

Referenced by CharArray(), checkSize(), FourBytes(), getData(), getLength(), isValid(), operator[](), and TwoBytes().

◆ off

int SI::CharArray::off
private

Definition at line 121 of file util.h.

Referenced by addOffset(), checkSize(), FourBytes(), getData(), operator[](), and TwoBytes().


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