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.
mathieu@2474
     1
#ifndef CONFIG_H
mathieu@2474
     2
#define CONFIG_H
mathieu@2474
     3
mathieu@2474
     4
#include "attribute.h"
mathieu@2474
     5
#include "ptr.h"
mathieu@2474
     6
#include "object.h"
mathieu@2474
     7
#include <string>
mathieu@2474
     8
mathieu@2474
     9
namespace ns3 {
mathieu@2474
    10
mathieu@2474
    11
namespace Config {
mathieu@2474
    12
mathieu@2474
    13
void Set (std::string path, Attribute value);
mathieu@2474
    14
void SetDefault (std::string name, Attribute value);
mathieu@2570
    15
bool SetDefaultFailSafe (std::string name, Attribute value);
mathieu@2474
    16
void SetGlobal (std::string name, Attribute value);
mathieu@2570
    17
bool SetGlobalFailSafe (std::string name, Attribute value);
mathieu@2474
    18
void Connect (std::string path, const CallbackBase &cb);
mathieu@2474
    19
void Disconnect (std::string path, const CallbackBase &cb);
mathieu@2531
    20
void ConnectWithContext (std::string path, const CallbackBase &cb);
mathieu@2569
    21
void DisconnectWithContext (std::string path, const CallbackBase &cb);
mathieu@2474
    22
mathieu@2474
    23
void RegisterRootNamespaceObject (Ptr<Object> obj);
mathieu@2532
    24
void UnregisterRootNamespaceObject (Ptr<Object> obj);
mathieu@2474
    25
mathieu@2474
    26
} // namespace Config
mathieu@2474
    27
mathieu@2474
    28
} // namespace ns3
mathieu@2474
    29
mathieu@2474
    30
#endif /* CONFIG_H */