C++ Attributes: event_source

The event_source attribute is overloaded. Depending on which arguments are given, it does either of the following:

Syntax

[
    define_attribute = "event_source",
    argument_list = "type",
    required_attributes = "coclass | !type.com",
    check_argument ("type") = {
        "com",
        "managed"
    },
    help_string = "Specifies that the UDT is a COM or managed event source",
    usage = eClassUsage | eCoClassUsage | eStructUsage,
    group = eCompilerGroup,
    shipping = "true",
    overload = "true"
];
[
    define_attribute = "event_source",
    argument_list = {
        "type",
        "decorate",
        "optimize"
    },
    argument_type ("decorate") = eBooleanValue,
    check_argument ("type") = "native",
    check_argument ("optimize") = {
        "size",
        "speed"
    },
    default_value ("type") = "native",
    default_value ("decorate") = "true",
    default_value ("optimize") = "speed",
    help_string = "Specifies that the UDT is a native event source",
    usage = eClassUsage | eCoClassUsage | eStructUsage,
    group = eCompilerGroup,
    shipping = "true",
    overload = "true"
];