Mercurial > archived > louis > epitech > zia-api
changeset 10:57b2a2925db8
[API] Update IHeader
author | daedric <d43dr1c@gmail.com> |
---|---|
date | Sat, 20 Mar 2010 14:45:44 +0100 |
parents | da81cc7c2590 |
children | 4588540b0cf3 3998a5997e02 |
files | src/include/http/IHeader.hpp |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/include/http/IHeader.hpp Sat Mar 20 11:48:34 2010 +0100 +++ b/src/include/http/IHeader.hpp Sat Mar 20 14:45:44 2010 +0100 @@ -20,7 +20,6 @@ { typedef std::string Key; typedef std::string Value; - typedef std::map<Key, Value> Map; public: @@ -29,12 +28,12 @@ /** * @brief Get value associated with a key * @param [in] k the key - * @return the value associated with the key - * if there is no value for the given key, an empty string - * is returned. + * @param [in,out] value where the value will be copied + * @return if the key does not exists return false + * otherwise return true */ - virtual const Value & getValue(const Key & k) const = 0; + virtual bool getValue(const Key & k, Value & value) const = 0; /** @@ -45,7 +44,7 @@ * is returned. */ - virtual Value & value(const Key & k) = 0; + virtual void setValue(const Key & k, const Value & value) = 0; /** * @brief operator overloading to facilitate header access.