19 #ifndef INCLUDED_COM_SUN_STAR_UNO_TYPE_HXX 20 #define INCLUDED_COM_SUN_STAR_UNO_TYPE_HXX 47 inline Type::Type( TypeClass eTypeClass, const ::rtl::OUString & rTypeName )
76 : _pType( rType._pType )
83 return ::rtl::OUString( _pType->pTypeName );
96 #if defined LIBO_INTERNAL_ONLY 103 template<
typename charT,
typename traits> std::basic_ostream<charT, traits> &
104 operator <<(std::basic_ostream<charT, traits> & stream,
Type const & type)
115 return ::cppu::UnoType< ::com::sun::star::uno::Type >::get();
120 return ::cppu::UnoType<void>::get();
124 return ::cppu::UnoType<void>::get();
129 return ::cppu::UnoType< bool >::get();
133 return ::cppu::UnoType< bool >::get();
137 return ::cppu::UnoType< bool >::get();
143 return ::cppu::UnoType< bool >::get();
148 return ::cppu::UnoType< ::cppu::UnoCharType >::get();
152 return ::cppu::UnoType< ::cppu::UnoCharType >::get();
157 return ::cppu::UnoType< ::sal_Int8 >::get();
162 return ::cppu::UnoType< ::rtl::OUString >::get();
167 return ::cppu::UnoType< ::sal_Int16 >::get();
172 return ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get();
177 return ::cppu::UnoType< ::sal_Int32 >::get();
182 return ::cppu::UnoType< ::sal_uInt32 >::get();
187 return ::cppu::UnoType< ::sal_Int64 >::get();
192 return ::cppu::UnoType< ::sal_uInt64 >::get();
197 return ::cppu::UnoType< float >::get();
202 return ::cppu::UnoType< double >::get();
205 template<
typename T >
208 return ::cppu::UnoType< T >::get();
214 return ::cppu::UnoType< ::cppu::UnoCharType >::get();
inline ::rtl::OUString getTypeName() const
Gets the name of the set type.
Definition: Type.hxx:81
const ::com::sun::star::uno::Type & getCppuType(SAL_UNUSED_PARAMETER const ::com::sun::star::uno::Type *)
Definition: Type.hxx:113
Helper class to specify a type pointer for idl arrays.
Definition: Type.h:194
signed char sal_Int8
Definition: types.h:44
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.
const ::com::sun::star::uno::Type & getBooleanCppuType()
Gets the meta type of IDL type boolean.
Definition: Type.hxx:131
struct SAL_DLLPUBLIC_RTTI _typelib_TypeDescriptionReference typelib_TypeDescriptionReference
Holds a weak reference to a type description.
const ::com::sun::star::uno::Type & getVoidCppuType()
Gets the meta type of IDL type void.
Definition: Type.hxx:122
#define SAL_UNUSED_PARAMETER
Annotate unused but required C++ function parameters.
Definition: types.h:577
const ::com::sun::star::uno::Type & getCharCppuType()
Gets the meta type of IDL type char.
Definition: Type.hxx:146
Type & operator=(const Type &rType)
Assignment operator: Acquires right side type and releases previously set type.
Definition: Type.hxx:86
CPPU_DLLPUBLIC void typelib_typedescriptionreference_acquire(typelib_TypeDescriptionReference *pRef) SAL_THROW_EXTERN_C()
Increments reference count of type description reference.
enum _typelib_TypeClass typelib_TypeClass
This type class enum is binary compatible with the IDL enum com.sun.star.uno.TypeClass.
unsigned char sal_Bool
Definition: types.h:39
__sal_NoAcquire
Definition: types.h:366
type class of void
Definition: typeclass.h:29
const ::com::sun::star::uno::Type & getCppuType< sal_Unicode >()
Gets the meta type of IDL type char.
Definition: Type.hxx:212
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.
CPPU_DLLPUBLIC void typelib_typedescriptionreference_new(typelib_TypeDescriptionReference **ppTDR, typelib_TypeClass eTypeClass, rtl_uString *pTypeName) SAL_THROW_EXTERN_C()
Creates a type description reference.
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 & getCppuVoidType()
Gets the meta type of IDL type void.
Definition: Type.hxx:118
const ::com::sun::star::uno::Type & getCppuCharType()
Gets the meta type of IDL type char.
Definition: Type.hxx:150
const ::com::sun::star::uno::Type & getCppuBooleanType()
Gets the meta type of IDL type boolean.
Definition: Type.hxx:127
char sal_Char
A legacy synonym for char.
Definition: types.h:121
UnoType_NoAcquire
Enum defining UNO_TYPE_NO_ACQUIRE for type description reference transfer.
Definition: Type.h:39
Type()
Default Constructor: Type is set to void.
Definition: Type.hxx:40
typelib_TypeDescriptionReference * getTypeLibType() const
Gets the C typelib type description reference pointer.
Definition: Type.h:154
C++ class representing an IDL meta type.
Definition: Type.h:54