/* * Data Store * (C) 1999-2007 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_DATA_STORE_H_ #define BOTAN_DATA_STORE_H_ #include #include #include #include #include namespace Botan { /** * Data Store * * This class is used internally by the library, and exposed for ABI * reasons. There is no reason for applications to use this type directly. * It will be removed in a future major release. */ class BOTAN_PUBLIC_API(2,0) Data_Store { public: /** * A search function */ bool operator==(const Data_Store&) const; std::multimap search_for( std::function predicate) const; std::vector get(const std::string&) const; std::string get1(const std::string& key) const; std::string get1(const std::string& key, const std::string& default_value) const; std::vector get1_memvec(const std::string&) const; uint32_t get1_uint32(const std::string&, uint32_t = 0) const; bool has_value(const std::string&) const; void add(const std::multimap&); void add(const std::string&, const std::string&); void add(const std::string&, uint32_t); void add(const std::string&, const secure_vector&); void add(const std::string&, const std::vector&); private: std::multimap m_contents; }; } #endif