-}
-
-PropertyHolder::~PropertyHolder() {
- xbt_dict_free(&p_properties);
-}
-
-/** @brief Return the property associated to the provided key (or NULL if not existing) */
-const char *PropertyHolder::getProperty(const char*key) {
- if (p_properties == NULL)
- return NULL;
- return (const char*) xbt_dict_get_or_null(p_properties,key);
+ if (not properties_)
+ return nullptr;
+ auto prop = properties_->find(key);
+ return prop == properties_->end() ? nullptr : prop->second.c_str();