zipios++
2.0.2
Zipios++ – a small C++ library that provides easy access to .zip files.
|
Class object used with the std::find_if() function. More...
Public Member Functions | |
MatchFileName (std::string const &name) | |
Initialize a MatchFileName object. More... | |
bool | operator() (FileEntry::pointer_t entry) const |
Compare an entry to this MatchFileName. More... | |
Private Attributes | |
std::string const | m_name |
This function object is used with the STL find_if algorithm to find a FileEntry in a container, which name (as obtained with FileEntry::getFileName()) is identical to the name specified in the MatchFileName constructor.
Definition at line 111 of file filecollection.cpp.
|
inlineexplicit |
This function saves the base name to search in the FileCollection.
This class expect the name to be a base file name, eventually with an extension. If the name includes a slash then the search will always fail.
[in] | name | The name of the file being searched. |
Definition at line 125 of file filecollection.cpp.
|
inline |
This function compares the base name of the entry with the saved base name. If equal, then it returns true. It is used with the std::find_if() function.
[in] | entry | The entry to compare with the MatchFileName. |
Definition at line 143 of file filecollection.cpp.
|
private |
Definition at line 149 of file filecollection.cpp.