Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members

CHMFSHandler Class Reference

CHM filesystem handler class. More...

#include <chmfshandler.h>

Inheritance diagram for CHMFSHandler:

wxFileSystemHandler List of all members.

Public Member Functions

 CHMFSHandler ()
 Doesn't do anything but needs to be here because of the private copy constructor.

 ~CHMFSHandler ()
 Cleanup code. This calls CHMInputStream's Cleanup().

virtual bool CanOpen (const wxString &location)
 Checks if it can open the file passed in location.

virtual wxFSFile * OpenFile (wxFileSystem &fs, const wxString &location)
 Tries to open the file specified.


Private Member Functions

 CHMFSHandler (const CHMFSHandler &)
 No copy construction.

CHMFSHandleroperator= (const CHMFSHandler &)
 No assignment.


Detailed Description

CHM filesystem handler class.


Member Function Documentation

bool CHMFSHandler::CanOpen const wxString &  location  )  [virtual]
 

Checks if it can open the file passed in location.

Parameters:
location File to open.
Returns:
true if location is in the form "file:filename.chm#chm:/file_inside_archive.extension", false otherwise. Does not attempt to actually open the file.

virtual wxFSFile* CHMFSHandler::OpenFile wxFileSystem &  fs,
const wxString &  location
[virtual]
 

Tries to open the file specified.

Parameters:
fs Currently ignored.
location filename.
Returns:
A valid pointer to a wxFSFile or NULL on failure.


The documentation for this class was generated from the following files:
Generated on Wed Jul 7 12:46:01 2004 for xCHM by doxygen 1.3.3