UNCLASSIFIED I would like some clarification on the intended use of the Char type for properties.
We are trying to use Char as a signed 8-bit value, with a range of -32 .. 31, however it looks as if 0 cannot be represented as the string is parsed and determined to be zero length in OcpiUtilValue.cxx - parse. Char would also not be able to hold the value 92 as this is interpreted as a backslash. Values 7 - 14 are written correctly but returned as their ascii characters, which makes conversion to real values a little more involved (octal strings and ascii chars). Setting to other values in the range works and reading back is correct. Is there a way currently to set these values (0 and 92) for a char type? I assume that the types are constrained to IDL types and therefore there cannot be a signed byte (not char) type added which would be useful for cases like this. In this case, should the Char type be able to cope with zero and 92 when there is only a single char in the 'string'. Allowing for 92 should be a case of checking for the length and setting to the absolute byte value when length = 1. As for zero, it looks like this would be dealt with in the parse function. Nigel IMPORTANT: This email remains the property of the Department of Defence and is subject to the jurisdiction of section 70 of the Crimes Act 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
_______________________________________________ opencpi_dev mailing list [email protected] http://lists.opencpi.org/listinfo.cgi/opencpi_dev-opencpi.org
