5G-MAG Reference Tools - MBMS Middleware
Public Member Functions | Private Attributes | List of all members
MBMS_RT::CachedSegment Class Reference

#include <CacheItems.h>

Inheritance diagram for MBMS_RT::CachedSegment:
Inheritance graph
Collaboration diagram for MBMS_RT::CachedSegment:
Collaboration graph

Public Member Functions

 CachedSegment (const std::string &content_location, unsigned long received_at, std::shared_ptr< MBMS_RT::Segment > segment)
 
virtual ~CachedSegment ()=default
 
virtual ItemType item_type () const
 
virtual char * buffer () const
 
virtual uint32_t content_length () const
 
virtual ItemSource item_source () const
 
virtual unsigned long received_at () const
 
- Public Member Functions inherited from MBMS_RT::CacheItem
 CacheItem (const std::string &content_location, unsigned long received_at)
 
virtual ~CacheItem ()=default
 
std::string item_source_as_string () const
 
std::string content_location () const
 

Private Attributes

std::shared_ptr< Segment > _segment
 

Additional Inherited Members

- Public Types inherited from MBMS_RT::CacheItem
enum class  ItemType { File , Segment , Playlist , Manifest }
 

Detailed Description

Definition at line 84 of file CacheItems.h.

Constructor & Destructor Documentation

◆ CachedSegment()

MBMS_RT::CachedSegment::CachedSegment ( const std::string &  content_location,
unsigned long  received_at,
std::shared_ptr< MBMS_RT::Segment >  segment 
)
inline

Definition at line 86 of file CacheItems.h.

89  , _segment( segment )
90  {}
CacheItem(const std::string &content_location, unsigned long received_at)
Definition: CacheItems.h:28
std::string content_location() const
Definition: CacheItems.h:59
std::shared_ptr< Segment > _segment
Definition: CacheItems.h:98
virtual unsigned long received_at() const
Definition: CacheItems.h:98

◆ ~CachedSegment()

virtual MBMS_RT::CachedSegment::~CachedSegment ( )
virtualdefault

Member Function Documentation

◆ buffer()

virtual char* MBMS_RT::CachedSegment::buffer ( ) const
inlinevirtual

Implements MBMS_RT::CacheItem.

Definition at line 94 of file CacheItems.h.

94 { return _segment->buffer(); };

◆ content_length()

virtual uint32_t MBMS_RT::CachedSegment::content_length ( ) const
inlinevirtual

Implements MBMS_RT::CacheItem.

Definition at line 95 of file CacheItems.h.

95 { return _segment->content_length(); };

◆ item_source()

virtual ItemSource MBMS_RT::CachedSegment::item_source ( ) const
inlinevirtual

Implements MBMS_RT::CacheItem.

Definition at line 96 of file CacheItems.h.

96 { return _segment->data_source(); };

◆ item_type()

virtual ItemType MBMS_RT::CachedSegment::item_type ( ) const
inlinevirtual

Implements MBMS_RT::CacheItem.

Definition at line 93 of file CacheItems.h.

◆ received_at()

virtual unsigned long MBMS_RT::CachedSegment::received_at ( ) const
inlinevirtual

Reimplemented from MBMS_RT::CacheItem.

Definition at line 98 of file CacheItems.h.

98 { return _segment->received_at(); };

Member Data Documentation

◆ _segment

std::shared_ptr<Segment> MBMS_RT::CachedSegment::_segment
private

Definition at line 101 of file CacheItems.h.


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