utils/print-introspected-doxygen.cc
changeset 2951 2a3db8645225
parent 2945 8e9f4dc59d8b
child 2964 4e8cb1577144
     1.1 --- a/utils/print-introspected-doxygen.cc	Thu Apr 10 12:24:36 2008 -0700
     1.2 +++ b/utils/print-introspected-doxygen.cc	Fri Apr 11 11:25:44 2008 -0700
     1.3 @@ -26,16 +26,17 @@
     1.4  	}
     1.5        os << "</li>" << std::endl;
     1.6        uint32_t flags = tid.GetAttributeFlags (j);
     1.7 +      Ptr<const AttributeAccessor> accessor = tid.GetAttributeAccessor (j);
     1.8        os << "    <li>Flags: ";
     1.9 -      if (flags & TypeId::ATTR_SET)
    1.10 +      if (flags & TypeId::ATTR_SET && accessor->HasSetter ())
    1.11  	{
    1.12  	  os << "write ";
    1.13  	}
    1.14 -      if (flags & TypeId::ATTR_GET)
    1.15 +      if (flags & TypeId::ATTR_GET && accessor->HasGetter ())
    1.16  	{
    1.17  	  os << "read ";
    1.18  	}
    1.19 -      if (flags & TypeId::ATTR_CONSTRUCT)
    1.20 +      if (flags & TypeId::ATTR_CONSTRUCT && accessor->HasSetter ())
    1.21  	{
    1.22  	  os << "construct ";
    1.23  	}