/* * @author STF 276 * @version $Id$ * @desc A collection of data string type and value definitions which * may be useful in the implementation of any TTCN-3 test * suite. "Data string" refers to TTCN-3 hexstring, octetstring * and bitstring types. * @remark End users should be aware that any changes made to the in * definitions this module may be overwritten in future releases. * End users are encouraged to contact the distributers of this * module regarding their modifications or additions so that future * updates will include your changes. */ module LibCommon_DataStrings { /* * @remark Number in name indicates string length in number of * _bits_ */ group bitStringSubTypes { type bitstring Bit1 length(1) with {encode "1 bit"}; type bitstring Bit2 length(2) with {encode "2 bits"}; type bitstring Bit3 length(3) with {encode "3 bits"}; type bitstring Bit4 length(4) with {encode "4 bits"}; type bitstring Bit5 length(5) with {encode "5 bits"}; type bitstring Bit6 length(6) with {encode "6 bits"}; type bitstring Bit7 length(7) with {encode "7 bits"}; type bitstring Bit8 length(8) with {encode "8 bits"}; type bitstring Bit9 length(9) with {encode "9 bits"}; type bitstring Bit10 length(10) with {encode "10 bits"}; type bitstring Bit11 length(11) with {encode "11 bits"}; type bitstring Bit12 length(12) with {encode "12 bits"}; type bitstring Bit13 length(13) with {encode "13 bits"}; type bitstring Bit14 length(14) with {encode "14 bits"}; type bitstring Bit15 length(15) with {encode "15 bits"}; type bitstring Bit16 length(16) with {encode "16 bits"}; type bitstring Bit17 length(17) with {encode "17 bits"}; type bitstring Bit18 length(18) with {encode "18 bits"}; type bitstring Bit19 length(19) with {encode "19 bits"}; type bitstring Bit20 length(20) with {encode "20 bits"}; type bitstring Bit21 length(21) with {encode "21 bits"}; type bitstring Bit22 length(22) with {encode "22 bits"}; type bitstring Bit23 length(23) with {encode "23 bits"}; type bitstring Bit24 length(24) with {encode "24 bits"}; type bitstring Bit25 length(25) with {encode "25 bits"}; type bitstring Bit26 length(26) with {encode "26 bits"}; type bitstring Bit27 length(27) with {encode "27 bits"}; type bitstring Bit28 length(28) with {encode "28 bits"}; type bitstring Bit29 length(29) with {encode "29 bits"}; type bitstring Bit30 length(30) with {encode "30 bits"}; type bitstring Bit31 length(31) with {encode "31 bits"}; type bitstring Bit32 length(32) with {encode "32 bits"}; type bitstring Bit48 length(48) with {encode "48 bits"}; type bitstring Bit64 length(64) with {encode "64 bits"}; //TODO: check if it's possible type bitstring Bit128 length(128) with {encode "128 bits"}; } // end group bitStringSubTypes /* * @remark Number in name indicates string length in number of * _octets_ */ group octetStringSubTypes { type octetstring Oct1 length(1) with {encode "1 bytes"}; type octetstring Oct2 length(2) with {encode "2 bytes"}; type octetstring Oct3 length(3) with {encode "3 bytes"}; type octetstring Oct4 length(4) with {encode "4 bytes"}; type octetstring Oct5 length(5) with {encode "5 bytes"}; type octetstring Oct6 length(6) with {encode "6 bytes"}; type octetstring Oct7 length(7) with {encode "7 bytes"}; type octetstring Oct8 length(8) with {encode "8 bytes"}; type octetstring Oct9 length(9) with {encode "9 bytes"}; type octetstring Oct10 length(10) with {encode "10 bytes"}; type octetstring Oct11 length(11) with {encode "11 bytes"}; type octetstring Oct12 length(12) with {encode "12 bytes"}; type octetstring Oct13 length(13) with {encode "13 bytes"}; type octetstring Oct14 length(14) with {encode "14 bytes"}; type octetstring Oct15 length(15) with {encode "15 bytes"}; type octetstring Oct16 length(16) with {encode "16 bytes"}; type octetstring Oct80 length(80) with {encode "80 bytes"}; type octetstring Oct128 length(128) with {encode "128 bytes"}; type octetstring Oct160 length(160) with {encode "160 bytes"}; type octetstring Oct320 length(320) with {encode "320 bytes"}; type octetstring Oct640 length(640) with {encode "640 bytes"}; type octetstring Oct1280 length(1280) with {encode "1280 bytes"}; //TODO: check if it's possible type octetstring Oct1380 length(1380) with {encode "1380 bytes"}; type octetstring Oct1to15 length(1..15) with {encode "1 to 15 bytes"}; type octetstring Oct6to15 length(6..15) with {encode "6 to 15 bytes"}; type octetstring Oct1to128 length(1..128) with {encode "1 to 128 bytes"}; type octetstring Oct1to254 length(1..254) with {encode "1 to 254 bytes"}; type octetstring Oct1to255 length(1..255) with {encode "1 to 255 bytes"}; } // end group octetStringSubTypes } // end module LibCommon_DataStrings