EDoc::ArchiveIFace Class Reference

#include <include/EDoc/ArchiveIFace.h>

Inheritance diagram for EDoc::ArchiveIFace:

EDoc::DirectoryArchive EDocBFD::BFDArchive

Detailed Description

Standard interface for accessing files inside different types of archives.

An archive is considerd a group of one or more files. Current existing archives used for EDoc might include:

Definition at line 41 of file ArchiveIFace.h.

Public Member Functions

virtual ~ArchiveIFace ()
 Destructor.
virtual bool HandlesType (const ManagedFile &arch_filename)=0
 Returns true if this factory type can process the given archive.
virtual std::list< ManagedFileReadExtractAll (const ManagedFile &arch_filename)=0
 Extracts all files from archive and returns a list of ManagedFile object to those extracted files.
virtual ManagedFile WriteOpen (const ManagedFile &arch_filename, std::string item_filename="default.edc")=0
 Returns a ManagedFile instance for a file that can be written to in the archive.


Constructor & Destructor Documentation

EDoc::ArchiveIFace::~ArchiveIFace (  )  [inline, virtual]

Destructor.

Note:
EDoc++ data included.

Definition at line 48 of file ArchiveIFace.h.


Member Function Documentation

EDoc::ArchiveIFace::HandlesType ( const ManagedFile arch_filename  )  [pure virtual]

Returns true if this factory type can process the given archive.

Implemented in EDoc::DirectoryArchive, and EDocBFD::BFDArchive.

EDoc::ArchiveIFace::ReadExtractAll ( const ManagedFile arch_filename  )  [pure virtual]

Extracts all files from archive and returns a list of ManagedFile object to those extracted files.

Exceptions:
EDoc::EOFException 
EDoc::FileIOException 
EDocBFD::BFDException 

Implemented in EDoc::DirectoryArchive, and EDocBFD::BFDArchive.

EDoc::ArchiveIFace::WriteOpen ( const ManagedFile arch_filename,
std::string  item_filename = "default.edc" 
) [pure virtual]

Returns a ManagedFile instance for a file that can be written to in the archive.

Many archive formats will return a temporary file that can be written to and will then insert the contents of the temporay file into the archive when the ManagedFile object is destroyed. This is not always the case though for example the DirectoryArchive will just return a reference to a writable file itself.

Implemented in EDoc::DirectoryArchive, and EDocBFD::BFDArchive.


The documentation for this class was generated from the following files:
Generated on Tue Jan 20 18:26:08 2009 for EDoc-0.2.1 by  doxygen 1.5.1