To get the type of the property, use the type() method, which requires no parameters
and returns the property type as one value from the OdTfVariant::Type enumeration:
To get the name of the property, use the name() method,
which requires no parameters and returns the name of the property as an OdString value. For example:
message.format(L"\nName of the parameter is %s", pProp->name().c_str());
pIO->putString(message);
To get the owner class of the property, use the owner() method, which requires
no parameters and returns the owner class as a pointer to the OdTfClass object.
For example:
message.format(L"\nCurrent property is owned by %s class", pProp->owner()->name().c_str());
pIO->putString(message);
Parameter can have a default value instead of OdTfVariant::kEmpty. To get this
value, use the defaultItemValue() method, which requires no parameters and returns
the default value as an OdTfVariant object. For example:
OdTfVariant defVal = pProp->defaultItemValue();
To get the current parameter value of the specified object, use the getValue()
method, which requires a pointer to an OdTfObject object to specify the object
with this parameter and an OdTfVariant object through which the value will be
returned. For example:
pProp->getValue(pElementPtr, val);
The next example demonstrates dumping all properties with their name and type
indices. The getAllHierarchyProperties_2() method can be found in the topic about TfClasses