src/core/object-factory.h
changeset 2395 ffd1c96afe4b
child 2433 3a98e1db7f80
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/core/object-factory.h	Fri Feb 08 02:22:04 2008 +0100
@@ -0,0 +1,30 @@
+#ifndef OBJECT_FACTORY_H
+#define OBJECT_FACTORY_H
+
+#include "value.h"
+#include "object.h"
+
+namespace ns3 {
+
+class ObjectFactory
+{
+public:
+  ObjectFactory ();
+
+  void SetTypeId (TypeId tid);
+  void SetTypeId (std::string tid);
+  void Set (std::string name, PValue value);
+  void Set (std::string name, std::string value);
+
+  TypeId GetTypeId (void) const;
+
+  Ptr<Object> Create (void) const;
+
+private:
+  TypeId m_tid;
+  Parameters m_parameters;
+};
+
+} // namespace ns3
+
+#endif /* OBJECT_FACTORY_H */