utils/print-introspected-doxygen.cc
changeset 2969 9d05d2a95dfa
parent 2964 4e8cb1577144
child 2971 75780f899be3
equal deleted inserted replaced
2968:d6b2d00acab2 2969:9d05d2a95dfa
    17   for (uint32_t j = 0; j < tid.GetAttributeN (); j++)
    17   for (uint32_t j = 0; j < tid.GetAttributeN (); j++)
    18     {
    18     {
    19       os << "<li><b>" << tid.GetAttributeName (j) << "</b>: "
    19       os << "<li><b>" << tid.GetAttributeName (j) << "</b>: "
    20 		<< tid.GetAttributeHelp (j) << std::endl;
    20 		<< tid.GetAttributeHelp (j) << std::endl;
    21       Ptr<const AttributeChecker> checker = tid.GetAttributeChecker (j);
    21       Ptr<const AttributeChecker> checker = tid.GetAttributeChecker (j);
    22       os << "  <ul>" << std::endl << "    <li>Type: \\ref " <<  checker->GetType ();
    22       os << "  <ul>" << std::endl << "    <li>Set with class: \\ref " 
    23       if (checker->HasTypeConstraints ())
    23 	 <<  checker->GetValueTypeName () << "</li>" << std::endl;
    24 	{
    24       if (checker->HasUnderlyingTypeInformation ())
    25 	  os << " -> " << checker->GetTypeConstraints ();
    25 	{
    26 	}
    26 	  os << "    <li>Underlying type: \\ref " << checker->GetUnderlyingTypeInformation () << "</li>" << std::endl;
    27       os << "</li>" << std::endl;
    27 	}
    28       uint32_t flags = tid.GetAttributeFlags (j);
    28       uint32_t flags = tid.GetAttributeFlags (j);
    29       Ptr<const AttributeAccessor> accessor = tid.GetAttributeAccessor (j);
    29       Ptr<const AttributeAccessor> accessor = tid.GetAttributeAccessor (j);
    30       os << "    <li>Flags: ";
    30       os << "    <li>Flags: ";
    31       if (flags & TypeId::ATTR_SET && accessor->HasSetter ())
    31       if (flags & TypeId::ATTR_SET && accessor->HasSetter ())
    32 	{
    32 	{