src/core/attribute.cc
changeset 2965 4b28e9740e3b
parent 2948 858fc65447a5
--- a/src/core/attribute.cc	Mon Apr 14 16:19:17 2008 -0700
+++ b/src/core/attribute.cc	Thu Apr 17 13:42:25 2008 -0700
@@ -31,28 +31,6 @@
 AttributeValue::~AttributeValue ()
 {}
 
-Attribute::Attribute ()
-  : m_value ()
-{}
-Attribute::Attribute (Ptr<AttributeValue> value)
-  : m_value (value)
-{}
-
-Attribute 
-Attribute::Copy (void) const
-{
-  return m_value->Copy ();
-}
-std::string 
-Attribute::SerializeToString (Ptr<const AttributeChecker> checker) const
-{
-  return m_value->SerializeToString (checker);
-}
-bool 
-Attribute::DeserializeFromString (std::string value, Ptr<const AttributeChecker> checker)
-{
-  return m_value->DeserializeFromString (value, checker);
-}
 
 AttributeAccessor::AttributeAccessor ()
 {}
@@ -64,4 +42,23 @@
 AttributeChecker::~AttributeChecker ()
 {}
 
+EmptyAttributeValue::EmptyAttributeValue ()
+{}
+Ptr<AttributeValue> 
+EmptyAttributeValue::Copy (void) const
+{
+  return Create<EmptyAttributeValue> ();
+}
+std::string 
+EmptyAttributeValue::SerializeToString (Ptr<const AttributeChecker> checker) const
+{
+  return "";
+}
+bool 
+EmptyAttributeValue::DeserializeFromString (std::string value, Ptr<const AttributeChecker> checker)
+{
+  return true;
+}
+
+
 } // namespace ns3