| 73 | } |
| 74 | |
| 75 | void parseBoolean(const string& input, bool& output) |
| 76 | { |
| 77 | if (input == "true" || input == "yes" || input == "on" || input == "1") |
| 78 | output = true; |
| 79 | else if (input == "false" || input == "no" || input == "off" || input == "0") |
| 80 | output = false; |
| 81 | } |
| 82 | |
| 83 | void configError(CheckStatusWrapper* status, const string& type, const string& key, const string& value) |
| 84 | { |