19 #ifndef INCLUDED_COM_SUN_STAR_UNO_TYPE_H
20 #define INCLUDED_COM_SUN_STAR_UNO_TYPE_H
23 #include <com/sun/star/uno/TypeClass.hdl>
64 inline static void * SAL_CALL
operator new (
size_t nSize )
SAL_THROW(())
66 inline static void SAL_CALL
operator delete (
void * pMem )
SAL_THROW(())
68 inline static void * SAL_CALL
operator new ( size_t,
void * pMem )
SAL_THROW(())
70 inline static void SAL_CALL
operator delete (
void *,
void * )
SAL_THROW(())
83 inline Type( TypeClass eTypeClass, const ::rtl::OUString & rTypeName )
SAL_THROW(());
215 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType( const ::com::sun::star::uno::Type * )
SAL_THROW(());
225 inline const ::com::sun::star::uno::Type & SAL_CALL
getVoidCppuType() SAL_THROW(());
231 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuBooleanType() SAL_THROW(());
236 inline const ::com::sun::star::uno::Type & SAL_CALL
getBooleanCppuType() SAL_THROW(());
246 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType( const
sal_Bool * ) SAL_THROW(());
256 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType(
257 bool const * ) SAL_THROW(());
263 inline const ::com::sun::star::uno::Type & SAL_CALL
getCharCppuType() SAL_THROW(());
268 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuCharType() SAL_THROW(());
279 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType( const
sal_Int8 * ) SAL_THROW(());
290 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType( const ::rtl::OUString * ) SAL_THROW(());
301 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType( const sal_Int16 * ) SAL_THROW(());
312 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType( const sal_uInt16 * ) SAL_THROW(());
323 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType( const sal_Int32 * ) SAL_THROW(());
334 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType( const sal_uInt32 * ) SAL_THROW(());
345 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType( const sal_Int64 * ) SAL_THROW(());
356 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType( const sal_uInt64 * ) SAL_THROW(());
367 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType( const
float * ) SAL_THROW(());
378 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType( const
double * ) SAL_THROW(());
386 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuArrayType1( T * pT ) SAL_THROW(());
393 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuArrayType2( T * pT ) SAL_THROW(());
400 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuArrayType3( T * pT ) SAL_THROW(());
407 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuArrayType4( T * pT ) SAL_THROW(());
414 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuArrayType5( T * pT ) SAL_THROW(());
421 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuArrayType6( T * pT ) SAL_THROW(());
441 template< typename T > inline const ::com::sun::star::uno::Type & SAL_CALL
455 template<> inline const ::com::sun::star::uno::Type & SAL_CALL
const ::com::sun::star::uno::Type & getVoidCppuType()
Gets the meta type of IDL type void.
Definition: Type.hxx:106
Holds a weak reference to a type description.
Definition: typedescription.h:40
const ::com::sun::star::uno::Type & getCppuArrayType2(T *pT)
Array template function to get meta type for two-dimensional arrays.
Definition: Type.hxx:207
Type & operator=(const Type &rType)
Assignment operator: Acquires right side type and releases previously set type.
Definition: Type.hxx:82
static typelib_TypeDescriptionReference * s_pType
Definition: Type.h:198
C++ class representing an IDL meta type.
Definition: Type.h:55
sal_Bool operator==(const Type &rType) const
Equality operator: Compares two types.
Definition: Type.h:181
UnoType_NoAcquire
Enum defining UNO_TYPE_NO_ACQUIRE for type description reference transfer.
Definition: Type.h:40
CPPU_DLLPUBLIC sal_Bool typelib_typedescriptionreference_equals(const typelib_TypeDescriptionReference *p1, const typelib_TypeDescriptionReference *p2) SAL_THROW_EXTERN_C()
Tests whether two types description references are equal, i.e.
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
CPPU_DLLPUBLIC void typelib_typedescriptionreference_release(typelib_TypeDescriptionReference *pRef) SAL_THROW_EXTERN_C()
Increments reference count of type description reference.
This enum value can be used for creating a Type object granting a given type description reference...
Definition: Type.h:45
Type()
Default Constructor: Type is set to void.
Definition: Type.hxx:36
const ::com::sun::star::uno::Type & getBooleanCppuType()
Gets the meta type of IDL type boolean.
Definition: Type.hxx:115
sal_uInt16 sal_Unicode
Definition: types.h:136
sal_Bool operator!=(const Type &rType) const
Unequality operator: Compares two types.
Definition: Type.h:188
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
sal_Bool equals(const Type &rType) const
Compares two types.
Definition: Type.h:174
Full type description of a type.
Definition: typedescription.h:71
inline::rtl::OUString getTypeName() const
Gets the name of the set type.
Definition: Type.hxx:77
const ::com::sun::star::uno::Type & getCppuCharType()
Gets the meta type of IDL type char.
Definition: Type.hxx:134
TypeClass getTypeClass() const
Gets the type class of set type.
Definition: Type.h:135
const ::com::sun::star::uno::Type & getCppuVoidType()
Gets the meta type of IDL type void.
Definition: Type.hxx:102
void getDescription(typelib_TypeDescription **ppDescr) const
Obtains a full type description of set type.
Definition: Type.h:148
const ::com::sun::star::uno::Type & getCppuBooleanType()
Gets the meta type of IDL type boolean.
Definition: Type.hxx:111
const ::com::sun::star::uno::Type & getCppuArrayType6(T *pT)
Array template function to get meta type for six-dimensional arrays.
Definition: Type.hxx:285
const ::com::sun::star::uno::Type & getCppuType(const ::com::sun::star::uno::Type *)
Gets the meta type of IDL type "type".
~Type()
Destructor: Releases acquired C type description reference.
Definition: Type.h:121
typelib_TypeClass eTypeClass
type class of type
Definition: typedescription.h:52
unsigned char sal_Bool
Definition: types.h:46
__sal_NoAcquire
Definition: types.h:372
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 & getCppuArrayType5(T *pT)
Array template function to get meta type for five-dimensional arrays.
Definition: Type.hxx:264
Helper class to specify a type pointer for idl arrays.
Definition: Type.h:195
char sal_Char
Definition: types.h:124
CPPU_DLLPUBLIC sal_Bool typelib_typedescriptionreference_isAssignableFrom(typelib_TypeDescriptionReference *pAssignable, typelib_TypeDescriptionReference *pFrom) SAL_THROW_EXTERN_C()
Tests if values of type pAssignable can be assigned by values of type pFrom.
signed char sal_Int8
Definition: types.h:51
sal_Bool isAssignableFrom(const Type &rType) const
Tests if values of this reflected type can be assigned by values of given type.
Definition: Type.h:166
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
typelib_TypeDescriptionReference * getTypeLibType() const
Gets the C typelib type description reference pointer.
Definition: Type.h:155
CPPU_DLLPUBLIC void typelib_typedescriptionreference_getDescription(typelib_TypeDescription **ppRet, typelib_TypeDescriptionReference *pRef) SAL_THROW_EXTERN_C()
Retrieves the type description for a given reference.
const ::com::sun::star::uno::Type & getCppuArrayType3(T *pT)
Array template function to get meta type for three-dimensional arrays.
Definition: Type.hxx:225
#define SAL_THROW(exc)
Definition of function throw clause macros.
Definition: types.h:358