File: data_type.skeleton

package info (click to toggle)
eclipse-titan 6.1.0-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 79,084 kB
  • ctags: 29,092
  • sloc: cpp: 210,764; ansic: 44,862; yacc: 21,034; sh: 12,594; makefile: 12,225; lex: 8,972; xml: 5,348; java: 4,849; perl: 3,780; python: 2,834; php: 175
file content (56 lines) | stat: -rw-r--r-- 1,070 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//Simple data types
type integer <IntegerTypeId> (0..255) with {variant "COMP(2scompl)"};

type charstring <CharTypeId1> length(0..7);

type charstring <CharTypeId2> length(0..infinity);

type charstring <CharTypeId3> ("a".."z");

type <CharTypeId3> <CharTypeId4> length(0..7);

type integer <SimpleReturnTypeId> with {extension "done"};

//Structured data types
type record <RecordTypeId>
{
  <TYpeId1> <fieldName1>,
  <TYpeId2> <fieldName2>,
  <TYpeId3> <fieldName3> optional
}

type enumerated MyEnumType
{
  <enumValue1> (101),
  <enumValue2> (102)
} with
{
  variant "FIELDLENGTH(16)";
  variant "COMP(signbit)"
}

type record <MyRecordType>
{
  integer <field1> (0..255),
  bitstring <field2> length(8),
  <MySetOfIntegerType> <field3> optional,
  <MyCharType4> <field4> optional
}

type set length(0..7) of integer <SetOfIntegerTypeId>;

type record <StructuredReturnTypeId>
{
  integer <fieldName1> (0..255),
  boolean <fieldName2> optional
} with
{
  extension "done"
}

//Address type
type union address
{
  charstring <fieldName1>,
  bitstring <fieldName2>
}