28 #include <boost/multi_index_container.hpp>
29 #include <boost/multi_index/ordered_index.hpp>
30 #include <boost/multi_index/member.hpp>
34 namespace graphene {
namespace wallet {
45 using method_description_set = boost::multi_index::multi_index_container<
method_description,
46 boost::multi_index::indexed_by<
47 boost::multi_index::ordered_unique<
48 boost::multi_index::member<method_description, std::string, &method_description::method_name> > > >;
49 method_description_set method_descriptions;
54 auto iter = method_descriptions.find(method_name);
55 if (iter != method_descriptions.end())
56 return iter->brief_description;
58 FC_THROW_EXCEPTION(fc::key_not_found_exception,
"No entry for method ${name}", (
"name", method_name));
62 auto iter = method_descriptions.find(method_name);
63 if (iter != method_descriptions.end())
64 return iter->detailed_description;
66 FC_THROW_EXCEPTION(fc::key_not_found_exception,
"No entry for method ${name}", (
"name", method_name));
70 std::vector<std::string> method_names;