7 #ifndef __FWZIP_IWRITEARCHIVE_HPP__ 8 #define __FWZIP_IWRITEARCHIVE_HPP__ 12 #include <boost/filesystem/path.hpp> 38 virtual SPTR(std::ostream)
createFile(const ::boost::filesystem::path &path) = 0;
45 virtual void putFile(const ::boost::filesystem::path& sourceFile, const ::boost::filesystem::path& path) = 0;
51 virtual bool createDir(const ::boost::filesystem::path& path) = 0;
56 virtual const ::boost::filesystem::path
getArchivePath()
const = 0;
virtual std::shared_ptr< std::ostream > createFile(const ::boost::filesystem::path &path)=0
Creates a new file entry in archive and returns output stream for this file.
This interface defines functions to write a file in an archive.
This file defines fwCore base macros.
virtual const ::boost::filesystem::path getArchivePath() const =0
Returns archive path.
virtual void putFile(const ::boost::filesystem::path &sourceFile, const ::boost::filesystem::path &path)=0
Writes source file in archive.
virtual bool createDir(const ::boost::filesystem::path &path)=0
Creates a folder in archive.
The namespace fwZip provides IO for compress/uncompress .zip files using zlib .
#define fwCoreBaseClassDefinitionsMacro(_classinfo_)
Generate common code for a base class (Interfaces, Abstract classes, ...)