4 #ifndef INCLUDED_CPPU_UNOTYPE_HXX
5 #define INCLUDED_CPPU_UNOTYPE_HXX
11 #if defined LIBO_INTERNAL_ONLY
12 #include <type_traits>
19 namespace com {
namespace sun {
namespace star {
namespace uno {
23 template<
typename >
class Reference;
24 template<
typename >
class Sequence;
27 namespace rtl {
class OUString; }
31 template<
typename >
class UnoType;
54 struct UnoUnsignedShortType;
88 return *
reinterpret_cast< css::uno::Type
const *
>(tdr);
91 inline css::uno::Type
const &
101 namespace cppu {
namespace detail {
103 inline css::uno::Type
const &
108 inline css::uno::Type
const &
113 inline css::uno::Type
const &
118 inline css::uno::Type
const &
123 inline css::uno::Type
const &
128 inline css::uno::Type
const &
130 SAL_UNUSED_PARAMETER ::cppu::UnoUnsignedShortType
const *)
136 #if defined LIBO_INTERNAL_ONLY
138 inline css::uno::Type
const &
144 inline css::uno::Type
const &
149 inline css::uno::Type
const &
155 inline css::uno::Type
const &
160 inline css::uno::Type
const &
166 inline css::uno::Type
const &
171 inline css::uno::Type
const &
176 inline css::uno::Type
const &
181 #if defined LIBO_INTERNAL_ONLY
183 inline css::uno::Type
const &
189 inline css::uno::Type
const &
194 inline css::uno::Type
const &
200 inline css::uno::Type
const &
206 template<
typename T >
inline css::uno::Type
const &
208 SAL_UNUSED_PARAMETER ::cppu::UnoSequenceType< T >
const *)
219 template<
typename T >
inline css::uno::Type
const &
239 template<
typename T >
inline css::uno::Type
const &
243 return ::cppu::UnoType< T >::get();
272 static css::uno::Type
const &
get() {
274 #if defined LIBO_INTERNAL_ONLY
275 typedef typename std::remove_reference<T>::type T1;
303 template<
typename T >
inline css::uno::Type
const &
305 return ::cppu::UnoType< T >::get();
318 inline css::uno::Type
const &
320 return ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get();
333 template<
typename T >
inline css::uno::Type
const &
350 template<
typename T >
inline css::uno::Type
const &
352 return ::cppu::UnoType< T >::get();
366 inline css::uno::Type
const &
368 return ::cppu::UnoType< ::cppu::UnoCharType >::get();
382 template<
typename T >
inline css::uno::Type
const &
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:358
#define SAL_UNUSED_PARAMETER
Annotate unused but required C++ function parameters.
Definition: types.h:548
unsigned char sal_Bool
Definition: types.h:18
sal_uInt16 sal_Unicode
Definition: types.h:103
signed char sal_Int8
Definition: types.h:23
@ typelib_TypeClass_VOID
type class of void
Definition: typeclass.h:12
@ typelib_TypeClass_UNSIGNED_SHORT
type class of unsigned short
Definition: typeclass.h:22
@ typelib_TypeClass_CHAR
type class of char
Definition: typeclass.h:14
@ typelib_TypeClass_HYPER
type class of hyper
Definition: typeclass.h:28
@ typelib_TypeClass_BYTE
type class of byte
Definition: typeclass.h:18
@ typelib_TypeClass_BOOLEAN
type class of boolean
Definition: typeclass.h:16
@ typelib_TypeClass_INTERFACE
type class of interface
Definition: typeclass.h:62
@ typelib_TypeClass_STRING
type class of string
Definition: typeclass.h:36
@ typelib_TypeClass_SHORT
type class of short
Definition: typeclass.h:20
@ typelib_TypeClass_FLOAT
type class of float
Definition: typeclass.h:32
@ typelib_TypeClass_DOUBLE
type class of double
Definition: typeclass.h:34
@ typelib_TypeClass_ANY
type class of any
Definition: typeclass.h:40
@ typelib_TypeClass_TYPE
type class of type
Definition: typeclass.h:38
@ typelib_TypeClass_UNSIGNED_HYPER
type class of unsigned hyper
Definition: typeclass.h:30
@ typelib_TypeClass_LONG
type class of long
Definition: typeclass.h:24
@ typelib_TypeClass_UNSIGNED_LONG
type class of unsigned long
Definition: typeclass.h:26
@ typelib_TypeClass_EXCEPTION
type class of exception
Definition: typeclass.h:53
enum _typelib_TypeClass typelib_TypeClass
This type class enum is binary compatible with the IDL enum com.sun.star.uno.TypeClass.
CPPU_DLLPUBLIC void typelib_static_sequence_type_init(typelib_TypeDescriptionReference **ppRef, typelib_TypeDescriptionReference *pElementType) SAL_THROW_EXTERN_C()
Inits static sequence type reference.
struct SAL_DLLPUBLIC_RTTI _typelib_TypeDescriptionReference typelib_TypeDescriptionReference
Holds a weak reference to a type description.
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.
Definition: bootstrap.hxx:14
Definition: Enterable.hxx:11
::com::sun::star::uno::Type const & getTypeFavourChar(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Sequence< T > const *)
Definition: Sequence.hxx:323
css::uno::Type const & getTypeFavourUnsigned(SAL_UNUSED_PARAMETER T const *)
A working replacement for getCppuType (see there).
Definition: unotype.hxx:304
Definition: unotype.hxx:83
css::uno::Type const & getTypeFromTypeDescriptionReference(::typelib_TypeDescriptionReference *const *tdr)
Definition: unotype.hxx:85
css::uno::Type const & getTypeFromTypeClass(::typelib_TypeClass tc)
Definition: unotype.hxx:92
css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::uno::Reference< T > const *)
Definition: unotype.hxx:240
css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::cppu::UnoVoidType const *)
Definition: unotype.hxx:104
Get the css::uno::Type instance representing a certain UNO type.
Definition: unotype.hxx:270
static css::uno::Type const & get()
Definition: unotype.hxx:272
A unique C++ type template representing the UNO sequence types in cppu::UnoType.
Definition: unotype.hxx:81