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 
23 
24 #ifndef INCLUDED_BRIDGES_CPP_UNO_SHARED_TYPES_HXX
25 #define INCLUDED_BRIDGES_CPP_UNO_SHARED_TYPES_HXX
26 
27 #include "typelib/typeclass.h"
28 #include "typelib/typedescription.h"
29 
30 namespace bridges { namespace cpp_uno { namespace shared {
31 
32 /**
33  * Determines whether a type is a "simple" type (VOID, BOOLEAN, BYTE, SHORT,
34  * UNSIGNED SHORT, LONG, UNSIGNED LONG, HYPER, UNSIGNED HYPER, FLOAT, DOUBLE,
35  * CHAR, or an enum type).
36  *
37  * @param typeClass a type class
38  * @return true if the given type is "simple"
39  */
40 bool isSimpleType(typelib_TypeClass typeClass);
41 
42 /**
43  * Determines whether a type is a "simple" type (VOID, BOOLEAN, BYTE, SHORT,
44  * UNSIGNED SHORT, LONG, UNSIGNED LONG, HYPER, UNSIGNED HYPER, FLOAT, DOUBLE,
45  * CHAR, or an enum type).
46  *
47  * @param type a non-null pointer to a type description reference
48  * @return true if the given type is "simple"
49  */
50 bool isSimpleType(typelib_TypeDescriptionReference const * type);
51 
52 /**
53  * Determines whether a type is a "simple" type (VOID, BOOLEAN, BYTE, SHORT,
54  * UNSIGNED SHORT, LONG, UNSIGNED LONG, HYPER, UNSIGNED HYPER, FLOAT, DOUBLE,
55  * CHAR, or an enum type).
56  *
57  * @param type a non-null pointer to a type description
58  * @return true if the given type is "simple"
59  */
60 bool isSimpleType(typelib_TypeDescription const * type);
61 
62 /**
63  * Determines whether a type relates to an interface type (is itself an
64  * interface type, or might contain entities of interface type).
65  *
66  * @param type a non-null pointer to a type description
67  * @return true if the given type relates to an interface type
68  */
69 bool relatesToInterfaceType(typelib_TypeDescription const * type);
70 
71 } } }
72 
73 #endif
74