23 for (std::list< std::pair<std::string, tlp::DataType*> >::const_iterator it =
24 data.begin(); it != data.end(); ++it) {
25 const std::pair<std::string, tlp::DataType*> &p = *it;
28 value = *((T*) p.second->value);
37 for (std::list< std::pair<std::string, tlp::DataType*> >::iterator it =
38 data.begin(); it != data.end(); ++it) {
39 std::pair<std::string, tlp::DataType *> &p = *it;
42 value = *((T*) p.second->value);
54 TypedData<T> dtc(
new T(value));
void set(const std::string &key, const T &value)
Stores a copy of the given param, associated with the key. The value must have a well-formed copy con...
bool get(const std::string &key, T &value) const
Returns the stored value associated with the given key. The stored value is a copy of the original va...
void setData(const std::string &str, const DataType *value)
Set from an untyped value.
bool getAndFree(const std::string &key, T &value)
Returns the stored value, and deletes the stored copy. If no value is found, nothing is deleted...