src/core/config.h
changeset 2965 4b28e9740e3b
parent 2941 e1ff74674f87
child 3190 51fe9001a679
     1.1 --- a/src/core/config.h	Thu Apr 10 11:11:34 2008 -0700
     1.2 +++ b/src/core/config.h	Thu Apr 17 13:42:25 2008 -0700
     1.3 @@ -20,13 +20,15 @@
     1.4  #ifndef CONFIG_H
     1.5  #define CONFIG_H
     1.6  
     1.7 -#include "attribute.h"
     1.8  #include "ptr.h"
     1.9 -#include "object.h"
    1.10  #include <string>
    1.11  
    1.12  namespace ns3 {
    1.13  
    1.14 +class AttributeValue;
    1.15 +class Object;
    1.16 +class CallbackBase;
    1.17 +
    1.18  namespace Config {
    1.19  
    1.20  /**
    1.21 @@ -37,7 +39,7 @@
    1.22   * match the input path and will then set their value to the input
    1.23   * value.
    1.24   */
    1.25 -void Set (std::string path, Attribute value);
    1.26 +void Set (std::string path, const AttributeValue &value);
    1.27  /**
    1.28   * \param name the full name of the attribute
    1.29   * \param value the value to set.
    1.30 @@ -46,7 +48,7 @@
    1.31   * matching attribute. This method cannot fail: it will
    1.32   * crash if the input attribute name or value is invalid.
    1.33   */
    1.34 -void SetDefault (std::string name, Attribute value);
    1.35 +void SetDefault (std::string name, const AttributeValue &value);
    1.36  /**
    1.37   * \param name the full name of the attribute
    1.38   * \param value the value to set.
    1.39 @@ -55,21 +57,21 @@
    1.40   * This method overrides the initial value of the 
    1.41   * matching attribute. 
    1.42   */
    1.43 -bool SetDefaultFailSafe (std::string name, Attribute value);
    1.44 +bool SetDefaultFailSafe (std::string name, const AttributeValue &value);
    1.45  /**
    1.46   * \param name the name of the requested GlobalValue.
    1.47   * \param value the value to set
    1.48   *
    1.49   * This method is equivalent to GlobalValue::Bind
    1.50   */
    1.51 -void SetGlobal (std::string name, Attribute value);
    1.52 +void SetGlobal (std::string name, const AttributeValue &value);
    1.53  /**
    1.54   * \param name the name of the requested GlobalValue.
    1.55   * \param value the value to set
    1.56   *
    1.57   * This method is equivalent to GlobalValue::BindFailSafe
    1.58   */
    1.59 -bool SetGlobalFailSafe (std::string name, Attribute value);
    1.60 +bool SetGlobalFailSafe (std::string name, const AttributeValue &value);
    1.61  /**
    1.62   * \param path a path to match trace sources.
    1.63   * \param cb the callback to connect to the matching trace sources.