#include <include/EDoc/ArchiveIFace.h>
Inheritance diagram for EDoc::ArchiveIFace:
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< ManagedFile > | ReadExtractAll (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. |
EDoc::ArchiveIFace::~ArchiveIFace | ( | ) | [inline, virtual] |
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.
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.