More debug
diff --git a/helper/ccnb-parser/syntax-tree/ccnb-parser-base-tag.h b/helper/ccnb-parser/syntax-tree/ccnb-parser-base-tag.h
index 6b7fe76..604ebce 100644
--- a/helper/ccnb-parser/syntax-tree/ccnb-parser-base-tag.h
+++ b/helper/ccnb-parser/syntax-tree/ccnb-parser-base-tag.h
@@ -40,6 +40,9 @@
std::list<Ptr<Block> > m_attrs; ///< \brief List of attributes, associated with this tag
std::list<Ptr<Block> > m_nestedTags; ///< \brief List of nested tags
+public:
+ virtual ~BaseTag () { }
+
protected:
/**
* \brief Default constructor
diff --git a/helper/ccnb-parser/syntax-tree/ccnb-parser-block.cc b/helper/ccnb-parser/syntax-tree/ccnb-parser-block.cc
index 74807d3..09bf96a 100644
--- a/helper/ccnb-parser/syntax-tree/ccnb-parser-block.cc
+++ b/helper/ccnb-parser/syntax-tree/ccnb-parser-block.cc
@@ -28,6 +28,10 @@
#include "ccnb-parser-dattr.h"
#include "ccnb-parser-ext.h"
+#include "ns3/log.h"
+
+NS_LOG_COMPONENT_DEFINE ("CcnbParserBlock");
+
namespace ns3 {
namespace CcnbParser {
@@ -40,6 +44,8 @@
Ptr<Block> Block::ParseBlock (Buffer::Iterator &start)
{
+ NS_LOG_DEBUG (">");
+
// std::cout << "<< pos: " << counter << "\n";
uint32_t value = 0;
@@ -57,7 +63,7 @@
value <<= 4;
value += ( (byte&(~CCN_TT_HBIT)) >> 3);
-
+
/**
* Huh. After fighting with NS-3, it became apparent that Create<T>(...) construct
* doesn't work with references. Just simply doesn't work. wtf?
@@ -83,5 +89,10 @@
}
}
+Block::~Block ()
+{
+ NS_LOG_DEBUG ("<");
+}
+
}
}
diff --git a/helper/ccnb-parser/syntax-tree/ccnb-parser-block.h b/helper/ccnb-parser/syntax-tree/ccnb-parser-block.h
index 59ccf02..a188597 100644
--- a/helper/ccnb-parser/syntax-tree/ccnb-parser-block.h
+++ b/helper/ccnb-parser/syntax-tree/ccnb-parser-block.h
@@ -56,6 +56,8 @@
*/
static Ptr<Block>
ParseBlock (Buffer::Iterator &start);
+
+ virtual ~Block ();
virtual void accept( VoidNoArguVisitor &v ) = 0;
virtual void accept( VoidVisitor &v, boost::any param ) = 0;