--- a/src/common/tags.h Thu Sep 07 11:15:40 2006 +0200
+++ b/src/common/tags.h Thu Sep 07 12:34:53 2006 +0200
@@ -101,6 +101,21 @@
static void(*gPrettyPrinter) (T *, std::ostream &);
};
+}; // namespace ns3
+
+
+
+/**************************************************************
+ An implementation of the templates defined above
+ *************************************************************/
+#include <cassert>
+#include <string.h>
+
+namespace ns3 {
+
+/**
+ * This class holds a type <--> pretty_printer_cb mapping
+ */
class TagsPrettyPrinterRegistry {
public:
static void record (uint32_t uid, void (*cb) (uint8_t buf[Tags::SIZE], std::ostream &os));
@@ -112,17 +127,6 @@
};
-}; // namespace ns3
-
-
-
-/**************************************************************
- An implementation of the templates defined above
- *************************************************************/
-#include <cassert>
-#include <string.h>
-
-namespace ns3 {
/**
* The TypeUid class is used to create a mapping Type --> uid