Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_UNO_TYPECLASS_HPP
2 : : #define INCLUDED_COM_SUN_STAR_UNO_TYPECLASS_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/TypeClass.hdl"
7 : :
8 : : #include "com/sun/star/uno/Type.hxx"
9 : : #include "cppu/unotype.hxx"
10 : : #include "osl/mutex.hxx"
11 : : #include "rtl/instance.hxx"
12 : :
13 : : namespace com { namespace sun { namespace star { namespace uno { namespace detail {
14 : :
15 : : struct theTypeClassType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theTypeClassType >
16 : : {
17 : 343 : ::com::sun::star::uno::Type * operator()() const
18 : : {
19 [ + - ]: 343 : ::rtl::OUString sTypeName( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.uno.TypeClass") );
20 : :
21 : : // Start inline typedescription generation
22 : 343 : typelib_TypeDescription * pTD = 0;
23 : :
24 : : rtl_uString* enumValueNames[32];
25 [ + - ]: 343 : ::rtl::OUString sEnumValue0( RTL_CONSTASCII_USTRINGPARAM("VOID") );
26 : 343 : enumValueNames[0] = sEnumValue0.pData;
27 [ + - ]: 343 : ::rtl::OUString sEnumValue1( RTL_CONSTASCII_USTRINGPARAM("CHAR") );
28 : 343 : enumValueNames[1] = sEnumValue1.pData;
29 [ + - ]: 343 : ::rtl::OUString sEnumValue2( RTL_CONSTASCII_USTRINGPARAM("BOOLEAN") );
30 : 343 : enumValueNames[2] = sEnumValue2.pData;
31 [ + - ]: 343 : ::rtl::OUString sEnumValue3( RTL_CONSTASCII_USTRINGPARAM("BYTE") );
32 : 343 : enumValueNames[3] = sEnumValue3.pData;
33 [ + - ]: 343 : ::rtl::OUString sEnumValue4( RTL_CONSTASCII_USTRINGPARAM("SHORT") );
34 : 343 : enumValueNames[4] = sEnumValue4.pData;
35 [ + - ]: 343 : ::rtl::OUString sEnumValue5( RTL_CONSTASCII_USTRINGPARAM("UNSIGNED_SHORT") );
36 : 343 : enumValueNames[5] = sEnumValue5.pData;
37 [ + - ]: 343 : ::rtl::OUString sEnumValue6( RTL_CONSTASCII_USTRINGPARAM("LONG") );
38 : 343 : enumValueNames[6] = sEnumValue6.pData;
39 [ + - ]: 343 : ::rtl::OUString sEnumValue7( RTL_CONSTASCII_USTRINGPARAM("UNSIGNED_LONG") );
40 : 343 : enumValueNames[7] = sEnumValue7.pData;
41 [ + - ]: 343 : ::rtl::OUString sEnumValue8( RTL_CONSTASCII_USTRINGPARAM("HYPER") );
42 : 343 : enumValueNames[8] = sEnumValue8.pData;
43 [ + - ]: 343 : ::rtl::OUString sEnumValue9( RTL_CONSTASCII_USTRINGPARAM("UNSIGNED_HYPER") );
44 : 343 : enumValueNames[9] = sEnumValue9.pData;
45 [ + - ]: 343 : ::rtl::OUString sEnumValue10( RTL_CONSTASCII_USTRINGPARAM("FLOAT") );
46 : 343 : enumValueNames[10] = sEnumValue10.pData;
47 [ + - ]: 343 : ::rtl::OUString sEnumValue11( RTL_CONSTASCII_USTRINGPARAM("DOUBLE") );
48 : 343 : enumValueNames[11] = sEnumValue11.pData;
49 [ + - ]: 343 : ::rtl::OUString sEnumValue12( RTL_CONSTASCII_USTRINGPARAM("STRING") );
50 : 343 : enumValueNames[12] = sEnumValue12.pData;
51 [ + - ]: 343 : ::rtl::OUString sEnumValue13( RTL_CONSTASCII_USTRINGPARAM("TYPE") );
52 : 343 : enumValueNames[13] = sEnumValue13.pData;
53 [ + - ]: 343 : ::rtl::OUString sEnumValue14( RTL_CONSTASCII_USTRINGPARAM("ANY") );
54 : 343 : enumValueNames[14] = sEnumValue14.pData;
55 [ + - ]: 343 : ::rtl::OUString sEnumValue15( RTL_CONSTASCII_USTRINGPARAM("ENUM") );
56 : 343 : enumValueNames[15] = sEnumValue15.pData;
57 [ + - ]: 343 : ::rtl::OUString sEnumValue16( RTL_CONSTASCII_USTRINGPARAM("TYPEDEF") );
58 : 343 : enumValueNames[16] = sEnumValue16.pData;
59 [ + - ]: 343 : ::rtl::OUString sEnumValue17( RTL_CONSTASCII_USTRINGPARAM("STRUCT") );
60 : 343 : enumValueNames[17] = sEnumValue17.pData;
61 [ + - ]: 343 : ::rtl::OUString sEnumValue18( RTL_CONSTASCII_USTRINGPARAM("UNION") );
62 : 343 : enumValueNames[18] = sEnumValue18.pData;
63 [ + - ]: 343 : ::rtl::OUString sEnumValue19( RTL_CONSTASCII_USTRINGPARAM("EXCEPTION") );
64 : 343 : enumValueNames[19] = sEnumValue19.pData;
65 [ + - ]: 343 : ::rtl::OUString sEnumValue20( RTL_CONSTASCII_USTRINGPARAM("SEQUENCE") );
66 : 343 : enumValueNames[20] = sEnumValue20.pData;
67 [ + - ]: 343 : ::rtl::OUString sEnumValue21( RTL_CONSTASCII_USTRINGPARAM("ARRAY") );
68 : 343 : enumValueNames[21] = sEnumValue21.pData;
69 [ + - ]: 343 : ::rtl::OUString sEnumValue22( RTL_CONSTASCII_USTRINGPARAM("INTERFACE") );
70 : 343 : enumValueNames[22] = sEnumValue22.pData;
71 [ + - ]: 343 : ::rtl::OUString sEnumValue23( RTL_CONSTASCII_USTRINGPARAM("SERVICE") );
72 : 343 : enumValueNames[23] = sEnumValue23.pData;
73 [ + - ]: 343 : ::rtl::OUString sEnumValue24( RTL_CONSTASCII_USTRINGPARAM("MODULE") );
74 : 343 : enumValueNames[24] = sEnumValue24.pData;
75 [ + - ]: 343 : ::rtl::OUString sEnumValue25( RTL_CONSTASCII_USTRINGPARAM("INTERFACE_METHOD") );
76 : 343 : enumValueNames[25] = sEnumValue25.pData;
77 [ + - ]: 343 : ::rtl::OUString sEnumValue26( RTL_CONSTASCII_USTRINGPARAM("INTERFACE_ATTRIBUTE") );
78 : 343 : enumValueNames[26] = sEnumValue26.pData;
79 [ + - ]: 343 : ::rtl::OUString sEnumValue27( RTL_CONSTASCII_USTRINGPARAM("UNKNOWN") );
80 : 343 : enumValueNames[27] = sEnumValue27.pData;
81 [ + - ]: 343 : ::rtl::OUString sEnumValue28( RTL_CONSTASCII_USTRINGPARAM("PROPERTY") );
82 : 343 : enumValueNames[28] = sEnumValue28.pData;
83 [ + - ]: 343 : ::rtl::OUString sEnumValue29( RTL_CONSTASCII_USTRINGPARAM("CONSTANT") );
84 : 343 : enumValueNames[29] = sEnumValue29.pData;
85 [ + - ]: 343 : ::rtl::OUString sEnumValue30( RTL_CONSTASCII_USTRINGPARAM("CONSTANTS") );
86 : 343 : enumValueNames[30] = sEnumValue30.pData;
87 [ + - ]: 343 : ::rtl::OUString sEnumValue31( RTL_CONSTASCII_USTRINGPARAM("SINGLETON") );
88 : 343 : enumValueNames[31] = sEnumValue31.pData;
89 : :
90 : : sal_Int32 enumValues[32];
91 : 343 : enumValues[0] = 0;
92 : 343 : enumValues[1] = 1;
93 : 343 : enumValues[2] = 2;
94 : 343 : enumValues[3] = 3;
95 : 343 : enumValues[4] = 4;
96 : 343 : enumValues[5] = 5;
97 : 343 : enumValues[6] = 6;
98 : 343 : enumValues[7] = 7;
99 : 343 : enumValues[8] = 8;
100 : 343 : enumValues[9] = 9;
101 : 343 : enumValues[10] = 10;
102 : 343 : enumValues[11] = 11;
103 : 343 : enumValues[12] = 12;
104 : 343 : enumValues[13] = 13;
105 : 343 : enumValues[14] = 14;
106 : 343 : enumValues[15] = 15;
107 : 343 : enumValues[16] = 16;
108 : 343 : enumValues[17] = 17;
109 : 343 : enumValues[18] = 18;
110 : 343 : enumValues[19] = 19;
111 : 343 : enumValues[20] = 20;
112 : 343 : enumValues[21] = 21;
113 : 343 : enumValues[22] = 22;
114 : 343 : enumValues[23] = 23;
115 : 343 : enumValues[24] = 24;
116 : 343 : enumValues[25] = 25;
117 : 343 : enumValues[26] = 26;
118 : 343 : enumValues[27] = 27;
119 : 343 : enumValues[28] = 28;
120 : 343 : enumValues[29] = 29;
121 : 343 : enumValues[30] = 30;
122 : 343 : enumValues[31] = 31;
123 : :
124 : : typelib_typedescription_newEnum( &pTD,
125 : : sTypeName.pData,
126 : : (sal_Int32)::com::sun::star::uno::TypeClass_VOID,
127 : 343 : 32, enumValueNames, enumValues );
128 : :
129 : 343 : typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
130 : 343 : typelib_typedescription_release( pTD );
131 : : // End inline typedescription generation
132 : :
133 : 343 : return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_ENUM, sTypeName ); // leaked
134 : : }
135 : : };
136 : :
137 : : } } } } }
138 : :
139 : : namespace com { namespace sun { namespace star { namespace uno {
140 : :
141 : 576 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::TypeClass const *) {
142 : 576 : return *detail::theTypeClassType::get();
143 : : }
144 : :
145 : : } } } }
146 : :
147 : 5 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::TypeClass const *) SAL_THROW(()) {
148 : 5 : return ::cppu::UnoType< ::com::sun::star::uno::TypeClass >::get();
149 : : }
150 : :
151 : : #endif // INCLUDED_COM_SUN_STAR_UNO_TYPECLASS_HPP
|