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

#include <CacheItems.h>

Inheritance diagram for MBMS_RT::CachedFile:
Inheritance graph
Collaboration diagram for MBMS_RT::CachedFile:
Collaboration graph

Public Member Functions

 CachedFile (const std::string &content_location, unsigned long received_at, std::shared_ptr< LibFlute::File > file)
 
virtual ~CachedFile ()=default
 
virtual ItemType item_type () const
 
virtual char * buffer () const
 
virtual uint32_t content_length () const
 
virtual ItemSource item_source () 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
 
virtual unsigned long received_at () const
 

Private Attributes

std::shared_ptr< LibFlute::File > _file
 

Additional Inherited Members

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

Detailed Description

Definition at line 67 of file CacheItems.h.

Constructor & Destructor Documentation

◆ CachedFile()

MBMS_RT::CachedFile::CachedFile ( const std::string &  content_location,
unsigned long  received_at,
std::shared_ptr< LibFlute::File >  file 
)
inline

Definition at line 69 of file CacheItems.h.

72  , _file( file )
73  {}
CacheItem(const std::string &content_location, unsigned long received_at)
Definition: CacheItems.h:28
std::string content_location() const
Definition: CacheItems.h:59
virtual unsigned long received_at() const
Definition: CacheItems.h:60
std::shared_ptr< LibFlute::File > _file
Definition: CacheItems.h:79

◆ ~CachedFile()

virtual MBMS_RT::CachedFile::~CachedFile ( )
virtualdefault

Member Function Documentation

◆ buffer()

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

Implements MBMS_RT::CacheItem.

Definition at line 77 of file CacheItems.h.

77 { return _file->buffer(); };

◆ content_length()

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

Implements MBMS_RT::CacheItem.

Definition at line 78 of file CacheItems.h.

78 { return _file->length(); };

◆ item_source()

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

Implements MBMS_RT::CacheItem.

Definition at line 79 of file CacheItems.h.

◆ item_type()

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

Implements MBMS_RT::CacheItem.

Definition at line 76 of file CacheItems.h.

Member Data Documentation

◆ _file

std::shared_ptr<LibFlute::File> MBMS_RT::CachedFile::_file
private

Definition at line 82 of file CacheItems.h.


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