Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

RTSPCacheDir Class Reference

#include <RTSPCacheDir.h>

Collaboration diagram for RTSPCacheDir:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RTSPCacheDir ()
 ~RTSPCacheDir ()
bool isCached (const MNString &URI)
CacheEntrygetEntry (const MNString &URI)
CacheEntrygetEntryWithToken (const MNString &URI)
CacheEntrygetEntryByFile (const MNString &filename)
bool releaseToken (const MNString &URI)
bool addEntry (const MNString &URI, const MNString &lpmoc, CacheEntry *Entry, bool save=true)
bool addEntry (const MNString &URI, const MNString &file, const MNString &lpmoc, SDPSessionDescription *SDP, bool save=true, long file_size=0)
bool delEntry (const MNString &URI)
bool setLocalFile (MNString file)
bool setSDP (const SDPSessionDescription &SDP)
bool setComplete (bool complete)
bool checkSpace (int32_t bwidth, int32_t duration, int64_t &file_size)
void setFileComplete (const char *filename, bool comp)
void setSpaceBytes (u_int64_t space)
bool removeFirstFile ()
bool removeFirstUnusedFile ()
u_int64_t getSpaceBytes () const

Constructor & Destructor Documentation

RTSPCacheDir::RTSPCacheDir  ) 
 

RTSPCacheDir::~RTSPCacheDir  ) 
 


Member Function Documentation

bool RTSPCacheDir::addEntry const MNString URI,
const MNString file,
const MNString lpmoc,
SDPSessionDescription SDP,
bool  save = true,
long  file_size = 0
 

bool RTSPCacheDir::addEntry const MNString URI,
const MNString lpmoc,
CacheEntry Entry,
bool  save = true
 

bool RTSPCacheDir::checkSpace int32_t  bwidth,
int32_t  duration,
int64_t &  file_size
 

Check whether there is enough caching space for the given bandwidth and duration to store a file.

Parameters:
bwidth The approximate bandwidth of the AV stream in kbit/second.
duration The approximate duration of the AV stream in seconds.
file_size OUT variable that contains the approximate required file size in bytes on return.
Return values:
true Indicates that there is enough space available.
false Indicates that there is either not enough space available or that it can't be used for some other reason.

bool RTSPCacheDir::delEntry const MNString URI  ) 
 

CacheEntry* RTSPCacheDir::getEntry const MNString URI  ) 
 

CacheEntry* RTSPCacheDir::getEntryByFile const MNString filename  ) 
 

CacheEntry* RTSPCacheDir::getEntryWithToken const MNString URI  ) 
 

u_int64_t RTSPCacheDir::getSpaceBytes  )  const
 

bool RTSPCacheDir::isCached const MNString URI  ) 
 

bool RTSPCacheDir::releaseToken const MNString URI  ) 
 

bool RTSPCacheDir::removeFirstFile  ) 
 

bool RTSPCacheDir::removeFirstUnusedFile  ) 
 

bool RTSPCacheDir::setComplete bool  complete  ) 
 

void RTSPCacheDir::setFileComplete const char *  filename,
bool  comp
 

bool RTSPCacheDir::setLocalFile MNString  file  ) 
 

bool RTSPCacheDir::setSDP const SDPSessionDescription SDP  ) 
 

void RTSPCacheDir::setSpaceBytes u_int64_t  space  ) 
 


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 13:36:10 2005 for Komssys by doxygen 1.3.8