24   const std::string &key = getUsedName(str);
 
   25   for (std::list<std::pair<std::string, tlp::DataType *>>::const_iterator it = data.begin();
 
   26        it != data.end(); ++it) {
 
   27     if (it->first == key) {
 
   28       value = *(
static_cast<T *
>(it->second->value));
 
   41   for (std::list<std::pair<std::string, tlp::DataType *>>::const_iterator it = data.begin();
 
   42        it != data.end(); ++it) {
 
   47     if (it->first == oldKey) {
 
   48       tlp::warning() << 
"Warning: '" << oldKey.c_str() << 
"' is a deprecated DataSet key. Use '" 
   49                      << key.c_str() << 
"' instead." << std::endl;
 
   50       value = *(
static_cast<T *
>(it->second->value));
 
   53     if (it->first == key) {
 
   54       value = *(
static_cast<T *
>(it->second->value));
 
   63   const std::string &key = getUsedName(str);
 
   64   for (std::list<std::pair<std::string, tlp::DataType *>>::iterator it = data.begin();
 
   65        it != data.end(); ++it) {
 
   67     if (it->first == key) {
 
   68       value = *(
static_cast<T *
>(it->second->value));
 
   80   TypedData<T> dtc(
new T(value));
 
   87   TypedData<T> dtc(
new T(value));
 
   89   addDeprecated(oldKey, key);
 
bool getDeprecated(const std::string &key, const std::string &oldKey, T &value) const
Returns the stored value associated with the given key or the deprecated version of the key The store...
 
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 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 getAndFree(const std::string &key, T &value)
Returns the stored value, and deletes the stored copy. If no value is found, nothing is deleted.
 
void setDeprecated(const std::string &key, const std::string &deprecatedKey, const T &value)
Stores a copy of the given param, associated with a key and a deprected version of the key The value ...