X-Git-Url: http://git.home-dn.net/?p=manu%2Fsuphp.git;a=blobdiff_plain;f=src%2FEnvironment.hpp;fp=src%2FEnvironment.hpp;h=febaf2d923facd54a544ae02105448a0235b39ef;hp=c50cf0331bf793485de270e8eab313173763fb43;hb=849f4a7977b5780eacae8fad7a078d05f4a615ee;hpb=b0eaa3f1fbf491fdc8a3044cf20754f14254338a diff --git a/src/Environment.hpp b/src/Environment.hpp index c50cf03..febaf2d 100644 --- a/src/Environment.hpp +++ b/src/Environment.hpp @@ -37,46 +37,46 @@ namespace suPHP { */ class Environment { private: - std::map vars; - + std::map vars; + public: - /** - * Returns (copy of) variable content - */ - std::string getVar(const std::string& name) const - throw (KeyNotFoundException); + /** + * Returns (copy of) variable content + */ + std::string getVar(const std::string& name) const + throw (KeyNotFoundException); - /** - * Sets variable content - */ - void setVar(const std::string name, const std::string content) - throw (KeyNotFoundException); + /** + * Sets variable content + */ + void setVar(const std::string name, const std::string content) + throw (KeyNotFoundException); - /** - * Adds variable to environment - */ - void putVar(const std::string name, const std::string content); - - /** - * Deletes variable from environment - */ - void deleteVar(const std::string& name) throw (KeyNotFoundException); - - /** - * Checks whether a variable is set - */ - bool hasVar(const std::string& name) const; - - /** - * Returns reference to variable with name - */ - std::string& operator[](const std::string& name) - throw (KeyNotFoundException); + /** + * Adds variable to environment + */ + void putVar(const std::string name, const std::string content); + + /** + * Deletes variable from environment + */ + void deleteVar(const std::string& name) throw (KeyNotFoundException); + + /** + * Checks whether a variable is set + */ + bool hasVar(const std::string& name) const; + + /** + * Returns reference to variable with name + */ + std::string& operator[](const std::string& name) + throw (KeyNotFoundException); - /** - * Returns const reference to the map which stores the variables - */ - const std::map& getBackendMap() const; + /** + * Returns const reference to the map which stores the variables + */ + const std::map& getBackendMap() const; }; };