MythTV  master
Public Member Functions | Private Attributes | List of all members
DSMCCCacheModuleData Class Reference

DSMCCCacheModuleData contains information about a module and holds the blocks for a partly completed module. More...

#include <dsmccobjcarousel.h>

Collaboration diagram for DSMCCCacheModuleData:
Collaboration graph
[legend]

Public Member Functions

 DSMCCCacheModuleData (DsmccDii *dii, DsmccModuleInfo *info, unsigned short streamTag)
 
 ~DSMCCCacheModuleData ()
 
unsigned char * AddModuleData (DsmccDb *ddb, const unsigned char *Data)
 Add block to the module and create the module if it's now complete. More...
 
unsigned long CarouselId (void) const
 
unsigned short ModuleId (void) const
 
unsigned short StreamId (void) const
 
unsigned char Version (void) const
 
unsigned long ModuleSize (void) const
 
unsigned long DataSize (void) const
 Return the, possibly uncompressed, module size. More...
 

Private Attributes

unsigned long m_carouselId
 
unsigned short m_moduleId
 
unsigned short m_streamId
 
unsigned char m_version
 
unsigned long m_moduleSize
 Total size. More...
 
unsigned long m_receivedData {0}
 Size received so far. More...
 
std::vector< QByteArray * > m_blocks
 Block table. As blocks are received they are added to this table. More...
 
bool m_completed {false}
 True if we have completed this module. More...
 
ModuleDescriptorData m_descriptorData
 

Detailed Description

DSMCCCacheModuleData contains information about a module and holds the blocks for a partly completed module.

Definition at line 23 of file dsmccobjcarousel.h.

Constructor & Destructor Documentation

◆ DSMCCCacheModuleData()

DSMCCCacheModuleData::DSMCCCacheModuleData ( DsmccDii dii,
DsmccModuleInfo info,
unsigned short  streamTag 
)

Definition at line 19 of file dsmccobjcarousel.cpp.

◆ ~DSMCCCacheModuleData()

DSMCCCacheModuleData::~DSMCCCacheModuleData ( )

Definition at line 34 of file dsmccobjcarousel.cpp.

Member Function Documentation

◆ AddModuleData()

unsigned char * DSMCCCacheModuleData::AddModuleData ( DsmccDb ddb,
const unsigned char *  Data 
)

Add block to the module and create the module if it's now complete.

Returns
data for the module if it is complete, nullptr otherwise.

Definition at line 45 of file dsmccobjcarousel.cpp.

◆ CarouselId()

unsigned long DSMCCCacheModuleData::CarouselId ( void  ) const
inline

◆ ModuleId()

unsigned short DSMCCCacheModuleData::ModuleId ( void  ) const
inline

◆ StreamId()

unsigned short DSMCCCacheModuleData::StreamId ( void  ) const
inline

Definition at line 34 of file dsmccobjcarousel.h.

Referenced by BiopMessage::ProcessDir(), and BiopMessage::ProcessFile().

◆ Version()

unsigned char DSMCCCacheModuleData::Version ( void  ) const
inline

Definition at line 35 of file dsmccobjcarousel.h.

Referenced by ObjCarousel::AddModuleInfo().

◆ ModuleSize()

unsigned long DSMCCCacheModuleData::ModuleSize ( void  ) const
inline

Definition at line 36 of file dsmccobjcarousel.h.

Referenced by ObjCarousel::AddModuleInfo().

◆ DataSize()

unsigned long DSMCCCacheModuleData::DataSize ( void  ) const
inline

Return the, possibly uncompressed, module size.

Definition at line 39 of file dsmccobjcarousel.h.

Referenced by ObjCarousel::AddModuleInfo().

Member Data Documentation

◆ m_carouselId

unsigned long DSMCCCacheModuleData::m_carouselId
private

Definition at line 47 of file dsmccobjcarousel.h.

Referenced by CarouselId().

◆ m_moduleId

unsigned short DSMCCCacheModuleData::m_moduleId
private

Definition at line 48 of file dsmccobjcarousel.h.

Referenced by AddModuleData(), and ModuleId().

◆ m_streamId

unsigned short DSMCCCacheModuleData::m_streamId
private

Definition at line 49 of file dsmccobjcarousel.h.

Referenced by StreamId().

◆ m_version

unsigned char DSMCCCacheModuleData::m_version
private

Definition at line 51 of file dsmccobjcarousel.h.

Referenced by AddModuleData(), and Version().

◆ m_moduleSize

unsigned long DSMCCCacheModuleData::m_moduleSize
private

Total size.

Definition at line 52 of file dsmccobjcarousel.h.

Referenced by AddModuleData(), DataSize(), DSMCCCacheModuleData(), and ModuleSize().

◆ m_receivedData

unsigned long DSMCCCacheModuleData::m_receivedData {0}
private

Size received so far.

Definition at line 53 of file dsmccobjcarousel.h.

Referenced by AddModuleData().

◆ m_blocks

std::vector<QByteArray*> DSMCCCacheModuleData::m_blocks
private

Block table. As blocks are received they are added to this table.

Definition at line 56 of file dsmccobjcarousel.h.

Referenced by AddModuleData(), DSMCCCacheModuleData(), and ~DSMCCCacheModuleData().

◆ m_completed

bool DSMCCCacheModuleData::m_completed {false}
private

True if we have completed this module.

Definition at line 58 of file dsmccobjcarousel.h.

Referenced by AddModuleData().

◆ m_descriptorData

ModuleDescriptorData DSMCCCacheModuleData::m_descriptorData
private

Definition at line 59 of file dsmccobjcarousel.h.

Referenced by AddModuleData(), DataSize(), and DSMCCCacheModuleData().


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