Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(428)

Unified Diff: src/core/model/pointer.h

Issue 342870043: Visual Studio conditional code for core module (Closed)
Patch Set: Updates to resolve review comments Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/model/object-ptr-container.h ('k') | src/core/model/random-variable-stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/model/pointer.h
===================================================================
--- a/src/core/model/pointer.h
+++ b/src/core/model/pointer.h
@@ -23,6 +23,10 @@
#include "attribute.h"
#include "object.h"
+#include "ns3/ns3-module.h"
+#define NS3_MODULE NS3_CORE_MODULE
+#include "ns3/ns3-export.h"
+
/**
* \file
* \ingroup attribute_Pointer
@@ -33,7 +37,7 @@
// Additional docs for class PointerValue:
/** Hold objects of type Ptr<T>. */
-class PointerValue : public AttributeValue
+class NS3_EXPORT PointerValue : public AttributeValue
{
public:
PointerValue ();
@@ -94,7 +98,7 @@
};
-class PointerChecker : public AttributeChecker
+class NS3_EXPORT PointerChecker : public AttributeChecker
{
public:
@@ -217,7 +221,7 @@
}
-ATTRIBUTE_ACCESSOR_DEFINE (Pointer);
+ATTRIBUTE_ACCESSOR_DEFINE_LIB (Pointer, NS3_EXPORT);
template <typename T>
Ptr<AttributeChecker>
« no previous file with comments | « src/core/model/object-ptr-container.h ('k') | src/core/model/random-variable-stream.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b