UDK 3.2.7 C/C++ API Reference
Classes | Namespaces | Enumerations | Functions
com/sun/star/uno/Type.h File Reference
#include <typelib/typedescription.h>
#include <com/sun/star/uno/TypeClass.hdl>
#include <cppu/macros.hxx>
#include <rtl/ustring.hxx>
#include <rtl/alloc.h>

Go to the source code of this file.

Classes

class  com::sun::star::uno::Type
 C++ class representing an IDL meta type. More...
class  com::sun::star::uno::Array< T >
 Helper class to specify a type pointer for idl arrays. More...

Namespaces

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

Enumerations

enum  com::sun::star::uno::UnoType_NoAcquire { com::sun::star::uno::UNO_TYPE_NO_ACQUIRE }
 Enum defining UNO_TYPE_NO_ACQUIRE for type description reference transfer. More...

Functions

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

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 ( const float *  ) throw () [inline]

Gets the meta type of IDL type float.

There are cases (involving templates) where uses of getCppuType are known to not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.

The dummy parameter is just a typed pointer for function signature.

Returns:
type of IDL type float
const ::com::sun::star::uno::Type& getCppuType ( const double *  ) throw () [inline]

Gets the meta type of IDL type double.

There are cases (involving templates) where uses of getCppuType are known to not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.

The dummy parameter is just a typed pointer for function signature.

Returns:
type of IDL type double
const ::com::sun::star::uno::Type& getCppuType ( const sal_Int64 *  ) throw () [inline]

Gets the meta type of IDL type hyper.

There are cases (involving templates) where uses of getCppuType are known to not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.

The dummy parameter is just a typed pointer for function signature.

Returns:
type of IDL type hyper
const ::com::sun::star::uno::Type& getCppuType ( const sal_uInt32 *  ) throw () [inline]

Gets the meta type of IDL type unsigned long.

There are cases (involving templates) where uses of getCppuType are known to not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.

The dummy parameter is just a typed pointer for function signature.

Returns:
type of IDL type unsigned long
const ::com::sun::star::uno::Type& getCppuType ( const sal_Int32 *  ) throw () [inline]

Gets the meta type of IDL type long.

There are cases (involving templates) where uses of getCppuType are known to not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.

The dummy parameter is just a typed pointer for function signature.

Returns:
type of IDL type long
const ::com::sun::star::uno::Type& getCppuType ( const sal_uInt16 *  ) throw () [inline]

Gets the meta type of IDL type unsigned short.

There are cases (involving templates) where uses of getCppuType are known to not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.

The dummy parameter is just a typed pointer for function signature.

Returns:
type of IDL type unsigned short
const ::com::sun::star::uno::Type& getCppuType ( const sal_uInt64 *  ) throw () [inline]

Gets the meta type of IDL type unsigned hyper.

There are cases (involving templates) where uses of getCppuType are known to not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.

The dummy parameter is just a typed pointer for function signature.

Returns:
type of IDL type unsigned hyper
const ::com::sun::star::uno::Type& getCppuType ( const sal_Int16 *  ) throw () [inline]

Gets the meta type of IDL type short.

There are cases (involving templates) where uses of getCppuType are known to not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.

The dummy parameter is just a typed pointer for function signature.

Returns:
type of IDL type short
const ::com::sun::star::uno::Type& getCppuType ( const ::com::sun::star::uno::Type ) throw () [inline]

Gets the meta type of IDL type "type".

There are cases (involving templates) where uses of getCppuType are known to not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.

The dummy parameter is just a typed pointer for function signature.

Returns:
type of IDL type "type"
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
const ::com::sun::star::uno::Type& getCppuType ( const sal_Int8 ) throw () [inline]

Gets the meta type of IDL type byte.

There are cases (involving templates) where uses of getCppuType are known to not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.

The dummy parameter is just a typed pointer for function signature.

Returns:
type of IDL type byte
const ::com::sun::star::uno::Type& getCppuType ( bool const *  ) throw () [inline]

Gets the meta type of IDL type boolean.

There are cases (involving templates) where uses of getCppuType are known to not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.

The dummy parameter is just a typed pointer for function signature.

Returns:
type of IDL type boolean
const ::com::sun::star::uno::Type& getCppuType ( const sal_Bool ) throw () [inline]

Gets the meta type of IDL type boolean.

There are cases (involving templates) where uses of getCppuType are known to not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.

The dummy parameter is just a typed pointer for function signature.

Returns:
type of IDL type boolean
const ::com::sun::star::uno::Type& getCppuType ( const ::rtl::OUString ) throw () [inline]

Gets the meta type of IDL type string.

There are cases (involving templates) where uses of getCppuType are known to not compile. Use cppu::UnoType or cppu::getTypeFavourUnsigned instead.

The dummy parameter is just a typed pointer for function signature.

Returns:
type of IDL type string
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
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines