#pragma region CPL License /* Nuclex Native Framework Copyright (C) 2002-2013 Nuclex Development Labs This library is free software; you can redistribute it and/or modify it under the terms of the IBM Common Public License as published by the IBM Corporation; either version 1.0 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the IBM Common Public License for more details. You should have received a copy of the IBM Common Public License along with this library */ #pragma endregion // CPL License #ifndef NUCLEX_STORAGE_FILESYSTEM_SEVENZIP_SEVENZIPPEDCONTAINER_H #define NUCLEX_STORAGE_FILESYSTEM_SEVENZIP_SEVENZIPPEDCONTAINER_H #include "Nuclex/Storage/Config.h" #include "../Generic/GenericArchivedContainer.h" #include namespace Nuclex { namespace Storage { namespace FileSystem { namespace SevenZip { // ------------------------------------------------------------------------------------------- // //class SevenZippedContainer; class SevenZippedFile; class SevenZipDirectoryReader; // ------------------------------------------------------------------------------------------- // }}}} // namespace Nuclex::Storage::FileSystem::SevenZip namespace Nuclex { namespace Storage { namespace FileSystem { namespace SevenZip { // ------------------------------------------------------------------------------------------- // /// Represents a folder in a 7-zip archive as a container class SevenZippedContainer : public GenericArchivedContainer< SevenZippedContainer, SevenZippedFile > { friend class SevenZipDirectoryReader; #if 0 /// Smart pointer to a zipped container private: typedef std::shared_ptr SevenZippedContainerPointer; /// Smart pointer to a zipped file private: typedef std::shared_ptr SevenZippedFilePointer; /// Smart pointer to a constant container private: typedef std::shared_ptr ConstContainerPointer; /// Smart pointer to a container private: typedef std::shared_ptr ContainerPointer; /// Smart pointer to a constant file private: typedef std::shared_ptr ConstFilePointer; /// Smart pointer to a file private: typedef std::shared_ptr FilePointer; /// Map of file names to 7-zipped file informations private: typedef std::map SevenZippedFileMap; /// Map of file names to 7-zipped file informations private: typedef std::map SevenZippedContainerMap; #endif /// Initializes a new 7-zip archive based container /// Codecs used to open nested archives /// Native path of directory in the 7-zip archive /// Name of the container inside the file public: SevenZippedContainer( const std::shared_ptr &codecs, const std::string &nativePath, const std::string &name ); /// Destroys the 7-zipped folder interface public: virtual ~SevenZippedContainer(); #if 0 /// Adds a container as a child of this container /// Container that will be stored inside this container protected: void AddContainer(const std::shared_ptr &container); /// Adds a file as a child of this container /// File that will be stored inside this container protected: void AddFile(const std::shared_ptr &file); #endif }; // ------------------------------------------------------------------------------------------- // }}}} // namespace Nuclex::Storage::FileSystem::SevenZip #endif // NUCLEX_STORAGE_FILESYSTEM_SEVENZIP_SEVENZIPPEDCONTAINER_H