CustomType

class kanzi::connect::CustomType

Custom type definition for service API in service description. Allows defining structs and enums.

Public Types

using Const_iterator = map<string, pair<string, string>>::const_iterator
enum Type

Defines the type of the custom type.

Values:

enumerator STRUCT
enumerator ENUM

Public Functions

explicit CustomType(const tinyxml2::XMLElement *typeElement)

Constructor.

~CustomType() = default

dtor

Const_iterator beginDetails() const

Begin iterator of details.

Return

const iterator

Const_iterator endDetails() const

End iterator of details.

Return

const iterator

const string &getName() const

Get the name of the custom type.

Return

The name

Type getType() const

Get the type of the custom type.

Return

The type