Index: src/core/model/config.h |
=================================================================== |
--- a/src/core/model/config.h |
+++ b/src/core/model/config.h |
@@ -21,9 +21,14 @@ |
#define CONFIG_H |
#include "ptr.h" |
+#include "object.h" |
#include <string> |
#include <vector> |
+#include "ns3/ns3-module.h" |
+#define NS3_MODULE NS3_CORE_MODULE |
+#include "ns3/ns3-export.h" |
+ |
/** |
* \file |
* \ingroup config |
@@ -53,7 +58,7 @@ |
* Reset the initial value of every attribute as well as the value of every |
* global to what they were before any call to SetDefault and SetGlobal. |
*/ |
-void Reset (void); |
+NS3_EXPORT void Reset (void); |
/** |
* \ingroup config |
@@ -64,7 +69,7 @@ |
* match the input path and will then set their value to the input |
* value. |
*/ |
-void Set (std::string path, const AttributeValue &value); |
+NS3_EXPORT void Set (std::string path, const AttributeValue &value); |
/** |
* \ingroup config |
* \param [in] name The full name of the attribute |
@@ -74,7 +79,7 @@ |
* matching attribute. This method cannot fail: it will |
* crash if the input attribute name or value is invalid. |
*/ |
-void SetDefault (std::string name, const AttributeValue &value); |
+NS3_EXPORT void SetDefault (std::string name, const AttributeValue &value); |
/** |
* \ingroup config |
* \param [in] name The full name of the attribute |
@@ -84,7 +89,7 @@ |
* This method overrides the initial value of the |
* matching attribute. |
*/ |
-bool SetDefaultFailSafe (std::string name, const AttributeValue &value); |
+NS3_EXPORT bool SetDefaultFailSafe (std::string name, const AttributeValue &value); |
/** |
* \ingroup config |
* \param [in] name The name of the requested GlobalValue. |
@@ -92,7 +97,7 @@ |
* |
* This method is equivalent to GlobalValue::Bind |
*/ |
-void SetGlobal (std::string name, const AttributeValue &value); |
+NS3_EXPORT void SetGlobal (std::string name, const AttributeValue &value); |
/** |
* \ingroup config |
* \param [in] name The name of the requested GlobalValue. |
@@ -101,7 +106,7 @@ |
* |
* This method is equivalent to GlobalValue::BindFailSafe |
*/ |
-bool SetGlobalFailSafe (std::string name, const AttributeValue &value); |
+NS3_EXPORT bool SetGlobalFailSafe (std::string name, const AttributeValue &value); |
/** |
* \ingroup config |
* \param [in] path A path to match trace sources. |
@@ -111,7 +116,7 @@ |
* match the input path and will then connect the input callback |
* to them. |
*/ |
-void ConnectWithoutContext (std::string path, const CallbackBase &cb); |
+NS3_EXPORT void ConnectWithoutContext (std::string path, const CallbackBase &cb); |
/** |
* \ingroup config |
* \param [in] path A path to match trace sources. |
@@ -119,7 +124,7 @@ |
* |
* This function undoes the work of Config::Connect. |
*/ |
-void DisconnectWithoutContext (std::string path, const CallbackBase &cb); |
+NS3_EXPORT void DisconnectWithoutContext (std::string path, const CallbackBase &cb); |
/** |
* \ingroup config |
* \param [in] path A path to match trace sources. |
@@ -130,7 +135,7 @@ |
* to them in such a way that the callback will receive an extra |
* context string upon trace event notification. |
*/ |
-void Connect (std::string path, const CallbackBase &cb); |
+NS3_EXPORT void Connect (std::string path, const CallbackBase &cb); |
/** |
* \ingroup config |
* \param [in] path A path to match trace sources. |
@@ -138,7 +143,7 @@ |
* |
* This function undoes the work of Config::ConnectWithContext. |
*/ |
-void Disconnect (std::string path, const CallbackBase &cb); |
+NS3_EXPORT void Disconnect (std::string path, const CallbackBase &cb); |
/** |
* \ingroup config |
@@ -148,7 +153,7 @@ |
* on the set of matching objects stored in the container. Specifically, |
* it is possible to perform bulk Connects and Sets. |
*/ |
-class MatchContainer |
+class NS3_EXPORT MatchContainer |
{ |
public: |
/** Const iterator over the objects in this container. */ |
@@ -256,7 +261,7 @@ |
* \returns A container which contains all the objects which match the input |
* path. |
*/ |
-MatchContainer LookupMatches (std::string path); |
+NS3_EXPORT MatchContainer LookupMatches (std::string path); |
/** |
* \ingroup config |
@@ -265,27 +270,27 @@ |
* Each root object is used during path matching as |
* the root of the path by Config::Connect, and Config::Set. |
*/ |
-void RegisterRootNamespaceObject (Ptr<Object> obj); |
+NS3_EXPORT void RegisterRootNamespaceObject (Ptr<Object> obj); |
/** |
* \ingroup config |
* \param [in] obj A new root object |
* |
* This function undoes the work of Config::RegisterRootNamespaceObject. |
*/ |
-void UnregisterRootNamespaceObject (Ptr<Object> obj); |
+NS3_EXPORT void UnregisterRootNamespaceObject (Ptr<Object> obj); |
/** |
* \ingroup config |
* \returns The number of registered root namespace objects. |
*/ |
-std::size_t GetRootNamespaceObjectN (void); |
+NS3_EXPORT std::size_t GetRootNamespaceObjectN (void); |
/** |
* \ingroup config |
* \param [in] i The index of the requested object. |
* \returns The requested root namespace object |
*/ |
-Ptr<Object> GetRootNamespaceObject (uint32_t i); |
+NS3_EXPORT Ptr<Object> GetRootNamespaceObject (uint32_t i); |
} // namespace Config |