SASC
DVBSoftCAM

SI::StructureLoop< T > Class Template Reference

#include <si.h>

Inheritance diagram for SI::StructureLoop< T >:

List of all members.

Public Member Functions

bool getNext (T &obj, Iterator &it)
T * getNextAsPointer (Iterator &it)

Detailed Description

template<class T>
class SI::StructureLoop< T >

Definition at line 294 of file si.h.


Member Function Documentation

template<class T>
bool SI::StructureLoop< T >::getNext ( T &  obj,
Iterator &  it 
) [inline]

Definition at line 298 of file si.h.

Referenced by SI::ExtendedEventDescriptors::getText(), and SI::ExtendedEventDescriptors::getTextItemized().

      {
         if (!isValid() || it.i >= getLength())
            return false;
         CharArray d=data;
         d.addOffset(it.i);
         T ret;
         ret.setData(d);
         ret.CheckParse();
         if (!checkSize(ret.getLength()))
            return false;
         it.i+=ret.getLength();
         obj=ret;
         return true;
      }
template<class T>
T* SI::StructureLoop< T >::getNextAsPointer ( Iterator &  it) [inline]

Definition at line 313 of file si.h.

      {
         if (!isValid() || it.i >= getLength())
            return 0;
         CharArray d=data;
         d.addOffset(it.i);
         T *ret=new T();
         ret->setData(d);
         ret->CheckParse();
         if (!checkSize(ret->getLength()))
            return 0;
         it.i+=ret->getLength();
         return ret;
      }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines