From 4f4bec026b4831f4176784c8e8122c9cff171e83 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 11 Jun 2008 16:18:38 -0700 Subject: [PATCH] add missing Setter --- src/core/object-factory.cc | 6 ++++++ src/core/object-factory.h | 2 ++ 2 files changed, 8 insertions(+) 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.