2 #ifndef ZIPIOS_DIRECTORYCOLLECTION_HPP
3 #define ZIPIOS_DIRECTORYCOLLECTION_HPP
49 virtual void close()
override;
53 virtual size_t size()
const override;
std::shared_ptr< FileCollection > pointer_t
virtual FileEntry::vector_t entries() const override
Retrieve a vector to the collection entries.
void loadEntries() const
This is an internal function that loads the file entries.
std::shared_ptr< std::istream > stream_pointer_t
A shared pointer to an input stream.
A collection generated from reading a directory.
Define the zipios::FileCollection class.
virtual size_t size() const override
Return the number of entries defined in this collection.
virtual void close() override
Close the directory collection.
virtual pointer_t clone() const override
Create another DirectoryCollection.
DirectoryCollection()
Initialize a DirectoryCollection object.
Define the zipios::DirectoryEntry class.
void load(FilePath const &subdir)
This is the function loading all the file entries.
Handle a file path and name and its statistics.
virtual ~DirectoryCollection() override
Clean up a DirectoryCollection object.
Base class for various file collections.
virtual stream_pointer_t getInputStream(std::string const &entry_name, MatchPath matchpath=MatchPath::MATCH) override
Retrieve pointer to an istream.
virtual FileEntry::pointer_t getEntry(std::string const &name, MatchPath matchpath=MatchPath::MATCH) const override
Get an entry from the collection.
std::shared_ptr< FileEntry > pointer_t
std::vector< pointer_t > vector_t