Public Member Functions | Static Public Member Functions

gnash::Cache Class Reference

#include <cache.h>

List of all members.

Public Member Functions

 Cache ()
 ~Cache ()
void DSOEXPORT addPath (const std::string &name, const std::string &fullpath)
std::string & findPath (const std::string &name)
void removePath (const std::string &name)
void addResponse (const std::string &name, const std::string &response)
std::string & findResponse (const std::string &name)
void removeResponse (const std::string &name)
void addFile (const std::string &name, boost::shared_ptr< DiskStream > &file)
boost::shared_ptr< DiskStream > & findFile (const std::string &name)
void removeFile (const std::string &name)
void dump () const
 Dump the internal data of this class in a human readable form.
void dump (std::ostream &os) const

Static Public Member Functions

static DSOEXPORT CachegetDefaultInstance ()

Constructor & Destructor Documentation

gnash::Cache::Cache (  ) 

References CLOCK_REALTIME.

gnash::Cache::~Cache (  ) 

Member Function Documentation

void gnash::Cache::addFile ( const std::string &  name,
boost::shared_ptr< DiskStream > &  file 
)
void gnash::Cache::addPath ( const std::string &  name,
const std::string &  fullpath 
)
void gnash::Cache::addResponse ( const std::string &  name,
const std::string &  response 
)
void gnash::Cache::dump (  )  const [inline]

Dump the internal data of this class in a human readable form.

Remarks:
This should only be used for debugging purposes.

References dump().

Referenced by dump(), and gnash::operator<<().

void gnash::Cache::dump ( std::ostream &  os  )  const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

References name.

boost::shared_ptr< DiskStream > & gnash::Cache::findFile ( const std::string &  name  ) 
string & gnash::Cache::findPath ( const std::string &  name  ) 

References CLOCK_REALTIME.

string & gnash::Cache::findResponse ( const std::string &  name  ) 
Cache & gnash::Cache::getDefaultInstance (  )  [static]

References s2x::c.

void gnash::Cache::removeFile ( const std::string &  name  ) 
void gnash::Cache::removePath ( const std::string &  name  ) 
void gnash::Cache::removeResponse ( const std::string &  name  ) 

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