ACE_Filecache_Handle Class ReferenceAbstraction over a real file. This is meant to be the entry point into the Cached Virtual Filesystem. More...
Collaboration diagram for ACE_Filecache_Handle:
![]()
Detailed DescriptionAbstraction over a real file. This is meant to be the entry point into the Cached Virtual Filesystem.This is a cached filesystem implementation based loosely on the implementation of JAWS_File. The interfaces will be nearly the same. The under-the-hood implementation should hopefully be a much faster thing. These will be given their own implementations later. For now, we borrow the implementation provided by JAWS. On creation, the cache is checked, and reference count is incremented. On destruction, reference count is decremented. If the reference count is 0, the file is removed from the cache. E.g. 1, { ACE_Filecache_Handle foo("foo.html"); this->peer ().send (foo.address (), foo.size ()); } E.g. 2, { ACE_Filecache_Handle foo("foo.html"); io->transmitfile (foo.handle (), this->peer ().handle ()); } E.g. 3, { ACE_Filecache_Handle foo("foo.html", content_length); this->peer ().recv (foo.address (), content_length); } TODO: Member Enumeration Documentation
These come from ACE_Filecache_Object, which is an internal class.
Constructor & Destructor Documentation
Query cache for file, and acquire it. Assumes the file is being opened for reading.
Create new entry, and acquire it. Presence of SIZE assumes the file is being opened for writing. If SIZE is zero, assumes the file is to be removed from the cache.
Closes any open handles, release acquired file.
Default do nothing constructor. Prevent it from being called.
Member Function Documentation
Base address of memory mapped file.
A handle (e.g., UNIX file descriptor, or NT file handle).
Any associated error in handle creation and acquisition.
The size of the file.
Common initializations for constructors.
Member Data Documentation
A reference to the low level instance.
A <dup>'d version of the one from <file_>.
The documentation for this class was generated from the following files: Generated on Mon Sep 15 07:15:01 2008 for ACE by ![]() |