| 61 | |
| 62 | template<typename T> |
| 63 | void HandleUserWrite(const String& name, T *target, const T& value, bool readOnly) |
| 64 | { |
| 65 | if (readOnly) |
| 66 | BOOST_THROW_EXCEPTION(ScriptError("Configuration attribute '" + name + "' is read-only.")); |
| 67 | |
| 68 | *target = value; |
| 69 | } |
| 70 | |
| 71 | String Configuration::GetApiBindHost() const |
| 72 | { |
no test coverage detected