Struct PrepareMetadataInfo#

Struct Documentation#

struct PrepareMetadataInfo#

Information which is used to construct the metadata-preparation.

Public Members

std::function<std::tuple<std::string, std::tuple<bool, std::string>>(int)> funcGenerateIdAndNameForChannel#

This function is called to generate the values for the attributes “Id” and “Name” for the channels. The argument is the channel-Index, and the return-value is a tuple with the Id-value as first item, and the Name-value as second item. The Id is mandatory (and it must be unique), the Name is optional. The boolean in the tuple of the second item indicates whether the “Name”-attribute is to be written. If no function is given, a default Id is constructed as “Channel:<channel-index>”. The strings are expected in UTF-8 encoding.