src/core/object-factory.h
changeset 2965 4b28e9740e3b
parent 2952 d5047d6ce4ce
child 2969 9d05d2a95dfa
equal deleted inserted replaced
2964:4e8cb1577144 2965:4b28e9740e3b
    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    */