Add a Config::is_in_list() method
This commit is contained in:
committed by
louiz’
parent
39a32d5524
commit
a429b2ea27
@@ -45,6 +45,11 @@ public:
|
||||
*/
|
||||
static int get_int(const std::string&, const int&);
|
||||
static bool get_bool(const std::string&, const bool);
|
||||
/**
|
||||
* Returns true if value is present in a colon-separated list, otherwise
|
||||
* false.
|
||||
*/
|
||||
static bool is_in_list(const std::string& option, const std::string& value);
|
||||
/**
|
||||
* Set a value for the given option. And write all the config
|
||||
* in the file from which it was read if save is true.
|
||||
|
||||
Reference in New Issue
Block a user