24#ifndef INCLUDED_CPPU_UNOTYPE_HXX
25#define INCLUDED_CPPU_UNOTYPE_HXX
31#if defined LIBO_INTERNAL_ONLY
39namespace com {
namespace sun {
namespace star {
namespace uno {
51template<
typename >
class UnoType;
74struct UnoUnsignedShortType;
123inline css::uno::Type
const &
150 SAL_UNUSED_PARAMETER ::cppu::UnoUnsignedShortType
const *)
152 return ::cppu::detail::getTypeFromTypeClass(
156#if defined LIBO_INTERNAL_ONLY
171 return ::cppu::detail::getTypeFromTypeClass(
182 return ::cppu::detail::getTypeFromTypeClass(
201#if defined LIBO_INTERNAL_ONLY
228 SAL_UNUSED_PARAMETER ::cppu::UnoSequenceType< T >
const *)
236 return ::cppu::detail::getTypeFromTypeDescriptionReference(&p);
263 return ::cppu::UnoType< T >::get();
290template<
typename T >
class UnoType {
294#if defined LIBO_INTERNAL_ONLY
295 typedef typename std::remove_reference<T>::type T1;
300 return cppu_detail_getUnoType(
static_cast< T1 *
>(NULL));
309template<>
css::uno::Type inline const & UnoType<
void>::
get() {
325 return ::cppu::UnoType< T >::get();
340 return ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get();
372 return ::cppu::UnoType< T >::get();
388 return ::cppu::UnoType< ::cppu::UnoCharType >::get();
402template<
typename T >
inline css::uno::Type
const &
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition types.h:396
#define SAL_UNUSED_PARAMETER
Annotate unused but required C++ function parameters.
Definition types.h:592
unsigned char sal_Bool
Definition types.h:38
sal_uInt16 sal_Unicode
Definition types.h:123
@ typelib_TypeClass_VOID
type class of void
Definition typeclass.h:32
@ typelib_TypeClass_UNSIGNED_SHORT
type class of unsigned short
Definition typeclass.h:42
@ typelib_TypeClass_CHAR
type class of char
Definition typeclass.h:34
@ typelib_TypeClass_HYPER
type class of hyper
Definition typeclass.h:48
@ typelib_TypeClass_BYTE
type class of byte
Definition typeclass.h:38
@ typelib_TypeClass_BOOLEAN
type class of boolean
Definition typeclass.h:36
@ typelib_TypeClass_INTERFACE
type class of interface
Definition typeclass.h:82
@ typelib_TypeClass_STRING
type class of string
Definition typeclass.h:56
@ typelib_TypeClass_SHORT
type class of short
Definition typeclass.h:40
@ typelib_TypeClass_FLOAT
type class of float
Definition typeclass.h:52
@ typelib_TypeClass_DOUBLE
type class of double
Definition typeclass.h:54
@ typelib_TypeClass_ANY
type class of any
Definition typeclass.h:60
@ typelib_TypeClass_TYPE
type class of type
Definition typeclass.h:58
@ typelib_TypeClass_UNSIGNED_HYPER
type class of unsigned hyper
Definition typeclass.h:50
@ typelib_TypeClass_LONG
type class of long
Definition typeclass.h:44
@ typelib_TypeClass_UNSIGNED_LONG
type class of unsigned long
Definition typeclass.h:46
@ typelib_TypeClass_EXCEPTION
type class of exception
Definition typeclass.h:73
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:34
Definition typedescription.hxx:43
Definition Enterable.hxx:31
css::uno::Type const & getTypeFavourUnsigned(SAL_UNUSED_PARAMETER T const *)
A working replacement for getCppuType (see there).
Definition unotype.hxx:324
::com::sun::star::uno::Type const & getTypeFavourChar(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Sequence< T > const *)
Definition Sequence.hxx:343
Definition unotype.hxx:103
css::uno::Type const & getTypeFromTypeDescriptionReference(::typelib_TypeDescriptionReference *const *tdr)
Definition unotype.hxx:105
css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::cppu::UnoVoidType const *)
Definition unotype.hxx:124
css::uno::Type const & getTypeFromTypeClass(::typelib_TypeClass tc)
Definition unotype.hxx:112
This String class provides base functionality for C++ like Unicode character array handling.
Definition ustring.hxx:172
Template reference class for interface type derived from BaseReference.
Definition Reference.h:184
Template C++ class representing an IDL sequence.
Definition Sequence.h:61
Get the css::uno::Type instance representing a certain UNO type.
Definition unotype.hxx:290
static css::uno::Type const & get()
Definition unotype.hxx:292
A unique C++ type template representing the UNO sequence types in cppu::UnoType.
Definition unotype.hxx:101
C++ class representing an IDL any.
Definition Any.h:58
C++ class representing an IDL meta type.
Definition Type.h:59