Bump version to 4.1-6
[LibreOffice.git] / idlc / test / struct.idl
blob0416499c3a37748c9cdf76cf5667a7e6360c799b
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 /* In this file the idl struct will be tested.
20 bla
23 /// idlc defines a test module
24 module idlc
27 /// test defines a test module
28 module test
31 typedef sequence< long > Id;
32 //struct Bla
33 //{
34 // long bla;
35 //};
37 /** bla
38 BaseStruct defines an * intial struct
40 struct BaseStruct
42 Id Id;
44 /// a short member
45 short m1;
47 /// a unsigned short member
48 unsigned short m2;
50 /// a long member
51 long m3;
53 /// a unsigned long member
54 unsigned long m4;
56 /// a hyper member
57 hyper m5;
59 /// a unsigned hyper member
60 unsigned hyper m6;
62 /// a string member
63 string m7;
65 /// a byte member
66 byte m8;
68 /// a type member
69 type m9;
71 /// a float member
72 float m10;
74 /// a double member
75 double m11;
77 /// a char member
78 char m12;
80 /// a boolean member
81 boolean m13;
83 /// a any member
84 any m14;
87 interface XTestBaseTypes;
89 typedef sequence< long > LongSeq;
91 typedef sequence< LongSeq > LongSeqSeq;
93 /** TestStruct deinfes a struct which inherits
94 from the base strcut type BaseStruct.
96 struct TestStruct : BaseStruct
98 /// a sequence< long > member
99 sequence< long > ms1;
101 /// a sequence< sequence< long > > member
102 sequence< sequence< long > > ms2;
104 /// a long array member with dimesion 5,10
105 // long ms3[5][10];
107 /// a string array member with dimension 4,8
108 // long[5][10] ms4;
110 /// an interface member
111 XTestBaseTypes ms5;
113 /// a typedef member
114 LongSeq ms6;
116 /// a further typedef member
117 LongSeqSeq ms7;
119 /// a sequence typedef member
120 sequence<LongSeq> ms8;
124 }; };