20 #ifndef INCLUDED_CPPU_UNOTYPE_HXX
21 #define INCLUDED_CPPU_UNOTYPE_HXX
29 namespace com {
namespace sun {
namespace star {
namespace uno {
36 namespace rtl {
class OUString; }
63 struct UnoUnsignedShortType;
100 inline ::com::sun::star::uno::Type
const &
110 namespace cppu {
namespace detail {
112 inline ::com::sun::star::uno::Type
const &
117 inline ::com::sun::star::uno::Type
const &
122 inline ::com::sun::star::uno::Type
const &
127 inline ::com::sun::star::uno::Type
const &
132 inline ::com::sun::star::uno::Type
const &
137 inline ::com::sun::star::uno::Type
const &
139 SAL_UNUSED_PARAMETER ::cppu::UnoUnsignedShortType
const *)
145 inline ::com::sun::star::uno::Type
const &
150 inline ::com::sun::star::uno::Type
const &
156 inline ::com::sun::star::uno::Type
const &
161 inline ::com::sun::star::uno::Type
const &
167 inline ::com::sun::star::uno::Type
const &
172 inline ::com::sun::star::uno::Type
const &
177 inline ::com::sun::star::uno::Type
const &
182 inline ::com::sun::star::uno::Type
const &
187 inline ::com::sun::star::uno::Type
const &
193 inline ::com::sun::star::uno::Type
const &
199 template<
typename T > inline ::com::sun::star::uno::Type
const &
201 SAL_UNUSED_PARAMETER ::cppu::UnoSequenceType< T >
const *)
212 template<
typename T > inline ::com::sun::star::uno::Type
const &
214 SAL_UNUSED_PARAMETER ::com::sun::star::uno::Sequence< T >
const *)
221 SAL_UNUSED_PARAMETER ::com::sun::star::uno::Exception
const *)
227 SAL_UNUSED_PARAMETER ::com::sun::star::uno::XInterface
const *)
232 template<
typename T > inline ::com::sun::star::uno::Type
const &
234 SAL_UNUSED_PARAMETER ::com::sun::star::uno::Reference< T >
const *)
236 return ::cppu::UnoType< T >::get();
263 template<
typename T >
class UnoType {
265 static inline ::com::sun::star::uno::Type
const &
get() {
266 using namespace ::cppu::detail;
286 template<
typename T > inline ::com::sun::star::uno::Type
const &
288 return ::cppu::UnoType< T >::get();
301 inline ::com::sun::star::uno::Type
const &
303 return ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get();
316 template<
typename T > inline ::com::sun::star::uno::Type
const &
333 template<
typename T > inline ::com::sun::star::uno::Type
const &
335 return ::cppu::UnoType< T >::get();
349 inline ::com::sun::star::uno::Type
const &
351 return ::cppu::UnoType< ::cppu::UnoCharType >::get();
365 template<
typename T > inline ::com::sun::star::uno::Type
const &
inline::com::sun::star::uno::Type const & getTypeFromTypeClass(::typelib_TypeClass tc)
Definition: unotype.hxx:101
type class of exception
Definition: typeclass.h:67
CPPU_DLLPUBLIC void typelib_static_sequence_type_init(typelib_TypeDescriptionReference **ppRef, typelib_TypeDescriptionReference *pElementType) SAL_THROW_EXTERN_C()
Inits static sequence type reference.
type class of short
Definition: typeclass.h:37
Holds a weak reference to a type description.
Definition: typedescription.h:40
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
#define SAL_UNUSED_PARAMETER
Annotate unused but required C++ function parameters.
Definition: types.h:570
C++ class representing an IDL meta type.
Definition: Type.h:55
enum _typelib_TypeClass typelib_TypeClass
This type class enum is binary compatible with the IDL enum com.sun.star.uno.TypeClass.
type class of hyper
Definition: typeclass.h:45
::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER::com::sun::star::uno::Reference< T > const *)
Definition: unotype.hxx:233
type class of interface
Definition: typeclass.h:73
sal_uInt16 sal_Unicode
Definition: types.h:136
::com::sun::star::uno::Type const & getTypeFavourUnsigned(SAL_UNUSED_PARAMETER T const *)
A working replacement for getCppuType (see there).
Definition: unotype.hxx:287
A unique C++ type template representing the UNO sequence types in cppu::UnoType.
Definition: unotype.hxx:90
type class of string
Definition: typeclass.h:53
type class of long
Definition: typeclass.h:41
type class of char
Definition: typeclass.h:31
type class of type
Definition: typeclass.h:55
::com::sun::star::uno::Type const & getTypeFavourChar(SAL_UNUSED_PARAMETER::com::sun::star::uno::Sequence< T > const *)
Definition: Sequence.hxx:215
inline::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER::cppu::UnoVoidType const *)
Definition: unotype.hxx:113
type class of boolean
Definition: typeclass.h:33
Template reference class for interface type derived from BaseReference.
Definition: unotype.hxx:32
type class of float
Definition: typeclass.h:49
inline::com::sun::star::uno::Type const & getTypeFromTypeDescriptionReference(::typelib_TypeDescriptionReference *const *tdr)
Definition: unotype.hxx:94
unsigned char sal_Bool
Definition: types.h:46
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.
signed char sal_Int8
Definition: types.h:51
type class of void
Definition: typeclass.h:29
Template C++ class representing an IDL sequence.
Definition: unotype.hxx:33
type class of byte
Definition: typeclass.h:35
type class of double
Definition: typeclass.h:51
type class of unsigned long
Definition: typeclass.h:43
Get the com::sun::star::uno::Type instance representing a certain UNO type.
Definition: unotype.hxx:40