CachedURL Class Reference

Stores information about cached URLs. More...

#include <cached_url.h>

Inheritance diagram for CachedURL:
zmm::Object

Public Member Functions

 CachedURL (int object_id, zmm::String url)
 Creates a cached url object.
int getObjectID ()
 Retrieves the object id.
zmm::String getURL ()
 Retrieves the cached URL.
time_t getCreationTime ()
 Retrieves the time when the object was created.
time_t getLastAccessTime ()
 Retrieves the time when the last access time of the data.
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

static void * operator new (size_t size)
static void operator delete (void *ptr)

Protected Attributes

int object_id
zmm::String url
time_t creation_time
time_t last_access_time
zmm::Ref< Mutexmutex
mt_atomic_t _ref_count

Detailed Description

Stores information about cached URLs.

Definition at line 41 of file cached_url.h.


Constructor & Destructor Documentation

CachedURL::CachedURL ( int  object_id,
zmm::String  url 
)

Creates a cached url object.

Definition at line 43 of file cached_url.cc.

References _, _Exception, creation_time, last_access_time, mt_strerror(), mutex, and NULL.


Member Function Documentation

time_t CachedURL::getCreationTime (  ) 

Retrieves the time when the object was created.

Definition at line 74 of file cached_url.cc.

References creation_time.

time_t CachedURL::getLastAccessTime (  ) 

Retrieves the time when the last access time of the data.

Definition at line 80 of file cached_url.cc.

References AUTOLOCK, last_access_time, and mutex.

int CachedURL::getObjectID (  ) 

Retrieves the object id.

Definition at line 57 of file cached_url.cc.

References object_id.

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

References zmm::Object::_ref_count, and atomic_get().

String CachedURL::getURL (  ) 

Retrieves the cached URL.

Definition at line 62 of file cached_url.cc.

References _, _Exception, AUTOLOCK, last_access_time, mt_strerror(), mutex, NULL, and url.

void Object::operator delete ( void *  ptr  )  [static, inherited]

Definition at line 87 of file object.cc.

References FREE.

void * Object::operator new ( size_t  size  )  [static, inherited]

Definition at line 83 of file object.cc.

References MALLOC.

void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]

Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
time_t CachedURL::creation_time [protected]

Definition at line 62 of file cached_url.h.

Referenced by CachedURL(), and getCreationTime().

time_t CachedURL::last_access_time [protected]

Definition at line 63 of file cached_url.h.

Referenced by CachedURL(), getLastAccessTime(), and getURL().

Reimplemented from zmm::Object.

Definition at line 65 of file cached_url.h.

Referenced by CachedURL(), getLastAccessTime(), and getURL().

int CachedURL::object_id [protected]

Definition at line 60 of file cached_url.h.

Referenced by getObjectID().

Definition at line 61 of file cached_url.h.

Referenced by getURL().


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

Generated on Fri Mar 26 20:16:56 2010 for MediaTomb by  doxygen 1.6.1