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>
63 inline static void * SAL_CALL
operator new (
size_t nSize )
65 inline static void SAL_CALL
operator delete (
void * pMem )
67 inline static void * SAL_CALL
operator new ( size_t,
void * pMem )
69 inline static void SAL_CALL
operator delete (
void *,
void * )
82 inline Type( TypeClass eTypeClass, const ::rtl::OUString & rTypeName );
89 inline Type( TypeClass eTypeClass,
const sal_Char * pTypeName );
128 inline Type & SAL_CALL operator = (
const Type & rType );
135 {
return (TypeClass)_pType->eTypeClass; }
141 inline ::rtl::OUString SAL_CALL
getTypeName()
const;
214 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType( const ::com::sun::star::uno::Type * );
255 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType(
289 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType( const ::rtl::OUString * );
300 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType(
const sal_Int16 * );
311 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType(
const sal_uInt16 * );
322 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType(
const sal_Int32 * );
333 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType(
const sal_uInt32 * );
344 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType(
const sal_Int64 * );
355 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType(
const sal_uInt64 * );
366 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType(
const float * );
377 inline const ::com::sun::star::uno::Type & SAL_CALL
getCppuType(
const double * );
397 template<
typename T >
inline const ::com::sun::star::uno::Type & SAL_CALL
411 template<>
inline const ::com::sun::star::uno::Type & SAL_CALL
bool operator==(const Any &rAny, const C &value)
Template equality operator: compares set value of left side any to right side value.
Definition: Any.hxx:563
UnoType_NoAcquire
Enum defining UNO_TYPE_NO_ACQUIRE for type description reference transfer.
Definition: Type.h:39
unsigned char sal_Bool
Definition: types.h:48
const ::com::sun::star::uno::Type & getCppuBooleanType()
Gets the meta type of IDL type boolean.
Definition: Type.hxx:110
const ::com::sun::star::uno::Type & getCppuType< sal_Unicode >()
Gets the meta type of IDL type char.
Definition: Type.hxx:195
~Type()
Destructor: Releases acquired C type description reference.
Definition: Type.h:120
This enum value can be used for creating a Type object granting a given type description reference...
Definition: Type.h:44
Helper class to specify a type pointer for idl arrays.
Definition: Type.h:194
__sal_NoAcquire
Definition: types.h:368
SAL_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
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.
rtl::OUString getTypeName(rtl::OUString const &rEnvDcp)
Get the OBI type part of an environment descriptor.
Definition: EnvDcp.hxx:38
char sal_Char
A legacy synonym for char.
Definition: types.h:130
const ::com::sun::star::uno::Type & getCppuCharType()
Gets the meta type of IDL type char.
Definition: Type.hxx:133
const ::com::sun::star::uno::Type & getCharCppuType()
Gets the meta type of IDL type char.
Definition: Type.hxx:129
Holds a weak reference to a type description.
Definition: typedescription.h:40
typelib_TypeDescriptionReference * getTypeLibType() const
Gets the C typelib type description reference pointer.
Definition: Type.h:154
static typelib_TypeDescriptionReference * s_pType
Definition: Type.h:197
const ::com::sun::star::uno::Type & getCppuVoidType()
Gets the meta type of IDL type void.
Definition: Type.hxx:101
void getDescription(typelib_TypeDescription **ppDescr) const
Obtains a full type description of set type.
Definition: Type.h:147
bool operator!=(const Any &rAny, const C &value)
Template unequality operator: compares set value of left side any to right side value.
Definition: Any.hxx:574
bool equals(const Type &rType) const
Compares two types.
Definition: Type.h:173
C++ class representing an IDL meta type.
Definition: Type.h:54
CPPU_DLLPUBLIC void typelib_typedescriptionreference_getDescription(typelib_TypeDescription **ppRet, typelib_TypeDescriptionReference *pRef) SAL_THROW_EXTERN_C()
Retrieves the type description for a given reference.
TypeClass getTypeClass() const
Gets the type class of set type.
Definition: Type.h:134
signed char sal_Int8
Definition: types.h:53
Full type description of a type.
Definition: typedescription.h:71
bool isAssignableFrom(const Type &rType) const
Tests if values of this reflected type can be assigned by values of given type.
Definition: Type.h:165
const ::com::sun::star::uno::Type & getBooleanCppuType()
Gets the meta type of IDL type boolean.
Definition: Type.hxx:114
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.
CPPU_DLLPUBLIC void typelib_typedescriptionreference_release(typelib_TypeDescriptionReference *pRef) SAL_THROW_EXTERN_C()
Increments reference count of type description reference.
SAL_DLLPUBLIC void * rtl_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:588
const ::com::sun::star::uno::Type & getCppuType(const ::com::sun::star::uno::Type *)
Gets the meta type of IDL type "type".
const ::com::sun::star::uno::Type & getVoidCppuType()
Gets the meta type of IDL type void.
Definition: Type.hxx:105