2 #include "zipios++/zipios-config.h"
26 cep_vec.reserve( _entries.size() ) ;
27 Entries::const_iterator cit ;
28 for ( cit = _entries.begin() ; cit != _entries.end() ; ++cit )
29 cep_vec.push_back( *cit ) ;
35 MatchPath matchpath )
const {
39 Entries::const_iterator iter ;
40 if ( matchpath == MATCH )
44 if ( iter == _entries.end() )
60 return _entries.size() ;
virtual string getName() const
Returns the name of the FileCollection.
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 ~FileCollection()
FileCollection destructor.
virtual ConstEntries entries() const
Returns a vector of const pointers to the entries in the FileCollection.
virtual int size() const
Returns the number of entries in the FileCollection.
Function object to be used with the STL find_if algorithm to find a FileEntry in a container,...
Function object to be used with the STL find_if algorithm to find a FileEntry in a container,...
An object member function may throw this exception, if the operation it normally performs is inapprop...
SimpleSmartPointer is a simple reference counting smart pointer template.
Header file that defines FileCollection.
vector< EntryPointer > ConstEntries
ConstEntries is a vector of ConstEntryPointer's.