24#ifndef INCLUDED_CPPU_UNOTYPE_HXX
25#define INCLUDED_CPPU_UNOTYPE_HXX
31#if defined LIBO_INTERNAL_ONLY
36#include "typelib/typeclass.h"
37#include "typelib/typedescription.h"
39namespace com {
namespace sun {
namespace star {
namespace uno {
47namespace rtl {
class OUString; }
51template<
typename >
class UnoType;
74struct UnoUnsignedShortType;
106 ::typelib_TypeDescriptionReference *
const * tdr)
108 return *
reinterpret_cast< css::uno::Type
const *
>(tdr);
111inline css::uno::Type
const &
123inline css::uno::Type
const &
128inline css::uno::Type
const &
133inline css::uno::Type
const &
138inline css::uno::Type
const &
143inline css::uno::Type
const &
148inline css::uno::Type
const &
150 SAL_UNUSED_PARAMETER ::cppu::UnoUnsignedShortType
const *)
153 ::typelib_TypeClass_UNSIGNED_SHORT);
156#if defined LIBO_INTERNAL_ONLY
158inline css::uno::Type
const &
164inline css::uno::Type
const &
169inline css::uno::Type
const &
172 ::typelib_TypeClass_UNSIGNED_LONG);
175inline css::uno::Type
const &
180inline css::uno::Type
const &
183 ::typelib_TypeClass_UNSIGNED_HYPER);
186inline css::uno::Type
const &
191inline css::uno::Type
const &
196inline css::uno::Type
const &
201#if defined LIBO_INTERNAL_ONLY
203inline css::uno::Type
const &
209inline css::uno::Type
const &
214inline css::uno::Type
const &
220inline css::uno::Type
const &
226template<
typename T >
inline css::uno::Type
const &
228 SAL_UNUSED_PARAMETER ::cppu::UnoSequenceType< T >
const *)
231 static typelib_TypeDescriptionReference *
p =
NULL;
239template<
typename T >
inline css::uno::Type
const &
241 SAL_UNUSED_PARAMETER css::uno::Sequence< T >
const *)
248 SAL_UNUSED_PARAMETER css::uno::Exception
const *)
254 SAL_UNUSED_PARAMETER css::uno::XInterface
const *)
259template<
typename T >
inline css::uno::Type
const &
261 SAL_UNUSED_PARAMETER css::uno::Reference< T >
const *)
263 return ::cppu::UnoType< T >::get();
292 static css::uno::Type
const &
get() {
294#if defined LIBO_INTERNAL_ONLY
295 typedef typename std::remove_reference<T>::type T1;
306 void operator =(
UnoType &) SAL_DELETED_FUNCTION;
323template<
typename T >
inline css::uno::Type
const &
325 return ::cppu::UnoType< T >::get();
338inline css::uno::Type
const &
340 return ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get();
353template<
typename T >
inline css::uno::Type
const &
370template<
typename T >
inline css::uno::Type
const &
371getTypeFavourChar(SAL_UNUSED_PARAMETER T
const *) {
372 return ::cppu::UnoType< T >::get();
386inline css::uno::Type
const &
387getTypeFavourChar(SAL_UNUSED_PARAMETER ::sal_Unicode
const *) {
388 return ::cppu::UnoType< ::cppu::UnoCharType >::get();
402template<
typename T >
inline css::uno::Type
const &
403getTypeFavourChar(css::uno::Sequence< T >
const *);
Get the css::uno::Type instance representing a certain UNO type.
~UnoType() SAL_DELETED_FUNCTION
UnoType(UnoType &) SAL_DELETED_FUNCTION
static css::uno::Type const & get()
css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::uno::Reference< T > const *)
css::uno::Type const & getTypeFromTypeDescriptionReference(::typelib_TypeDescriptionReference *const *tdr)
css::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::cppu::UnoVoidType const *)
css::uno::Type const & getTypeFromTypeClass(::typelib_TypeClass tc)
css::uno::Type const & getTypeFavourUnsigned(SAL_UNUSED_PARAMETER T const *)
A working replacement for getCppuType (see there).
void SAL_CALL typelib_static_sequence_type_init(typelib_TypeDescriptionReference **ppRef, typelib_TypeDescriptionReference *pElementType) SAL_THROW_EXTERN_C()
typelib_TypeDescriptionReference **SAL_CALL typelib_static_type_getByTypeClass(typelib_TypeClass eTypeClass) SAL_THROW_EXTERN_C()
A unique C++ type template representing the UNO sequence types in cppu::UnoType.