diff options
author | lloyd <[email protected]> | 2009-11-17 07:20:51 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-11-17 07:20:51 +0000 |
commit | 7a24783fd58b21e1ea59615025806663e5f231eb (patch) | |
tree | b77c685e0b54f82890947009631461bcfe5b6880 /src/utils/datastor/datastor.h | |
parent | e00b46cf9c1dcb364ebb7d5968d6ff9dcd600c4e (diff) | |
parent | 471847e2148776e62e4f580ade95572fc525c751 (diff) |
propagate from branch 'net.randombit.botan' (head 0ac5a29496b4e50775827d9655c064f6d1c98813)
to branch 'net.randombit.botan.c++0x' (head 3232da044d41756582b53da9d14c3ac07e9b2916)
Diffstat (limited to 'src/utils/datastor/datastor.h')
-rw-r--r-- | src/utils/datastor/datastor.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/utils/datastor/datastor.h b/src/utils/datastor/datastor.h index 7ee626fda..516d0a16b 100644 --- a/src/utils/datastor/datastor.h +++ b/src/utils/datastor/datastor.h @@ -9,6 +9,7 @@ #define BOTAN_DATA_STORE_H__ #include <botan/secmem.h> +#include <functional> #include <utility> #include <string> #include <vector> @@ -22,22 +23,10 @@ namespace Botan { class BOTAN_DLL Data_Store { public: - class BOTAN_DLL Matcher - { - public: - virtual bool operator()(const std::string&, - const std::string&) const = 0; - - virtual std::pair<std::string, std::string> - transform(const std::string&, const std::string&) const; - - virtual ~Matcher() {} - }; - bool operator==(const Data_Store&) const; - std::multimap<std::string, std::string> - search_with(const Matcher&) const; + std::multimap<std::string, std::string> search_for( + std::function<bool (std::string, std::string)> predicate) const; std::vector<std::string> get(const std::string&) const; |