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