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);