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_carousel_id
 
unsigned short m_module_id
 
unsigned short m_stream_id
 
unsigned char m_version
 
unsigned long m_moduleSize
 Total size. More...
 
unsigned long m_receivedData {0}
 Size received so far. More...
 
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 25 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 46 of file dsmccobjcarousel.cpp.

Referenced by ObjCarousel::AddModuleData().

◆ 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 36 of file dsmccobjcarousel.h.

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

◆ Version()

unsigned char DSMCCCacheModuleData::Version ( void  ) const
inline

Definition at line 37 of file dsmccobjcarousel.h.

Referenced by ObjCarousel::AddModuleInfo().

◆ ModuleSize()

unsigned long DSMCCCacheModuleData::ModuleSize ( void  ) const
inline

Definition at line 38 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 41 of file dsmccobjcarousel.h.

Referenced by ObjCarousel::AddModuleData(), and ObjCarousel::AddModuleInfo().

Member Data Documentation

◆ m_carousel_id

unsigned long DSMCCCacheModuleData::m_carousel_id
private

Definition at line 49 of file dsmccobjcarousel.h.

◆ m_module_id

unsigned short DSMCCCacheModuleData::m_module_id
private

Definition at line 50 of file dsmccobjcarousel.h.

Referenced by AddModuleData().

◆ m_stream_id

unsigned short DSMCCCacheModuleData::m_stream_id
private

Definition at line 51 of file dsmccobjcarousel.h.

◆ m_version

unsigned char DSMCCCacheModuleData::m_version
private

Definition at line 53 of file dsmccobjcarousel.h.

Referenced by AddModuleData().

◆ m_moduleSize

unsigned long DSMCCCacheModuleData::m_moduleSize
private

Total size.

Definition at line 54 of file dsmccobjcarousel.h.

Referenced by AddModuleData(), and DSMCCCacheModuleData().

◆ m_receivedData

unsigned long DSMCCCacheModuleData::m_receivedData {0}
private

Size received so far.

Definition at line 55 of file dsmccobjcarousel.h.

Referenced by AddModuleData().

◆ m_blocks

vector<QByteArray*> DSMCCCacheModuleData::m_blocks
private

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

Definition at line 58 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 60 of file dsmccobjcarousel.h.

Referenced by AddModuleData().

◆ m_descriptorData

ModuleDescriptorData DSMCCCacheModuleData::m_descriptorData
private

Definition at line 61 of file dsmccobjcarousel.h.

Referenced by AddModuleData(), and DSMCCCacheModuleData().


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