[22] | 1 | /*
|
---|
| 2 | * @author STF 276
|
---|
| 3 | * @version $Id$
|
---|
| 4 | * @desc A collection of data string type and value definitions which
|
---|
| 5 | * may be useful in the implementation of any TTCN-3 test
|
---|
| 6 | * suite. "Data string" refers to TTCN-3 hexstring, octetstring
|
---|
| 7 | * and bitstring types.
|
---|
| 8 | * @remark End users should be aware that any changes made to the in
|
---|
| 9 | * definitions this module may be overwritten in future releases.
|
---|
| 10 | * End users are encouraged to contact the distributers of this
|
---|
| 11 | * module regarding their modifications or additions so that future
|
---|
| 12 | * updates will include your changes.
|
---|
| 13 | */
|
---|
| 14 | module LibCommon_DataStrings {
|
---|
| 15 |
|
---|
| 16 | /*
|
---|
| 17 | * @remark Number in name indicates string length in number of
|
---|
| 18 | * _bits_
|
---|
| 19 | */
|
---|
| 20 | group bitStringSubTypes {
|
---|
| 21 |
|
---|
| 22 | type bitstring Bit1 length(1) with {encode "1 bit"};
|
---|
| 23 | type bitstring Bit2 length(2) with {encode "2 bits"};
|
---|
| 24 | type bitstring Bit3 length(3) with {encode "3 bits"};
|
---|
| 25 | type bitstring Bit4 length(4) with {encode "4 bits"};
|
---|
| 26 | type bitstring Bit5 length(5) with {encode "5 bits"};
|
---|
| 27 | type bitstring Bit6 length(6) with {encode "6 bits"};
|
---|
| 28 | type bitstring Bit7 length(7) with {encode "7 bits"};
|
---|
| 29 | type bitstring Bit8 length(8) with {encode "8 bits"};
|
---|
| 30 | type bitstring Bit9 length(9) with {encode "9 bits"};
|
---|
| 31 | type bitstring Bit10 length(10) with {encode "10 bits"};
|
---|
| 32 | type bitstring Bit11 length(11) with {encode "11 bits"};
|
---|
| 33 | type bitstring Bit12 length(12) with {encode "12 bits"};
|
---|
| 34 | type bitstring Bit13 length(13) with {encode "13 bits"};
|
---|
| 35 | type bitstring Bit14 length(14) with {encode "14 bits"};
|
---|
| 36 | type bitstring Bit15 length(15) with {encode "15 bits"};
|
---|
| 37 | type bitstring Bit16 length(16) with {encode "16 bits"};
|
---|
| 38 | type bitstring Bit17 length(17) with {encode "17 bits"};
|
---|
| 39 | type bitstring Bit18 length(18) with {encode "18 bits"};
|
---|
| 40 | type bitstring Bit19 length(19) with {encode "19 bits"};
|
---|
| 41 | type bitstring Bit20 length(20) with {encode "20 bits"};
|
---|
| 42 | type bitstring Bit21 length(21) with {encode "21 bits"};
|
---|
| 43 | type bitstring Bit22 length(22) with {encode "22 bits"};
|
---|
| 44 | type bitstring Bit23 length(23) with {encode "23 bits"};
|
---|
| 45 | type bitstring Bit24 length(24) with {encode "24 bits"};
|
---|
| 46 | type bitstring Bit25 length(25) with {encode "25 bits"};
|
---|
| 47 | type bitstring Bit26 length(26) with {encode "26 bits"};
|
---|
| 48 | type bitstring Bit27 length(27) with {encode "27 bits"};
|
---|
| 49 | type bitstring Bit28 length(28) with {encode "28 bits"};
|
---|
| 50 | type bitstring Bit29 length(29) with {encode "29 bits"};
|
---|
| 51 | type bitstring Bit30 length(30) with {encode "30 bits"};
|
---|
| 52 | type bitstring Bit31 length(31) with {encode "31 bits"};
|
---|
| 53 | type bitstring Bit32 length(32) with {encode "32 bits"};
|
---|
| 54 |
|
---|
| 55 | type bitstring Bit48 length(48) with {encode "48 bits"};
|
---|
| 56 | type bitstring Bit64 length(64) with {encode "64 bits"};
|
---|
| 57 | //TODO: check if it's possible
|
---|
| 58 | type bitstring Bit128 length(128) with {encode "128 bits"};
|
---|
| 59 |
|
---|
| 60 | } // end group bitStringSubTypes
|
---|
| 61 |
|
---|
| 62 | /*
|
---|
| 63 | * @remark Number in name indicates string length in number of
|
---|
| 64 | * _octets_
|
---|
| 65 | */
|
---|
| 66 | group octetStringSubTypes {
|
---|
| 67 |
|
---|
| 68 | type octetstring Oct1 length(1) with {encode "1 bytes"};
|
---|
| 69 | type octetstring Oct2 length(2) with {encode "2 bytes"};
|
---|
| 70 | type octetstring Oct3 length(3) with {encode "3 bytes"};
|
---|
| 71 | type octetstring Oct4 length(4) with {encode "4 bytes"};
|
---|
| 72 | type octetstring Oct5 length(5) with {encode "5 bytes"};
|
---|
| 73 | type octetstring Oct6 length(6) with {encode "6 bytes"};
|
---|
| 74 | type octetstring Oct7 length(7) with {encode "7 bytes"};
|
---|
| 75 | type octetstring Oct8 length(8) with {encode "8 bytes"};
|
---|
| 76 | type octetstring Oct9 length(9) with {encode "9 bytes"};
|
---|
| 77 | type octetstring Oct10 length(10) with {encode "10 bytes"};
|
---|
| 78 | type octetstring Oct11 length(11) with {encode "11 bytes"};
|
---|
| 79 | type octetstring Oct12 length(12) with {encode "12 bytes"};
|
---|
| 80 | type octetstring Oct13 length(13) with {encode "13 bytes"};
|
---|
| 81 | type octetstring Oct14 length(14) with {encode "14 bytes"};
|
---|
| 82 | type octetstring Oct15 length(15) with {encode "15 bytes"};
|
---|
| 83 | type octetstring Oct16 length(16) with {encode "16 bytes"};
|
---|
| 84 |
|
---|
| 85 | type octetstring Oct80 length(80) with {encode "80 bytes"};
|
---|
| 86 | type octetstring Oct128 length(128) with {encode "128 bytes"};
|
---|
| 87 | type octetstring Oct160 length(160) with {encode "160 bytes"};
|
---|
| 88 | type octetstring Oct320 length(320) with {encode "320 bytes"};
|
---|
| 89 | type octetstring Oct640 length(640) with {encode "640 bytes"};
|
---|
| 90 | type octetstring Oct1280 length(1280) with {encode "1280 bytes"};
|
---|
| 91 | //TODO: check if it's possible
|
---|
| 92 | type octetstring Oct1380 length(1380) with {encode "1380 bytes"};
|
---|
| 93 |
|
---|
| 94 | type octetstring Oct1to15 length(1..15) with {encode "1 to 15 bytes"};
|
---|
| 95 | type octetstring Oct6to15 length(6..15) with {encode "6 to 15 bytes"};
|
---|
| 96 | type octetstring Oct1to128 length(1..128) with {encode "1 to 128 bytes"};
|
---|
| 97 | type octetstring Oct1to254 length(1..254) with {encode "1 to 254 bytes"};
|
---|
| 98 | type octetstring Oct1to255 length(1..255) with {encode "1 to 255 bytes"};
|
---|
| 99 |
|
---|
| 100 | } // end group octetStringSubTypes
|
---|
| 101 |
|
---|
| 102 | } // end module LibCommon_DataStrings
|
---|