src/core/model/pointer.cc
changeset 9134 7a750f032acd
parent 7856 71b642707bef
child 10968 2d29fee2b7b8
--- a/src/core/model/pointer.cc	Sat Nov 10 18:45:37 2012 +0100
+++ b/src/core/model/pointer.cc	Sat Nov 10 19:16:38 2012 +0100
@@ -19,40 +19,49 @@
  */
 #include "pointer.h"
 #include "object-factory.h"
+#include "log.h"
 #include <sstream>
 
+NS_LOG_COMPONENT_DEFINE ("Pointer");
+
 namespace ns3 {
 
 PointerValue::PointerValue ()
   : m_value ()
 {
+  NS_LOG_FUNCTION (this);
 }
 
 PointerValue::PointerValue (Ptr<Object> object)
   : m_value (object)
 {
+  NS_LOG_FUNCTION (object);
 }
 
 void
 PointerValue::SetObject (Ptr<Object> object)
 {
+  NS_LOG_FUNCTION (object);
   m_value = object;
 }
 
 Ptr<Object>
 PointerValue::GetObject (void) const
 {
+  NS_LOG_FUNCTION (this);
   return m_value;
 }
 
 Ptr<AttributeValue>
 PointerValue::Copy (void) const
 {
+  NS_LOG_FUNCTION (this);
   return Create<PointerValue> (*this);
 }
 std::string
 PointerValue::SerializeToString (Ptr<const AttributeChecker> checker) const
 {
+  NS_LOG_FUNCTION (this << checker);
   std::ostringstream oss;
   oss << m_value;
   return oss.str ();
@@ -64,6 +73,7 @@
   // We assume that the string you want to deserialize contains
   // a description for an ObjectFactory to create an object and then assign it to the
   // member variable.
+  NS_LOG_FUNCTION (this << value << checker);
   ObjectFactory factory;
   std::istringstream iss;
   iss.str(value);