SI::CharArray Class Reference

#include <util.h>

Collaboration diagram for SI::CharArray:

Collaboration graph
[legend]

List of all members.

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

Classes

class  Data
class  DataForeignData
class  DataOwnData


Detailed Description

Definition at line 31 of file util.h.


Constructor & Destructor Documentation

SI::CharArray::CharArray (  ) 

Definition at line 20 of file util.c.

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

Definition at line 30 of file util.c.

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

SI::CharArray::~CharArray (  ) 

Definition at line 23 of file util.c.

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


Member Function Documentation

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

Definition at line 35 of file util.c.

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

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

Definition at line 50 of file util.c.

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

Referenced by SI::LinkageDescriptor::Parse(), SI::CaDescriptor::Parse(), and SI::Object::setData().

Here is the call graph for this function:

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

Definition at line 64 of file util.c.

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

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

Definition at line 71 of file util.c.

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

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

Definition at line 85 of file util.c.

References off.

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

Definition at line 50 of file util.h.

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

Referenced by SI::DescriptorLoop::createDescriptor(), SI::String::decodeText(), SI::NumberedSection::getCurrentNextIndicator(), SI::Descriptor::getDescriptor(), SI::Descriptor::getDescriptorTag(), SI::DescriptorLoop::getDescriptorTags(), SI::NumberedSection::getLastSectionNumber(), SI::Descriptor::getLength(), SI::Section::getLength(), SI::DescriptorLoop::getNext(), SI::DescriptorLoop::getNumberOfDescriptors(), SI::NumberedSection::getSectionNumber(), SI::Section::getTableId(), SI::NumberedSection::getTableIdExtension(), SI::NumberedSection::getVersionNumber(), SI::CRCSection::isCRCValid(), SI::RST::RunningInfo::Parse(), SI::TDT::Parse(), SI::PAT::Association::Parse(), SI::MHP_DVBJApplicationDescriptor::ApplicationEntry::Parse(), SI::MHP_ApplicationNameDescriptor::NameEntry::Parse(), SI::MHP_ApplicationDescriptor::Profile::Parse(), SI::ApplicationSignallingDescriptor::ApplicationEntryDescriptor::Parse(), SI::PremiereContentTransmissionDescriptor::StartDayEntry::StartTimeEntry::Parse(), SI::PremiereContentTransmissionDescriptor::StartDayEntry::Parse(), SI::PremiereContentTransmissionDescriptor::Parse(), SI::S2SatelliteDeliverySystemDescriptor::Parse(), SI::ISO639LanguageDescriptor::Language::Parse(), SI::LinkageDescriptor::Parse(), SI::LocalTimeOffsetDescriptor::LocalTimeOffset::Parse(), SI::ServiceMoveDescriptor::Parse(), SI::SubtitlingDescriptor::Subtitling::Parse(), SI::PrivateDataSpecifierDescriptor::Parse(), SI::TimeShiftedServiceDescriptor::Parse(), SI::NVODReferenceDescriptor::Service::Parse(), SI::TerrestrialDeliverySystemDescriptor::Parse(), SI::CableDeliverySystemDescriptor::Parse(), SI::SatelliteDeliverySystemDescriptor::Parse(), SI::ServiceListDescriptor::Service::Parse(), SI::CarouselIdentifierDescriptor::Parse(), SI::StreamIdentifierDescriptor::Parse(), SI::CaDescriptor::Parse(), SI::TeletextDescriptor::Teletext::Parse(), SI::ParentalRatingDescriptor::Rating::Parse(), SI::ContentDescriptor::Nibble::Parse(), SI::TimeShiftedEventDescriptor::Parse(), and setPointerAndOffset().

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

Definition at line 51 of file util.h.

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

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

Definition at line 52 of file util.h.

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

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

Definition at line 53 of file util.h.

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

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

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

Definition at line 56 of file util.h.

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

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

Definition at line 57 of file util.h.

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

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

Definition at line 58 of file util.h.

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

Referenced by SI::TypeLoop< uint16_t >::operator[]().

Here is the call graph for this function:

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

Definition at line 59 of file util.h.

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

Referenced by SI::AIT::Application::getOrganisationId(), and SI::TypeLoop< uint16_t >::operator[]().

Here is the call graph for this function:

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

Definition at line 61 of file util.h.

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

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

Definition at line 62 of file util.h.

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

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

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


Member Data Documentation

int SI::CharArray::off [private]

Definition at line 120 of file util.h.

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


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

Generated on Tue Nov 4 20:04:32 2008 for VDR by  doxygen 1.5.6