Added csv parameter listing to get_global_parameter

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-07-07 20:08:51 +02:00
parent 6c3cc004de
commit 67d85f72e1
4 changed files with 28 additions and 12 deletions

View File

@@ -120,6 +120,16 @@ std::string get_parameter_information(int key, std::string info)
}
}
/// Return a list of parameters
std::string get_csv_parameter_list()
{
std::vector<std::string> strings;
for(std::map<std::string,int>::iterator it = parameter_info.index_map.begin(); it != parameter_info.index_map.end(); ++it )
{
strings.append(it->first);
}
return strjoin(strings, ",");
}
int get_parameter_index(const std::string &param_name)
{
std::map<std::string, int>::iterator it;