utils/print-introspected-doxygen.cc
changeset 2971 75780f899be3
parent 2969 9d05d2a95dfa
child 2989 b7eb3929096c
     1.1 --- a/utils/print-introspected-doxygen.cc	Thu Apr 17 15:30:18 2008 -0700
     1.2 +++ b/utils/print-introspected-doxygen.cc	Thu Apr 17 15:40:25 2008 -0700
     1.3 @@ -19,15 +19,24 @@
     1.4        os << "<li><b>" << tid.GetAttributeName (j) << "</b>: "
     1.5  		<< tid.GetAttributeHelp (j) << std::endl;
     1.6        Ptr<const AttributeChecker> checker = tid.GetAttributeChecker (j);
     1.7 -      os << "  <ul>" << std::endl << "    <li>Set with class: \\ref " 
     1.8 -	 <<  checker->GetValueTypeName () << "</li>" << std::endl;
     1.9 +      os << "  <ul>" << std::endl 
    1.10 +	 << "    <li>Set with class: \\ref " <<  checker->GetValueTypeName () << "</li>" << std::endl;
    1.11        if (checker->HasUnderlyingTypeInformation ())
    1.12  	{
    1.13  	  os << "    <li>Underlying type: \\ref " << checker->GetUnderlyingTypeInformation () << "</li>" << std::endl;
    1.14  	}
    1.15        uint32_t flags = tid.GetAttributeFlags (j);
    1.16        Ptr<const AttributeAccessor> accessor = tid.GetAttributeAccessor (j);
    1.17 +      if (flags & TypeId::ATTR_CONSTRUCT && accessor->HasSetter ())
    1.18 +	{
    1.19 +	  Ptr<const AttributeValue> initial = tid.GetAttributeInitialValue (j);
    1.20 +	  os << "    <li>Initial value: " << initial->SerializeToString (checker) << "</li>" << std::endl;
    1.21 +	}
    1.22        os << "    <li>Flags: ";
    1.23 +      if (flags & TypeId::ATTR_CONSTRUCT && accessor->HasSetter ())
    1.24 +	{
    1.25 +	  os << "construct ";
    1.26 +	}
    1.27        if (flags & TypeId::ATTR_SET && accessor->HasSetter ())
    1.28  	{
    1.29  	  os << "write ";
    1.30 @@ -36,10 +45,6 @@
    1.31  	{
    1.32  	  os << "read ";
    1.33  	}
    1.34 -      if (flags & TypeId::ATTR_CONSTRUCT && accessor->HasSetter ())
    1.35 -	{
    1.36 -	  os << "construct ";
    1.37 -	}
    1.38        os << "</li>" << std::endl;
    1.39        os << "  </ul> " << std::endl;
    1.40        
    1.41 @@ -272,11 +277,11 @@
    1.42  	}
    1.43        if (tid.GetAttributeN () == 0)
    1.44  	{
    1.45 -	  std::cout << "No Attributes defined for this type." << std::endl;
    1.46 +	  std::cout << "No Attributes defined for this type.<br>" << std::endl;
    1.47  	}
    1.48        else
    1.49  	{
    1.50 -	  std::cout << "Attributes defined for this type:" << std::endl;
    1.51 +	  std::cout << "Attributes defined for this type:<br>" << std::endl;
    1.52  	  PrintAttributes (tid, std::cout);
    1.53  	}
    1.54        {
    1.55 @@ -293,11 +298,11 @@
    1.56        }
    1.57        if (tid.GetTraceSourceN () == 0)
    1.58  	{
    1.59 -	  std::cout << "No TraceSources defined for this type." << std::endl;
    1.60 +	  std::cout << "No TraceSources defined for this type.<br>" << std::endl;
    1.61  	}
    1.62        else
    1.63  	{
    1.64 -	  std::cout << "TraceSources defined for this type:" << std::endl;
    1.65 +	  std::cout << "TraceSources defined for this type:<br>" << std::endl;
    1.66  	  PrintTraceSources (tid, std::cout);
    1.67  	}
    1.68        {