Download 37 Adaptation of Generated Code
Transcript
Chapter 37 Adaptation of Generated Code Getting error mode This function gets error mode (bem_Off or bem_On). tBufferErrorMode BufGetErrorMode(tBuffer buf) Supported ASN.1 Types • BOOLEAN • INTEGER • ENUMERATED • REAL • OBJECT IDENTIFIER • NULL • BIT STRING • OCTET STRING • IA5String • NumericString • PrintableString • VisibleString • UTCTime • GeneralizedTime • SEQUENCE • SET • SEQUENCE OF • SET OF • CHOICE • Tagged types • Open types Encoding, and in Particular Decoding within ACM and GCI The standard way to implement the encoder and decoder functions are to put at least one function of each in the file encoder.c and declare them in the file encoder.h. With every adaptation that is provided with the TTCN suite installation are those files included, often with empty encode/decode functions where the user is supposed to enter the appropriate functionality. The functions should be of the following structure: 1512 ,um-st1 Telelogic Tau 4.5 User’s Manual July 2003