diff --git a/src/core/object-factory.cc b/src/core/object-factory.cc index 297e6132d..8c7f6158d 100644 --- a/src/core/object-factory.cc +++ b/src/core/object-factory.cc @@ -50,6 +50,12 @@ ObjectFactory::Set (std::string name, const AttributeValue &value) m_parameters.SetWithTid (m_tid, name, value); } +void +ObjectFactory::Set (const AttributeList &list) +{ + m_parameters = list; +} + TypeId ObjectFactory::GetTypeId (void) const { diff --git a/src/core/object-factory.h b/src/core/object-factory.h index 9ae305c08..d08977fd2 100644 --- a/src/core/object-factory.h +++ b/src/core/object-factory.h @@ -59,6 +59,8 @@ public: */ void Set (std::string name, const AttributeValue &value); + void Set (const AttributeList &list); + /** * \returns the currently-selected TypeId to use to create an object * instance.