2 #ifndef ZIPIOS_COLLECTIONCOLLECTION_HPP
3 #define ZIPIOS_COLLECTIONCOLLECTION_HPP
51 virtual void close()
override;
55 virtual size_t size()
const override;
A collection of collections.
bool addCollection(FileCollection const &collection)
Add a FileCollection to this CollectionCollection.
std::shared_ptr< FileCollection > pointer_t
virtual size_t size() const override
Return the size of the of this collection.
virtual ~CollectionCollection() override
Clean up this CollectionCollection object.
virtual void close() override
Close the CollectionCollection object.
virtual stream_pointer_t getInputStream(std::string const &entry_name, MatchPath matchpath=MatchPath::MATCH) override
Retrieve pointer to an istream.
CollectionCollection & operator=(CollectionCollection const &src)
Copy assignment operator.
std::shared_ptr< std::istream > stream_pointer_t
A shared pointer to an input stream.
std::vector< pointer_t > vector_t
Define the zipios::FileCollection class.
CollectionCollection()
Initialize a CollectionCollection object.
virtual void mustBeValid() const
Check whether the collection is valid.
virtual FileEntry::vector_t entries() const override
Retrieve a vector to all the collection entries.
Base class for various file collections.
virtual FileEntry::pointer_t getEntry(std::string const &name, MatchPath matchpath=MatchPath::MATCH) const override
Get an entry from the collection.
virtual pointer_t clone() const override
Create a clone of this object.
std::shared_ptr< FileEntry > pointer_t
std::vector< pointer_t > vector_t