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.

#ifndef CONFIG_H
#define CONFIG_H

#include "attribute.h"
#include "ptr.h"
#include "object.h"
#include <string>

namespace ns3 {

namespace Config {

void Set (std::string path, Attribute value);
void SetDefault (std::string name, Attribute value);
bool SetDefaultFailSafe (std::string name, Attribute value);
void SetGlobal (std::string name, Attribute value);
bool SetGlobalFailSafe (std::string name, Attribute value);
void Connect (std::string path, const CallbackBase &cb);
void Disconnect (std::string path, const CallbackBase &cb);
void ConnectWithContext (std::string path, const CallbackBase &cb);
void DisconnectWithContext (std::string path, const CallbackBase &cb);

void RegisterRootNamespaceObject (Ptr<Object> obj);
void UnregisterRootNamespaceObject (Ptr<Object> obj);

} // namespace Config

} // namespace ns3

#endif /* CONFIG_H */