equal
deleted
inserted
replaced
18 * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
18 * Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
19 */ |
19 */ |
20 #ifndef OBJECT_FACTORY_H |
20 #ifndef OBJECT_FACTORY_H |
21 #define OBJECT_FACTORY_H |
21 #define OBJECT_FACTORY_H |
22 |
22 |
23 #include "attribute.h" |
23 #include "attribute-list.h" |
24 #include "object.h" |
24 #include "object.h" |
|
25 #include "type-id.h" |
25 |
26 |
26 namespace ns3 { |
27 namespace ns3 { |
|
28 |
|
29 class AttributeValue; |
27 |
30 |
28 /** |
31 /** |
29 * \brief instantiate subclasses of ns3::Object. |
32 * \brief instantiate subclasses of ns3::Object. |
30 * |
33 * |
31 * This class can also hold a set of attributes to set |
34 * This class can also hold a set of attributes to set |
50 void SetTypeId (std::string tid); |
53 void SetTypeId (std::string tid); |
51 /** |
54 /** |
52 * \param name the name of the attribute to set during object construction |
55 * \param name the name of the attribute to set during object construction |
53 * \param value the value of the attribute to set during object construction |
56 * \param value the value of the attribute to set during object construction |
54 */ |
57 */ |
55 void Set (std::string name, Attribute value); |
58 void Set (std::string name, const AttributeValue &value); |
56 |
59 |
57 /** |
60 /** |
58 * \returns the currently-selected TypeId to use to create an object |
61 * \returns the currently-selected TypeId to use to create an object |
59 * instance. |
62 * instance. |
60 */ |
63 */ |