23#ifndef INCLUDED_COM_SUN_STAR_UNO_TYPE_HXX
24#define INCLUDED_COM_SUN_STAR_UNO_TYPE_HXX
51inline Type::Type( TypeClass eTypeClass, const ::rtl::OUString & rTypeName )
57inline Type::Type( TypeClass eTypeClass,
const char * pTypeName )
80 : _pType( rType._pType )
87 return ::rtl::OUString( _pType->pTypeName );
96#if defined LIBO_INTERNAL_ONLY
99 std::swap(_pType, rType._pType);
108#if defined LIBO_INTERNAL_ONLY
115template<
typename charT,
typename traits> std::basic_ostream<charT, traits> &
116operator <<(std::basic_ostream<charT, traits> & stream, Type
const & type)
117{
return stream << type.getTypeName(); }
127 return ::cppu::UnoType< ::com::sun::star::uno::Type >::get();
132 return ::cppu::UnoType<void>::get();
136 return ::cppu::UnoType<void>::get();
141 return ::cppu::UnoType< bool >::get();
145 return ::cppu::UnoType< bool >::get();
149 return ::cppu::UnoType< bool >::get();
155 return ::cppu::UnoType< bool >::get();
160 return ::cppu::UnoType< ::cppu::UnoCharType >::get();
164 return ::cppu::UnoType< ::cppu::UnoCharType >::get();
169 return ::cppu::UnoType< ::sal_Int8 >::get();
174 return ::cppu::UnoType< ::rtl::OUString >::get();
179 return ::cppu::UnoType< ::sal_Int16 >::get();
184 return ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get();
189 return ::cppu::UnoType< ::sal_Int32 >::get();
194 return ::cppu::UnoType< ::sal_uInt32 >::get();
199 return ::cppu::UnoType< ::sal_Int64 >::get();
204 return ::cppu::UnoType< ::sal_uInt64 >::get();
209 return ::cppu::UnoType< float >::get();
214 return ::cppu::UnoType< double >::get();
217template<
typename T >
220 return ::cppu::UnoType< T >::get();
226 return ::cppu::UnoType< ::cppu::UnoCharType >::get();
__sal_NoAcquire
Definition types.h:353
#define SAL_UNUSED_PARAMETER
Annotate unused but required C++ function parameters.
Definition types.h:568
unsigned char sal_Bool
Definition types.h:38
signed char sal_Int8
Definition types.h:43
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_acquire(typelib_TypeDescriptionReference *pRef) SAL_THROW_EXTERN_C()
Increments reference count of type description reference.
struct SAL_DLLPUBLIC_RTTI _typelib_TypeDescriptionReference typelib_TypeDescriptionReference
Holds a weak reference to a type description.
CPPU_DLLPUBLIC void typelib_typedescriptionreference_assign(typelib_TypeDescriptionReference **ppDest, typelib_TypeDescriptionReference *pSource) SAL_THROW_EXTERN_C()
Assigns a type.
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_newByAsciiName(typelib_TypeDescriptionReference **ppTDR, typelib_TypeClass eTypeClass, const char *pTypeName) SAL_THROW_EXTERN_C()
Creates a type description reference.
@ typelib_TypeClass_VOID
type class of void
Definition typeclass.h:32
enum _typelib_TypeClass typelib_TypeClass
This type class enum is binary compatible with the IDL enum com.sun.star.uno.TypeClass.
const ::com::sun::star::uno::Type & getCppuBooleanType()
Gets the meta type of IDL type boolean.
Definition Type.hxx:139
const ::com::sun::star::uno::Type & getBooleanCppuType()
Gets the meta type of IDL type boolean.
Definition Type.hxx:143
const ::com::sun::star::uno::Type & getVoidCppuType()
Gets the meta type of IDL type void.
Definition Type.hxx:134
const ::com::sun::star::uno::Type & getCppuCharType()
Gets the meta type of IDL type char.
Definition Type.hxx:162
const ::com::sun::star::uno::Type & getCppuVoidType()
Gets the meta type of IDL type void.
Definition Type.hxx:130
const ::com::sun::star::uno::Type & getCppuType< sal_Unicode >()
Gets the meta type of IDL type char.
Definition Type.hxx:224
const ::com::sun::star::uno::Type & getCharCppuType()
Gets the meta type of IDL type char.
Definition Type.hxx:158
const ::com::sun::star::uno::Type & getCppuType()
Gets the meta type of an IDL type.
Definition Type.hxx:218
std::basic_ostream< charT, traits > & operator<<(std::basic_ostream< charT, traits > &o, Any const &any)
Support for Any in std::ostream (and thus in CPPUNIT_ASSERT or SAL_INFO macros, for example).
Definition Any.hxx:706
UnoType_NoAcquire
Enum defining UNO_TYPE_NO_ACQUIRE for type description reference transfer.
Definition Type.h:44
C++ class representing an IDL meta type.
Definition Type.h:59
Type & operator=(const Type &rType)
Assignment operator: Acquires right side type and releases previously set type.
Definition Type.hxx:90
inline ::rtl::OUString getTypeName() const
Gets the name of the set type.
Definition Type.hxx:85
Type()
Default Constructor: Type is set to void.
Definition Type.hxx:44
typelib_TypeDescriptionReference * getTypeLibType() const
Gets the C typelib type description reference pointer.
Definition Type.h:162
static typelib_TypeDescriptionReference * s_pType
Definition Type.h:205