xref: /aoo42x/main/idlc/test/typelookup.idl (revision a893be29)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22/* In this file the idl struct will be tested.
23  bla
24 */
25
26#include <enum.idl>
27
28typedef short Error;
29
30/// idlc defines a test module
31module idlc
32{
33
34typedef long Error;
35
36/// test defines a test module
37module test
38{
39
40/** bla
41   BaseStruct defines an * initial struct
42 */
43struct BaseStruct
44{
45	/// a long member
46	long 	m1;
47	/// a string member
48	string 	m2;
49	/// a byte member
50	byte	m3;
51	/// a type member
52	type 	m4;
53	/// a enum member, Error in moudle idlc::test
54	Error	m5;
55	/// a typedef member, global Error (typedef short)
56	::Error	m6;
57	/// a typedef member, Error in moudle idlc (typedef long)
58	::idlc::Error	m7;
59	/// a typedef member, Error in moudle idlc (typedef long)
60	idlc::Error	m8;
61	/// a enum member, Error in moudle idlc::test
62	test::Error	m9;
63};
64
65/** TestStruct deinfes a struct which inherits
66    from the base strcut type BaseStruct.
67*/
68struct TestStruct : BaseStruct
69{
70	/// a short member
71	short 			ms1;
72	/// a hyper member
73	hyper			ms2;
74	/// a sequence<long> member
75	sequence< long > 	ms3;
76	/// a long array member with dimesion 5,10
77	long			ms4[5][10];
78	/// a string array member with dimension 4,8
79	long[5][10]		ms5;
80};
81
82}; // test
83
84}; // idlc
85