Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

SDK_API::queryChannelField

Reads a typed field and returns the supplied default when the field is unavailable.

Declaration

virtual double queryChannelField(const std::string& channel,
            ChannelField field,
            std::optional<ChannelValue> default_value) = 0;

Parameters

NameDescription
channelFlat channel name.
fieldField to read.
default_valueValue used when the field is unavailable.

Returns

The numeric field value.