Use o3tl::convert in Math
[LibreOffice.git] / idlc / test / struct.idl
blob133471d2e197aa85b84f67a002bae4065f20e7dd
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 /* In this file the idl struct will be tested.
21 bla
24 /// idlc defines a test module
25 module idlc
28 /// test defines a test module
29 module test
32 typedef sequence< long > Id;
33 //struct Bla
34 //{
35 // long bla;
36 //};
38 /** bla
39 BaseStruct defines an * initial struct
41 struct BaseStruct
43 Id Id;
45 /// a short member
46 short m1;
48 /// an unsigned short member
49 unsigned short m2;
51 /// a long member
52 long m3;
54 /// an unsigned long member
55 unsigned long m4;
57 /// a hyper member
58 hyper m5;
60 /// an unsigned hyper member
61 unsigned hyper m6;
63 /// a string member
64 string m7;
66 /// a byte member
67 byte m8;
69 /// a type member
70 type m9;
72 /// a float member
73 float m10;
75 /// a double member
76 double m11;
78 /// a char member
79 char m12;
81 /// a boolean member
82 boolean m13;
84 /// an any member
85 any m14;
88 interface XTestBaseTypes;
90 typedef sequence< long > LongSeq;
92 typedef sequence< LongSeq > LongSeqSeq;
94 /** TestStruct deinfes a struct which inherits
95 from the base strcut type BaseStruct.
97 struct TestStruct : BaseStruct
99 /// a sequence< long > member
100 sequence< long > ms1;
102 /// a sequence< sequence< long > > member
103 sequence< sequence< long > > ms2;
105 /// an interface member
106 XTestBaseTypes ms5;
108 /// a typedef member
109 LongSeq ms6;
111 /// a further typedef member
112 LongSeqSeq ms7;
114 /// a sequence typedef member
115 sequence<LongSeq> ms8;
119 }; };
121 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */