LibreOffice
LibreOffice 4.2 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
Type.hxx File Reference
#include <osl/mutex.hxx>
#include <com/sun/star/uno/Type.h>
#include <cppu/unotype.hxx>

Go to the source code of this file.

Namespaces

 com
 
 com::sun
 
 com::sun::star
 
 com::sun::star::uno
 

Functions

const ::com::sun::star::uno::TypegetCppuType (SAL_UNUSED_PARAMETER const ::com::sun::star::uno::Type *) throw ()
 
const ::com::sun::star::uno::TypegetCppuVoidType () throw ()
 Gets the meta type of IDL type void. More...
 
const ::com::sun::star::uno::TypegetVoidCppuType () throw ()
 Gets the meta type of IDL type void. More...
 
const ::com::sun::star::uno::TypegetCppuBooleanType () throw ()
 Gets the meta type of IDL type boolean. More...
 
const ::com::sun::star::uno::TypegetBooleanCppuType () throw ()
 Gets the meta type of IDL type boolean. More...
 
const ::com::sun::star::uno::TypegetCppuType (SAL_UNUSED_PARAMETER const sal_Bool *) throw ()
 
const ::com::sun::star::uno::TypegetCppuType (SAL_UNUSED_PARAMETER bool const *) throw ()
 
const ::com::sun::star::uno::TypegetCharCppuType () throw ()
 Gets the meta type of IDL type char. More...
 
const ::com::sun::star::uno::TypegetCppuCharType () throw ()
 Gets the meta type of IDL type char. More...
 
const ::com::sun::star::uno::TypegetCppuType (SAL_UNUSED_PARAMETER const sal_Int8 *) throw ()
 
const ::com::sun::star::uno::TypegetCppuType (SAL_UNUSED_PARAMETER const ::rtl::OUString *) throw ()
 
const ::com::sun::star::uno::TypegetCppuType (SAL_UNUSED_PARAMETER const sal_Int16 *) throw ()
 
const ::com::sun::star::uno::TypegetCppuType (SAL_UNUSED_PARAMETER const sal_uInt16 *) throw ()
 
const ::com::sun::star::uno::TypegetCppuType (SAL_UNUSED_PARAMETER const sal_Int32 *) throw ()
 
const ::com::sun::star::uno::TypegetCppuType (SAL_UNUSED_PARAMETER const sal_uInt32 *) throw ()
 
const ::com::sun::star::uno::TypegetCppuType (SAL_UNUSED_PARAMETER const sal_Int64 *) throw ()
 
const ::com::sun::star::uno::TypegetCppuType (SAL_UNUSED_PARAMETER const sal_uInt64 *) throw ()
 
const ::com::sun::star::uno::TypegetCppuType (SAL_UNUSED_PARAMETER const float *) throw ()
 
const ::com::sun::star::uno::TypegetCppuType (SAL_UNUSED_PARAMETER const double *) throw ()
 
template<class T >
const ::com::sun::star::uno::TypegetCppuArrayType1 (T *pT) throw ()
 Array template function to get meta type for one-dimensional arrays. More...
 
template<class T >
const ::com::sun::star::uno::TypegetCppuArrayType2 (T *pT) throw ()
 Array template function to get meta type for two-dimensional arrays. More...
 
template<class T >
const ::com::sun::star::uno::TypegetCppuArrayType3 (T *pT) throw ()
 Array template function to get meta type for three-dimensional arrays. More...
 
template<class T >
const ::com::sun::star::uno::TypegetCppuArrayType4 (T *pT) throw ()
 Array template function to get meta type for four-dimensional arrays. More...
 
template<class T >
const ::com::sun::star::uno::TypegetCppuArrayType5 (T *pT) throw ()
 Array template function to get meta type for five-dimensional arrays. More...
 
template<class T >
const ::com::sun::star::uno::TypegetCppuArrayType6 (T *pT) throw ()
 Array template function to get meta type for six-dimensional arrays. More...
 
template<typename T >
const ::com::sun::star::uno::TypegetCppuType () throw ()
 Gets the meta type of an IDL type. More...
 
template<>
const ::com::sun::star::uno::TypegetCppuType< sal_Unicode > () throw ()
 Gets the meta type of IDL type char. More...
 

Function Documentation

const ::com::sun::star::uno::Type& getBooleanCppuType ( )
throw (
)
inline

Gets the meta type of IDL type boolean.

Returns
type of IDL type boolean
const ::com::sun::star::uno::Type& getCharCppuType ( )
throw (
)
inline

Gets the meta type of IDL type char.

Returns
type of IDL type char
template<class T >
const ::com::sun::star::uno::Type& getCppuArrayType1 ( T *  pT)
throw (
)
inline

Array template function to get meta type for one-dimensional arrays.

Parameters
pTarray pointer
Returns
type of array
template<class T >
const ::com::sun::star::uno::Type& getCppuArrayType2 ( T *  pT)
throw (
)
inline

Array template function to get meta type for two-dimensional arrays.

Parameters
pTarray pointer
Returns
type of array
template<class T >
const ::com::sun::star::uno::Type& getCppuArrayType3 ( T *  pT)
throw (
)
inline

Array template function to get meta type for three-dimensional arrays.

Parameters
pTarray pointer
Returns
type of array
template<class T >
const ::com::sun::star::uno::Type& getCppuArrayType4 ( T *  pT)
throw (
)
inline

Array template function to get meta type for four-dimensional arrays.

Parameters
pTarray pointer
Returns
type of array
template<class T >
const ::com::sun::star::uno::Type& getCppuArrayType5 ( T *  pT)
throw (
)
inline

Array template function to get meta type for five-dimensional arrays.

Parameters
pTarray pointer
Returns
type of array
template<class T >
const ::com::sun::star::uno::Type& getCppuArrayType6 ( T *  pT)
throw (
)
inline

Array template function to get meta type for six-dimensional arrays.

Parameters
pTarray pointer
Returns
type of array
const ::com::sun::star::uno::Type& getCppuBooleanType ( )
throw (
)
inline

Gets the meta type of IDL type boolean.

Returns
type of IDL type boolean
const ::com::sun::star::uno::Type& getCppuCharType ( )
throw (
)
inline

Gets the meta type of IDL type char.

Returns
type of IDL type char
const ::com::sun::star::uno::Type& getCppuType ( SAL_UNUSED_PARAMETER const ::com::sun::star::uno::Type )
throw (
)
inline
const ::com::sun::star::uno::Type& getCppuType ( SAL_UNUSED_PARAMETER const sal_Bool )
throw (
)
inline
const ::com::sun::star::uno::Type& getCppuType ( SAL_UNUSED_PARAMETER bool const *  )
throw (
)
inline
const ::com::sun::star::uno::Type& getCppuType ( SAL_UNUSED_PARAMETER const sal_Int8 )
throw (
)
inline
const ::com::sun::star::uno::Type& getCppuType ( SAL_UNUSED_PARAMETER const ::rtl::OUString )
throw (
)
inline
const ::com::sun::star::uno::Type& getCppuType ( SAL_UNUSED_PARAMETER const sal_Int16 *  )
throw (
)
inline
const ::com::sun::star::uno::Type& getCppuType ( SAL_UNUSED_PARAMETER const sal_uInt16 *  )
throw (
)
inline
const ::com::sun::star::uno::Type& getCppuType ( SAL_UNUSED_PARAMETER const sal_Int32 *  )
throw (
)
inline
const ::com::sun::star::uno::Type& getCppuType ( SAL_UNUSED_PARAMETER const sal_uInt32 *  )
throw (
)
inline
const ::com::sun::star::uno::Type& getCppuType ( SAL_UNUSED_PARAMETER const sal_Int64 *  )
throw (
)
inline
const ::com::sun::star::uno::Type& getCppuType ( SAL_UNUSED_PARAMETER const sal_uInt64 *  )
throw (
)
inline
const ::com::sun::star::uno::Type& getCppuType ( SAL_UNUSED_PARAMETER const float *  )
throw (
)
inline
const ::com::sun::star::uno::Type& getCppuType ( SAL_UNUSED_PARAMETER const double *  )
throw (
)
inline
template<typename T >
const ::com::sun::star::uno::Type& getCppuType ( )
throw (
)
inline

Gets the meta type of an IDL type.

The difference between this function template (with a type parameter) and the overloaded getCppuType function with a single (dummy) parameter of a specific type is that this function template may not work for the UNO type "unsigned short" (sal_uInt16 in C++), while the overloaded one-parameter function may not work for the UNO type "char" (sal_Unicode in C++, which may have the same underlying C++ type as sal_uInt16 on certain platforms).

Returns
type of the given IDL type
Deprecated:
Use cppu::UnoType instead (or the internal-only cppu::getTypeFavourChar). Also note that getCppuType< com::sun::star::uno::Sequence< sal_Unicode > >() does not work as expected.
Since
UDK 3.2.0
template<>
const ::com::sun::star::uno::Type& getCppuType< sal_Unicode > ( )
throw (
)
inline

Gets the meta type of IDL type char.

Returns
type of IDL type char
Deprecated:
Use cppu::UnoType instead (or the internal-only cppu::getTypeFavourChar). Also note that getCppuType< com::sun::star::uno::Sequence< sal_Unicode > >() does not work as expected.
Since
UDK 3.2.0
const ::com::sun::star::uno::Type& getCppuVoidType ( )
throw (
)
inline

Gets the meta type of IDL type void.

Returns
type of IDL type void
const ::com::sun::star::uno::Type& getVoidCppuType ( )
throw (
)
inline

Gets the meta type of IDL type void.

Returns
type of IDL type void