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

Unified Diff: src/core/model/type-id.h

Issue 342120043: New patch for core module changes (Closed)
Patch Set: Updated core patch Created 5 years, 10 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
Index: src/core/model/type-id.h
===================================================================
--- a/src/core/model/type-id.h
+++ b/src/core/model/type-id.h
@@ -30,6 +30,10 @@
#include <string>
#include <stdint.h>
+#include "ns3/ns3-module.h"
+#define NS3_MODULE NS3_CORE_MODULE
+#include "ns3/ns3-export.h"
+
/**
* \file
* \ingroup object
@@ -55,7 +59,7 @@
* \internal
* See the discussion in IidManager about hash chaining of TypeId's.
*/
-class TypeId
+class NS3_EXPORT TypeId
{
public:
/** Flags describing when a given attribute can be read or written. */
@@ -583,7 +587,7 @@
* \param [in] tid The TypeId.
* \returns The output stream.
*/
-std::ostream & operator << (std::ostream &os, TypeId tid);
+NS3_EXPORT std::ostream & operator << (std::ostream &os, TypeId tid);
/**
* \relates TypeId
* Input Streamer.
@@ -591,7 +595,7 @@
* \param [out] tid The TypeId to set from the stream.
* \returns The input stream.
*/
-std::istream & operator >> (std::istream &is, TypeId &tid);
+NS3_EXPORT std::istream & operator >> (std::istream &is, TypeId &tid);
/**
* Comparison operator.
@@ -605,7 +609,7 @@
bool operator < (TypeId a, TypeId b);
/** @} */
-ATTRIBUTE_HELPER_HEADER (TypeId);
+ATTRIBUTE_HELPER_HEADER_LIB (TypeId, NS3_EXPORT);
} // namespace ns3

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