19 #ifndef INCLUDED_COM_SUN_STAR_UNO_TYPE_HXX
20 #define INCLUDED_COM_SUN_STAR_UNO_TYPE_HXX
72 : _pType( rType._pType )
79 return ::rtl::OUString( _pType->
pTypeName );
99 return ::cppu::UnoType< ::com::sun::star::uno::Type >::get();
104 return ::cppu::UnoType< ::cppu::UnoVoidType >::get();
108 return ::cppu::UnoType< ::cppu::UnoVoidType >::get();
113 return ::cppu::UnoType< bool >::get();
117 return ::cppu::UnoType< bool >::get();
121 return ::cppu::UnoType< bool >::get();
127 return ::cppu::UnoType< bool >::get();
132 return ::cppu::UnoType< ::cppu::UnoCharType >::get();
136 return ::cppu::UnoType< ::cppu::UnoCharType >::get();
141 return ::cppu::UnoType< ::sal_Int8 >::get();
146 return ::cppu::UnoType< ::rtl::OUString >::get();
151 return ::cppu::UnoType< ::sal_Int16 >::get();
156 return ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get();
161 return ::cppu::UnoType< ::sal_Int32 >::get();
166 return ::cppu::UnoType< ::sal_uInt32 >::get();
171 return ::cppu::UnoType< ::sal_Int64 >::get();
176 return ::cppu::UnoType< ::sal_uInt64 >::get();
181 return ::cppu::UnoType< float >::get();
186 return ::cppu::UnoType< double >::get();
194 const ::com::sun::star::uno::Type & rElementType =
196 sal_Int32 size =
sizeof( **pT );
197 sal_Int32 dim1 =
sizeof( *pT ) / size;
211 const ::com::sun::star::uno::Type & rElementType =
213 sal_Int32 size =
sizeof( ***pT );
214 sal_Int32 dim2 =
sizeof( **pT ) / size;
215 sal_Int32 dim1 =
sizeof( *pT ) / dim2 / size;
229 const ::com::sun::star::uno::Type & rElementType =
231 sal_Int32 size =
sizeof( ****pT );
232 sal_Int32 dim3 =
sizeof( ***pT ) / size;
233 sal_Int32 dim2 =
sizeof( **pT ) / dim3 / size;
234 sal_Int32 dim1 =
sizeof( *pT ) / (dim2 * dim3)/ size;
237 3, dim1, dim2, dim3 );
248 const ::com::sun::star::uno::Type & rElementType =
250 sal_Int32 size =
sizeof( *****pT );
251 sal_Int32 dim4 =
sizeof( ****pT ) / size;
252 sal_Int32 dim3 =
sizeof( ***pT ) / dim4 / size;
253 sal_Int32 dim2 =
sizeof( **pT ) / (dim3 * dim4) / size;
254 sal_Int32 dim1 =
sizeof( *pT ) / (dim2 * dim3 * dim4) / size;
257 4, dim1, dim2, dim3, dim4 );
268 const ::com::sun::star::uno::Type & rElementType =
270 sal_Int32 size =
sizeof( ******pT );
271 sal_Int32 dim5 =
sizeof( *****pT ) / size;
272 sal_Int32 dim4 =
sizeof( ****pT ) / dim5 / size;
273 sal_Int32 dim3 =
sizeof( ***pT ) / (dim4 * dim5) / size;
274 sal_Int32 dim2 =
sizeof( **pT ) / (dim3 * dim4 * dim5) / size;
275 sal_Int32 dim1 =
sizeof( *pT ) / (dim2 * dim3 * dim4 * dim5) / size;
278 5, dim1, dim2, dim3, dim4, dim5 );
289 const ::com::sun::star::uno::Type & rElementType =
291 sal_Int32 size =
sizeof( *******pT );
292 sal_Int32 dim6 =
sizeof( ******pT ) / size;
293 sal_Int32 dim5 =
sizeof( *****pT ) / dim6 / size;
294 sal_Int32 dim4 =
sizeof( ****pT ) / (dim5 * dim6) / size;
295 sal_Int32 dim3 =
sizeof( ***pT ) / (dim4 * dim5 * dim6) / size;
296 sal_Int32 dim2 =
sizeof( **pT ) / (dim3 * dim4 * dim5 * dim6) / size;
297 sal_Int32 dim1 =
sizeof( *pT ) / (dim2 * dim3 * dim4 * dim5 * dim6) / size;
300 6, dim1, dim2, dim3, dim4, dim5, dim6 );
306 template<
typename T >
309 return ::cppu::UnoType< T >::get();
316 return ::cppu::UnoType< ::cppu::UnoCharType >::get();
CPPU_DLLPUBLIC void typelib_typedescriptionreference_assign(typelib_TypeDescriptionReference **ppDest, typelib_TypeDescriptionReference *pSource) SAL_THROW_EXTERN_C()
Assigns a type.
const ::com::sun::star::uno::Type & getCppuCharType()
Gets the meta type of IDL type char.
Definition: Type.hxx:134
Holds a weak reference to a type description.
Definition: typedescription.h:40
Type & operator=(const Type &rType)
Assignment operator: Acquires right side type and releases previously set type.
Definition: Type.hxx:82
#define SAL_UNUSED_PARAMETER
Annotate unused but required C++ function parameters.
Definition: types.h:570
C++ class representing an IDL meta type.
Definition: Type.h:55
UnoType_NoAcquire
Enum defining UNO_TYPE_NO_ACQUIRE for type description reference transfer.
Definition: Type.h:40
CPPU_DLLPUBLIC void typelib_typedescriptionreference_acquire(typelib_TypeDescriptionReference *pRef) SAL_THROW_EXTERN_C()
Increments reference count of type description reference.
const ::com::sun::star::uno::Type & getCppuBooleanType()
Gets the meta type of IDL type boolean.
Definition: Type.hxx:111
enum _typelib_TypeClass typelib_TypeClass
This type class enum is binary compatible with the IDL enum com.sun.star.uno.TypeClass.
Type()
Default Constructor: Type is set to void.
Definition: Type.hxx:36
const ::com::sun::star::uno::Type & getCppuArrayType5(T *pT)
Array template function to get meta type for five-dimensional arrays.
Definition: Type.hxx:264
::com::sun::star::uno::Type const & getTypeFavourUnsigned(SAL_UNUSED_PARAMETER T const *)
A working replacement for getCppuType (see there).
Definition: unotype.hxx:287
rtl_uString * pTypeName
fully qualified name of type
Definition: typedescription.h:55
const ::com::sun::star::uno::Type & getCppuArrayType1(T *pT)
Array template function to get meta type for one-dimensional arrays.
Definition: Type.hxx:190
const ::com::sun::star::uno::Type & getCppuArrayType3(T *pT)
Array template function to get meta type for three-dimensional arrays.
Definition: Type.hxx:225
const ::com::sun::star::uno::Type & getCppuArrayType6(T *pT)
Array template function to get meta type for six-dimensional arrays.
Definition: Type.hxx:285
inline::rtl::OUString getTypeName() const
Gets the name of the set type.
Definition: Type.hxx:77
CPPU_DLLPUBLIC void typelib_typedescriptionreference_newByAsciiName(typelib_TypeDescriptionReference **ppTDR, typelib_TypeClass eTypeClass, const sal_Char *pTypeName) SAL_THROW_EXTERN_C()
Creates a type description reference.
CPPU_DLLPUBLIC void typelib_static_array_type_init(typelib_TypeDescriptionReference **ppRef, typelib_TypeDescriptionReference *pElementType, sal_Int32 nDimensions,...) SAL_THROW_EXTERN_C()
Inits static array type reference.
const ::com::sun::star::uno::Type & getVoidCppuType()
Gets the meta type of IDL type void.
Definition: Type.hxx:106
const ::com::sun::star::uno::Type & getCppuType(SAL_UNUSED_PARAMETER const ::com::sun::star::uno::Type *)
Definition: Type.hxx:97
const ::com::sun::star::uno::Type & getBooleanCppuType()
Gets the meta type of IDL type boolean.
Definition: Type.hxx:115
const ::com::sun::star::uno::Type & getCppuArrayType2(T *pT)
Array template function to get meta type for two-dimensional arrays.
Definition: Type.hxx:207
unsigned char sal_Bool
Definition: types.h:46
__sal_NoAcquire
Definition: types.h:372
const ::com::sun::star::uno::Type & getCppuType< sal_Unicode >()
Gets the meta type of IDL type char.
Definition: Type.hxx:313
const ::com::sun::star::uno::Type & getCharCppuType()
Gets the meta type of IDL type char.
Definition: Type.hxx:130
const ::com::sun::star::uno::Type & getCppuArrayType4(T *pT)
Array template function to get meta type for four-dimensional arrays.
Definition: Type.hxx:244
const ::com::sun::star::uno::Type & getCppuVoidType()
Gets the meta type of IDL type void.
Definition: Type.hxx:102
CPPU_DLLPUBLIC typelib_TypeDescriptionReference ** typelib_static_type_getByTypeClass(typelib_TypeClass eTypeClass) SAL_THROW_EXTERN_C()
Gets static type reference of standard types by type class.
Helper class to specify a type pointer for idl arrays.
Definition: Type.h:195
char sal_Char
Definition: types.h:124
signed char sal_Int8
Definition: types.h:51
CPPU_DLLPUBLIC void typelib_typedescriptionreference_new(typelib_TypeDescriptionReference **ppTDR, typelib_TypeClass eTypeClass, rtl_uString *pTypeName) SAL_THROW_EXTERN_C()
Creates a type description reference.
type class of void
Definition: typeclass.h:29
typelib_TypeDescriptionReference * getTypeLibType() const
Gets the C typelib type description reference pointer.
Definition: Type.h:155
#define SAL_THROW(exc)
Definition of function throw clause macros.
Definition: types.h:358