LibreOffice
LibreOffice 6.4 SDK C/C++ API Reference
|
Go to the documentation of this file.
20 #ifndef INCLUDED_CPPU_UNOTYPE_HXX
21 #define INCLUDED_CPPU_UNOTYPE_HXX
27 #if defined LIBO_INTERNAL_ONLY
28 #include <type_traits>
35 namespace com {
namespace sun {
namespace star {
namespace uno {
39 template<
typename >
class Reference;
40 template<
typename >
class Sequence;
43 namespace rtl {
class OUString; }
47 template<
typename >
class UnoType;
70 struct UnoUnsignedShortType;
104 return *
reinterpret_cast< css::uno::Type
const *
>(tdr);
107 inline css::uno::Type
const &
117 namespace cppu {
namespace detail {
119 inline css::uno::Type
const &
124 inline css::uno::Type
const &
129 inline css::uno::Type
const &
134 inline css::uno::Type
const &
139 inline css::uno::Type
const &
144 inline css::uno::Type
const &
146 SAL_UNUSED_PARAMETER ::cppu::UnoUnsignedShortType
const *)
152 #if defined LIBO_INTERNAL_ONLY
154 inline css::uno::Type
const &
160 inline css::uno::Type
const &
165 inline css::uno::Type
const &
171 inline css::uno::Type
const &
176 inline css::uno::Type
const &
182 inline css::uno::Type
const &
187 inline css::uno::Type
const &
192 inline css::uno::Type
const &
197 #if defined LIBO_INTERNAL_ONLY
199 inline css::uno::Type
const &
205 inline css::uno::Type
const &
210 inline css::uno::Type
const &
216 inline css::uno::Type
const &
222 template<
typename T >
inline css::uno::Type
const &
224 SAL_UNUSED_PARAMETER ::cppu::UnoSequenceType< T >
const *)
235 template<
typename T >
inline css::uno::Type
const &
255 template<
typename T >
inline css::uno::Type
const &
259 return ::cppu::UnoType< T >::get();
288 static css::uno::Type
const &
get() {
290 #if defined LIBO_INTERNAL_ONLY
291 typedef typename std::remove_reference<T>::type T1;
319 template<
typename T >
inline css::uno::Type
const &
321 return ::cppu::UnoType< T >::get();
334 inline css::uno::Type
const &
336 return ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get();
349 template<
typename T >
inline css::uno::Type
const &
366 template<
typename T >
inline css::uno::Type
const &
368 return ::cppu::UnoType< T >::get();
382 inline css::uno::Type
const &
384 return ::cppu::UnoType< ::cppu::UnoCharType >::get();
398 template<
typename T >
inline css::uno::Type
const &
CPPU_DLLPUBLIC void typelib_static_sequence_type_init(typelib_TypeDescriptionReference **ppRef, typelib_TypeDescriptionReference *pElementType) SAL_THROW_EXTERN_C()
Inits static sequence type reference.
#define SAL_UNUSED_PARAMETER
Annotate unused but required C++ function parameters.
Definition: types.h:559
@ typelib_TypeClass_SHORT
type class of short
Definition: typeclass.h:37
@ typelib_TypeClass_UNSIGNED_HYPER
type class of unsigned hyper
Definition: typeclass.h:47
static css::uno::Type const & get()
Definition: unotype.hxx:288
css::uno::Type const & getTypeFavourUnsigned(SAL_UNUSED_PARAMETER T const *)
A working replacement for getCppuType (see there).
Definition: unotype.hxx:320
Definition: Enterable.hxx:27
@ typelib_TypeClass_LONG
type class of long
Definition: typeclass.h:41
@ typelib_TypeClass_EXCEPTION
type class of exception
Definition: typeclass.h:70
@ typelib_TypeClass_VOID
type class of void
Definition: typeclass.h:29
@ typelib_TypeClass_UNSIGNED_LONG
type class of unsigned long
Definition: typeclass.h:43
@ typelib_TypeClass_DOUBLE
type class of double
Definition: typeclass.h:51
@ typelib_TypeClass_ANY
type class of any
Definition: typeclass.h:57
css::uno::Type const & getTypeFromTypeClass(::typelib_TypeClass tc)
Definition: unotype.hxx:108
@ typelib_TypeClass_FLOAT
type class of float
Definition: typeclass.h:49
unsigned char sal_Bool
Definition: types.h:38
enum _typelib_TypeClass typelib_TypeClass
This type class enum is binary compatible with the IDL enum com.sun.star.uno.TypeClass.
@ typelib_TypeClass_BOOLEAN
type class of boolean
Definition: typeclass.h:33
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.
A unique C++ type template representing the UNO sequence types in cppu::UnoType.
Definition: unotype.hxx:97
@ typelib_TypeClass_INTERFACE
type class of interface
Definition: typeclass.h:79
Definition: bootstrap.hxx:30
@ typelib_TypeClass_TYPE
type class of type
Definition: typeclass.h:55
Get the css::uno::Type instance representing a certain UNO type.
Definition: unotype.hxx:286
@ typelib_TypeClass_HYPER
type class of hyper
Definition: typeclass.h:45
::com::sun::star::uno::Type const & getTypeFavourChar(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Sequence< T > const *)
Definition: Sequence.hxx:308
sal_uInt16 sal_Unicode
Definition: types.h:141
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:396
@ typelib_TypeClass_UNSIGNED_SHORT
type class of unsigned short
Definition: typeclass.h:39
Definition: unotype.hxx:99
@ typelib_TypeClass_BYTE
type class of byte
Definition: typeclass.h:35
@ typelib_TypeClass_STRING
type class of string
Definition: typeclass.h:53
struct SAL_DLLPUBLIC_RTTI _typelib_TypeDescriptionReference typelib_TypeDescriptionReference
Holds a weak reference to a type description.
@ typelib_TypeClass_CHAR
type class of char
Definition: typeclass.h:31
signed char sal_Int8
Definition: types.h:43
css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::cppu::UnoVoidType const *)
Definition: unotype.hxx:120
css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::uno::Reference< T > const *)
Definition: unotype.hxx:256
css::uno::Type const & getTypeFromTypeDescriptionReference(::typelib_TypeDescriptionReference *const *tdr)
Definition: unotype.hxx:101