The attribute allows the association of some referenced encoding rule or encoding directive to be made to a TTCN-3 definition. The syntax for the argument of the statement (i.e. the actual attributes) is defined as a free text string.
Related keywords:
encode [ override ] [ (qualifier) ] "argument" |
the optional override directive forces all contained types at all lower scopes to be forced to the specified attribute.
the optional qualifier points out the entity for which the argument is valid.
argument is a free-text string specifying the actual attribute. TITAN defines attributes RAW and TEXT for encoding TTCN-3 type definitions.
Example:
module MyModule {
/* Imagine module body here */
} with { encode "RAW" }
Type definitions within MyModule are to be encoded using TITAN RAW encoder/decoder.
BNF definition of encode