I have a component that has a property that is of type enum:
<Property name='window_type' type='enum' initial='true' enums='none,hann,hamming,blackman' default='none'>
<Description> The type of window to apply to the input data. </Description>
</Property>
According to the component development guide page 39, the underlying value for an enum is a uint32 and it is specified within an application xml using its string representation.
I want to set this property from the ACI. I have an OCPI::API::Property object for the specific property and have attempted property.setULongValue() and property.setStringValue() which both throw a std::string error: Access error for property "window_type": incorrect type for this property
I encountered the same error trying to use the Property object with the setULongValue method.
All of those access methods on Property objects are meant to be used solely when the type of the property is the type in the method name. I’d expect the string one to fail, but I don’t see a reason why the ULong one should fail.