Class object used with the std::find_if() function.
More...
This function object is used with the STL find_if algorithm to find a FileEntry in a container, which name (as obtained with FileEntry::getName()) is identical to the name specified in the MatchName constructor.
Definition at line 60 of file filecollection.cpp.
| zipios::anonymous_namespace{filecollection.cpp}::MatchName::MatchName |
( |
std::string const & |
name | ) |
|
|
inlineexplicit |
This function saves the name to search in the FileCollection.
This class expect the name to be a full path and file name with extension. The full name has to match.
- Parameters
-
| [in] | name | The name of the file being searched. |
Definition at line 72 of file filecollection.cpp.
| bool zipios::anonymous_namespace{filecollection.cpp}::MatchName::operator() |
( |
FileEntry::pointer_t |
entry | ) |
const |
|
inline |
This function compares the full name of the entry with the saved full name. If equal, then it returns true. It is used with the std::find_if() function.
- Todo:
- We could transform that with lambda at some point.
- Parameters
-
| [in] | entry | The entry to compare with the MatchName. |
- Returns
- true if the name of the entry matches the MatchName.
Definition at line 90 of file filecollection.cpp.
| std::string const zipios::anonymous_namespace{filecollection.cpp}::MatchName::m_name |
|
private |
The documentation for this class was generated from the following file: