CoDec - TTCN-3
CoDec - TTCN-3
CoDec - TTCN-3
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Encoding/Decoding the subtypesCodec header file quiz_codec.h#include #include namespace t3devlib {namespace gen {encode and decode the integer subtypesQuiz.Operand and Quiz.Result in textual formatT3DEVLIB_ASCII_INTEGER_DEFINITION(Quiz, Operand, Signed);T3DEVLIB_ASCII_INTEGER_DEFINITION(Quiz, Result, Signed);T3DEVLIB_FIXED_STRING_DEFINITION (Quiz, Operator, Charstring, 8);}}encode and decode the charstring subtype Quiz.Operatoras a fixed-length string (8-bit long)43