7 #ifndef __FWZIP_WRITEZIPARCHIVE_HPP__ 8 #define __FWZIP_WRITEZIPARCHIVE_HPP__ 10 #include "fwZip/config.hpp" 11 #include "fwZip/IWriteArchive.hpp" 15 #include <boost/filesystem/path.hpp> 31 ((( const ::boost::filesystem::path& ))((
const std::string&)(
""))),
32 std::make_shared<WriteZipArchive> );
44 FWZIP_API
WriteZipArchive( const ::boost::filesystem::path& archive,
const std::string& comment );
56 FWZIP_API
SPTR(std::ostream) createFile(const ::
boost::filesystem::path &path) override;
65 FWZIP_API
void putFile(const ::
boost::filesystem::path& sourceFile,
66 const ::
boost::filesystem::path& path) override;
74 FWZIP_API
bool createDir(const ::
boost::filesystem::path& path) override;
79 FWZIP_API const ::
boost::filesystem::path getArchivePath() const override;
83 ::
boost::filesystem::path m_archive;
85 std::
string m_comment;
This interface defines functions to write a file in an archive.
This file defines fwCore base macros.
This class defines functions to write a file in a zip archive.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
The namespace fwZip provides IO for compress/uncompress .zip files using zlib .