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 {
43 namespace rtl {
class OUString; }
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 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 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();
286 template<
typename T >
class UnoType {
288 static inline 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 &
type class of double
Definition: typeclass.h:51
type class of unsigned long
Definition: typeclass.h:43
type class of short
Definition: typeclass.h:37
type class of unsigned hyper
Definition: typeclass.h:47
type class of any
Definition: typeclass.h:57
type class of unsigned short
Definition: typeclass.h:39
Definition: Enterable.hxx:26
A unique C++ type template representing the UNO sequence types in cppu::UnoType.
Definition: unotype.hxx:97
::com::sun::star::uno::Type const & getTypeFavourChar(SAL_UNUSED_PARAMETER::com::sun::star::uno::Sequence< T > const *)
Definition: Sequence.hxx:229
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:410
Definition: unotype.hxx:99
type class of interface
Definition: typeclass.h:79
type class of hyper
Definition: typeclass.h:45
type class of long
Definition: typeclass.h:41
type class of string
Definition: typeclass.h:53
unsigned char sal_Bool
Definition: types.h:48
type class of type
Definition: typeclass.h:55
type class of char
Definition: typeclass.h:31
css::uno::Type const & getTypeFavourUnsigned(css::uno::Sequence< T > const *)
A working replacement for getCppuType (see there).
#define SAL_UNUSED_PARAMETER
Annotate unused but required C++ function parameters.
Definition: types.h:603
Template C++ class representing an IDL sequence.
Definition: unotype.hxx:40
signed char sal_Int8
Definition: types.h:53
sal_uInt16 sal_Unicode
Definition: types.h:155
enum _typelib_TypeClass typelib_TypeClass
This type class enum is binary compatible with the IDL enum com.sun.star.uno.TypeClass.
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.
css::uno::Type const & getTypeFromTypeDescriptionReference(::typelib_TypeDescriptionReference *const *tdr)
Definition: unotype.hxx:101
type class of boolean
Definition: typeclass.h:33
static css::uno::Type const & get()
Definition: unotype.hxx:288
Definition: bootstrap.hxx:29
type class of float
Definition: typeclass.h:49
Template reference class for interface type derived from BaseReference.
Definition: unotype.hxx:39
CPPU_DLLPUBLIC void typelib_static_sequence_type_init(typelib_TypeDescriptionReference **ppRef, typelib_TypeDescriptionReference *pElementType) SAL_THROW_EXTERN_C()
Inits static sequence type reference.
css::uno::Type const & getTypeFromTypeClass(::typelib_TypeClass tc)
Definition: unotype.hxx:108
struct SAL_DLLPUBLIC_RTTI _typelib_TypeDescriptionReference typelib_TypeDescriptionReference
Holds a weak reference to a type description.
Get the css::uno::Type instance representing a certain UNO type.
Definition: unotype.hxx:47
css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::uno::Reference< T > const *)
Definition: unotype.hxx:256
type class of void
Definition: typeclass.h:29
type class of byte
Definition: typeclass.h:35
type class of exception
Definition: typeclass.h:70