[22] | 1 | /**
|
---|
| 2 | *
|
---|
| 3 | * @author ETSI
|
---|
| 4 | * @version $URL: svn+ssh://vcs.etsi.org/TTCN3/LIB/Ttcn3LibCommon/trunk/ttcn/LibCommon_DataStrings.ttcn $
|
---|
| 5 | * $Id: LibCommon_DataStrings.ttcn 29 2008-11-24 10:08:08Z mullers $
|
---|
| 6 | * @desc A collection of data string type and value definitions which
|
---|
| 7 | * may be useful in the implementation of any TTCN-3 test
|
---|
| 8 | * suite. "Data string" refers to TTCN-3 hexstring, octetstring
|
---|
| 9 | * and bitstring types.
|
---|
| 10 | * @remark End users should be aware that any changes made to the in
|
---|
| 11 | * definitions this module may be overwritten in future releases.
|
---|
| 12 | * End users are encouraged to contact the distributers of this
|
---|
| 13 | * module regarding their modifications or additions so that future
|
---|
| 14 | * updates will include your changes.
|
---|
| 15 | */
|
---|
| 16 | module LibCommon_DataStrings {
|
---|
| 17 |
|
---|
| 18 | /**
|
---|
| 19 | * @remark Number in name indicates string length in number of
|
---|
| 20 | * _bits_
|
---|
| 21 | */
|
---|
| 22 | group bitStringSubTypes {
|
---|
| 23 |
|
---|
| 24 | type bitstring Bit1 length(1) with {encode "length(1)"};
|
---|
| 25 | type bitstring Bit2 length(2) with {encode "length(2)"};
|
---|
| 26 | type bitstring Bit3 length(3) with {encode "length(3)"};
|
---|
| 27 | type bitstring Bit4 length(4) with {encode "length(4)"};
|
---|
| 28 | type bitstring Bit5 length(5) with {encode "length(5)"};
|
---|
| 29 | type bitstring Bit6 length(6) with {encode "length(6)"};
|
---|
| 30 | type bitstring Bit7 length(7) with {encode "length(7)"};
|
---|
| 31 | type bitstring Bit8 length(8) with {encode "length(8)"};
|
---|
| 32 | type bitstring Bit9 length(9) with {encode "length(9)"};
|
---|
| 33 | type bitstring Bit10 length(10) with {encode "length(10)"};
|
---|
| 34 | type bitstring Bit11 length(11) with {encode "length(11)"};
|
---|
| 35 | type bitstring Bit12 length(12) with {encode "length(12)"};
|
---|
| 36 | type bitstring Bit13 length(13) with {encode "length(13)"};
|
---|
| 37 | type bitstring Bit14 length(14) with {encode "length(14)"};
|
---|
| 38 | type bitstring Bit15 length(15) with {encode "length(15)"};
|
---|
| 39 | type bitstring Bit16 length(16) with {encode "length(16)"};
|
---|
| 40 | type bitstring Bit17 length(17) with {encode "length(17)"};
|
---|
| 41 | type bitstring Bit18 length(18) with {encode "length(18)"};
|
---|
| 42 | type bitstring Bit19 length(19) with {encode "length(19)"};
|
---|
| 43 | type bitstring Bit20 length(20) with {encode "length(20)"};
|
---|
| 44 | type bitstring Bit21 length(21) with {encode "length(21)"};
|
---|
| 45 | type bitstring Bit22 length(22) with {encode "length(22)"};
|
---|
| 46 | type bitstring Bit23 length(23) with {encode "length(23)"};
|
---|
| 47 | type bitstring Bit24 length(24) with {encode "length(24)"};
|
---|
| 48 | type bitstring Bit25 length(25) with {encode "length(25)"};
|
---|
| 49 | type bitstring Bit26 length(26) with {encode "length(26)"};
|
---|
| 50 | type bitstring Bit27 length(27) with {encode "length(27)"};
|
---|
| 51 | type bitstring Bit28 length(28) with {encode "length(28)"};
|
---|
| 52 | type bitstring Bit29 length(29) with {encode "length(29)"};
|
---|
| 53 | type bitstring Bit30 length(30) with {encode "length(30)"};
|
---|
| 54 | type bitstring Bit31 length(31) with {encode "length(31)"};
|
---|
| 55 | type bitstring Bit32 length(32) with {encode "length(32)"};
|
---|
| 56 | type bitstring Bit40 length(40) with {encode "length(40)"};
|
---|
| 57 |
|
---|
| 58 | type bitstring Bit48 length(48) with {encode "length(48)"};
|
---|
| 59 | type bitstring Bit64 length(64) with {encode "length(64)"};
|
---|
| 60 | type bitstring Bit72 length(72) with {encode "length(72)"};
|
---|
| 61 | type bitstring Bit128 length(128) with {encode "length(128)"};
|
---|
| 62 | type bitstring Bit144 length(144) with {encode "length(144)"};
|
---|
| 63 |
|
---|
| 64 | } // end group bitStringSubTypes
|
---|
| 65 |
|
---|
| 66 | group zeroedBits {
|
---|
| 67 |
|
---|
| 68 | const Bit1 c_1ZeroBit := int2bit(0,1);
|
---|
| 69 | const Bit2 c_2ZeroBits := int2bit(0,2);
|
---|
| 70 | const Bit4 c_4ZeroBits := int2bit(0,4);
|
---|
| 71 | const Bit5 c_5ZeroBits := int2bit(0,5);
|
---|
| 72 | const Bit6 c_6ZeroBits := int2bit(0,6);
|
---|
| 73 | const Bit8 c_8ZeroBits := int2bit(0,8);
|
---|
| 74 | const Bit14 c_14ZeroBits := int2bit(0,14);
|
---|
| 75 | const Bit64 c_64ZeroBits := int2bit(0,64);
|
---|
| 76 |
|
---|
| 77 | }//end group zeroedBits
|
---|
| 78 |
|
---|
| 79 | /**
|
---|
| 80 | * @remark Number in name indicates string length in number of
|
---|
| 81 | * _octets_
|
---|
| 82 | */
|
---|
| 83 | group octetStringSubTypes {
|
---|
| 84 |
|
---|
| 85 | type octetstring Oct1 length(1) with {encode "length(1)"};
|
---|
| 86 | type octetstring Oct2 length(2) with {encode "length(2)"};
|
---|
| 87 | type octetstring Oct3 length(3) with {encode "length(3)"};
|
---|
| 88 | type octetstring Oct4 length(4) with {encode "length(4)"};
|
---|
| 89 | type octetstring Oct5 length(5) with {encode "length(5)"};
|
---|
| 90 | type octetstring Oct6 length(6) with {encode "length(6)"};
|
---|
| 91 | type octetstring Oct7 length(7) with {encode "length(7)"};
|
---|
| 92 | type octetstring Oct8 length(8) with {encode "length(8)"};
|
---|
| 93 | type octetstring Oct9 length(9) with {encode "length(9)"};
|
---|
| 94 | type octetstring Oct10 length(10) with {encode "length(10)"};
|
---|
| 95 | type octetstring Oct11 length(11) with {encode "length(11)"};
|
---|
| 96 | type octetstring Oct12 length(12) with {encode "length(12)"};
|
---|
| 97 | type octetstring Oct13 length(13) with {encode "length(13)"};
|
---|
| 98 | type octetstring Oct14 length(14) with {encode "length(14)"};
|
---|
| 99 | type octetstring Oct15 length(15) with {encode "length(15)"};
|
---|
| 100 | type octetstring Oct16 length(16) with {encode "length(16)"};
|
---|
| 101 |
|
---|
| 102 | type octetstring Oct20 length(20) with {encode "length(20)"};
|
---|
| 103 | type octetstring Oct64 length(64) with {encode "length(64)"};
|
---|
| 104 | type octetstring Oct80 length(80) with {encode "length(80)"};
|
---|
| 105 | type octetstring Oct128 length(128) with {encode "length(128)"};
|
---|
| 106 | type octetstring Oct160 length(160) with {encode "length(160)"};
|
---|
| 107 | type octetstring Oct320 length(320) with {encode "length(320)"};
|
---|
| 108 | type octetstring Oct640 length(640) with {encode "length(640)"};
|
---|
| 109 | type octetstring Oct1280 length(1280) with {encode "length(1280)"};
|
---|
| 110 | type octetstring Oct1380 length(1380) with {encode "length(1380)"};
|
---|
| 111 |
|
---|
| 112 | type octetstring Oct0to16 length(0..16) with {encode "length(0..16)"};
|
---|
| 113 | type octetstring Oct0to127 length(0..127) with {encode "length(0..127)"};
|
---|
| 114 | type octetstring Oct0to255 length(0..255) with {encode "length(0..255)"};
|
---|
| 115 |
|
---|
| 116 | type octetstring Oct1to15 length(1..15) with {encode "length(1..15)"};
|
---|
| 117 | type octetstring Oct1to128 length(1..128) with {encode "length(1..128)"};
|
---|
| 118 | type octetstring Oct1to254 length(1..254) with {encode "length(1..254)"};
|
---|
| 119 | type octetstring Oct1to255 length(1..255) with {encode "length(1..255)"};
|
---|
| 120 |
|
---|
| 121 | type octetstring Oct4to16 length(4..16) with {encode "length(4..16)"};
|
---|
| 122 | type octetstring Oct6to15 length(6..15) with {encode "length(6..15)"};
|
---|
| 123 |
|
---|
| 124 | } // end group octetStringSubTypes
|
---|
| 125 |
|
---|
| 126 | group zeroedBytes {
|
---|
| 127 | const Oct1 c_1ZeroByte := int2oct(0,1);
|
---|
| 128 | const Oct2 c_2ZeroBytes := int2oct(0,2);
|
---|
| 129 | const Oct4 c_4ZeroBytes := int2oct(0,4);
|
---|
| 130 | const Oct6 c_6ZeroBytes := int2oct(0,6);
|
---|
| 131 | const Oct8 c_8ZeroBytes := int2oct(0,8);
|
---|
| 132 | const Oct9 c_9ZeroBytes := int2oct(0,9);
|
---|
| 133 | const Oct12 c_12ZeroBytes := int2oct(0,12);
|
---|
| 134 | const Oct16 c_16ZeroBytes := int2oct(0,16);
|
---|
| 135 | const Oct20 c_20ZeroBytes := int2oct(0,20);
|
---|
| 136 |
|
---|
| 137 | const Oct80 c_80ZeroBytes := int2oct(0,80);
|
---|
| 138 | const Oct160 c_160ZeroBytes := int2oct(0,160);
|
---|
| 139 | const Oct320 c_320ZeroBytes := int2oct(0,320);
|
---|
| 140 | const Oct640 c_640ZeroBytes := int2oct(0,640);
|
---|
| 141 | const Oct1280 c_1280ZeroBytes := int2oct(0,1280);
|
---|
| 142 | const Oct1380 c_1380ZeroBytes := int2oct(0,1380);
|
---|
| 143 | const octetstring c_256ZeroBytes := int2oct(0,256);
|
---|
| 144 | const octetstring c_1KZeroBytes := int2oct(0,1024);
|
---|
| 145 | const octetstring c_4KZeroBytes := int2oct(0,4096);
|
---|
| 146 | const octetstring c_16KZeroBytes := int2oct(0,16384);
|
---|
| 147 | const octetstring c_64KZeroBytes := int2oct(0,65536);
|
---|
| 148 | const octetstring c_128KZeroBytes := int2oct(0,131072);
|
---|
| 149 |
|
---|
| 150 | }//end group zeroedBytes
|
---|
| 151 |
|
---|
| 152 | } // end module LibCommon_DataStrings
|
---|