4 #include "zipios++/zipios-config.h"
24 : _entries_loaded( false ), _recursive( true ) {}
34 bool recursive =
true,
35 bool load_now =
false ) ;
39 virtual void close() ;
44 MatchPath matchpath = MATCH )
const ;
49 MatchPath matchpath = MATCH ) ;
51 virtual int size()
const ;
59 mutable bool _entries_loaded ;
63 void loadEntries()
const ;
Header file that defines BasicEntry.
BasicEntry is a FileEntry that is suitable as a base class for basic entries, that e....
DirectoryCollection is a FileCollection that obtains its entries from a directory.
virtual ConstEntryPointer getEntry(const string &name, MatchPath matchpath=MATCH) const
Returns a ConstEntryPointer to a FileEntry object for the entry with the specified name.
virtual istream * getInputStream(const ConstEntryPointer &entry)
Returns a pointer to an opened istream for the specified FileEntry.
virtual FileCollection * clone() const
Create a heap allocated clone of the object this method is called for.
virtual void close()
Closes the FileCollection.
DirectoryCollection()
Default Constructor.
virtual ~DirectoryCollection()
Destructor.
virtual int size() const
Returns the number of entries in the FileCollection.
virtual ConstEntries entries() const
Returns a vector of const pointers to the entries in the FileCollection.
FileCollection is an abstract baseclass that represents a collection of files.
FilePath represents a path to a file or directory name.
SimpleSmartPointer is a simple reference counting smart pointer template.
Header file that defines FileCollection.
vector< EntryPointer > ConstEntries
ConstEntries is a vector of ConstEntryPointer's.
Header file that defines FilePath.