use HasSetter/HasGetter to improve doxygen output.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Fri, 11 Apr 2008 11:25:44 -0700
changeset 2951 2a3db8645225
parent 2950 9e20fb862cd8
child 2952 d5047d6ce4ce
use HasSetter/HasGetter to improve doxygen output.
utils/print-introspected-doxygen.cc
--- a/utils/print-introspected-doxygen.cc	Fri Apr 11 11:25:21 2008 -0700
+++ b/utils/print-introspected-doxygen.cc	Fri Apr 11 11:25:44 2008 -0700
@@ -26,16 +26,17 @@
 	}
       os << "</li>" << std::endl;
       uint32_t flags = tid.GetAttributeFlags (j);
+      Ptr<const AttributeAccessor> accessor = tid.GetAttributeAccessor (j);
       os << "    <li>Flags: ";
-      if (flags & TypeId::ATTR_SET)
+      if (flags & TypeId::ATTR_SET && accessor->HasSetter ())
 	{
 	  os << "write ";
 	}
-      if (flags & TypeId::ATTR_GET)
+      if (flags & TypeId::ATTR_GET && accessor->HasGetter ())
 	{
 	  os << "read ";
 	}
-      if (flags & TypeId::ATTR_CONSTRUCT)
+      if (flags & TypeId::ATTR_CONSTRUCT && accessor->HasSetter ())
 	{
 	  os << "construct ";
 	}