X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fcore%2Futil%2FEnvironment.hpp;fp=include%2Fanna%2Fcore%2Futil%2FEnvironment.hpp;h=32f4282a442e3b49019a3ab758e71a3d5a102999;hp=f236a3e7339a301e6a240fd52fdd9f90c22eb9de;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/core/util/Environment.hpp b/include/anna/core/util/Environment.hpp index f236a3e..32f4282 100644 --- a/include/anna/core/util/Environment.hpp +++ b/include/anna/core/util/Environment.hpp @@ -34,7 +34,7 @@ public: @param envp Environment array passed on main function as third argument. Cache data is cleared if NULL passed, allowing to get current environment values for variables. */ - void initialize(char **envp = NULL) throw(); + void initialize(char **envp = NULL) ; /** Return associated value (could be empty). This value could be cached at initialization (envp array from main function), if not, would be @@ -45,8 +45,8 @@ public: @return Environment value. */ - std::string getValue(const char* variableName, bool exceptionIfMissing = false) throw(RuntimeException); - std::string getValue(const std::string &variableName, bool exceptionIfMissing = false) throw(RuntimeException); + std::string getValue(const char* variableName, bool exceptionIfMissing = false) noexcept(false); + std::string getValue(const std::string &variableName, bool exceptionIfMissing = false) noexcept(false); /** Sets an environment variable. If an empty variable name is provided, or environment set operation fails, @@ -56,7 +56,7 @@ public: @param value Variable value @param overwrite Overwrite an existing variable name/value or keep old value if exists */ - void setVariable(const std::string &name, const std::string &value, bool overwrite = true) throw(RuntimeException); + void setVariable(const std::string &name, const std::string &value, bool overwrite = true) noexcept(false); /** Unsets an environment variable (different than set empty string). If an empty variable name is provided, @@ -64,7 +64,7 @@ public: @param name Variable name. If empty, nothing is done. */ - void unsetVariable(const std::string &name) throw(RuntimeException); + void unsetVariable(const std::string &name) noexcept(false); private: