src/core/config.h
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sun, 09 Mar 2008 21:07:14 +0100
changeset 2570 15d5421022a1
parent 2569 d5cff2968984
child 2585 b74a38fc7a9a
permissions -rw-r--r--
add FailSafe versions of setters which could fail.
     1 #ifndef CONFIG_H
     2 #define CONFIG_H
     3 
     4 #include "attribute.h"
     5 #include "ptr.h"
     6 #include "object.h"
     7 #include <string>
     8 
     9 namespace ns3 {
    10 
    11 namespace Config {
    12 
    13 void Set (std::string path, Attribute value);
    14 void SetDefault (std::string name, Attribute value);
    15 bool SetDefaultFailSafe (std::string name, Attribute value);
    16 void SetGlobal (std::string name, Attribute value);
    17 bool SetGlobalFailSafe (std::string name, Attribute value);
    18 void Connect (std::string path, const CallbackBase &cb);
    19 void Disconnect (std::string path, const CallbackBase &cb);
    20 void ConnectWithContext (std::string path, const CallbackBase &cb);
    21 void DisconnectWithContext (std::string path, const CallbackBase &cb);
    22 
    23 void RegisterRootNamespaceObject (Ptr<Object> obj);
    24 void UnregisterRootNamespaceObject (Ptr<Object> obj);
    25 
    26 } // namespace Config
    27 
    28 } // namespace ns3
    29 
    30 #endif /* CONFIG_H */