GetTranslations¶
-
virtual std::map<uint32_t, std::string> ISignal::GetTranslations() = 0¶
Gets the collection of known values and their associated human-readable string representations.
- Returns
std::map<uint32_t, std::string> – Collection of values to their human-readable string representations.
- Throws
CUnsupportedException
– GetTranslations not supported (signal data type must be ESignalDataType::Bool, ESignalDataType::Enum or ESignalDataType::Mask).CCommunicationErrorException
– Protocol error.CConnectionLostException
– Connection to controller lost.CRebootedException
– Controller has been rebooted since this object reference was retrieved, invalidating this reference.
- Remarks
Meant for:
Booleans, i.e. “True” and “False”
Enumerations, i.e. translations from enumerator to name
Masks, i.e. translations from mask value to name.