15 #include "rofl/common/cparam.h"
16 #include "rofl/common/logging.h"
22 std::map<std::string, cparam> params;
56 clear() { params.clear(); };
61 std::map<std::string, cparam>&
62 set_params() {
return params; };
67 std::map<std::string, cparam>
const&
68 get_params()
const {
return params; };
74 add_param(std::string
const& key);
80 drop_param(std::string
const& key);
86 set_param(std::string
const& key);
92 get_param(std::string
const& key)
const;
98 has_param(std::string
const& key)
const;
103 operator<< (std::ostream& os,
cparams const& p) {
104 os <<
rofl::indent(0) <<
"<cparams #params: " << p.params.size() <<
" >" << std::endl;
106 for (std::map<std::string, cparam>::const_iterator
107 it = p.params.begin(); it != p.params.end(); ++it) {
108 os <<
rofl::indent(0) <<
"<key: \"" << it->first <<
"\" >" << std::endl;