C++ class representing an IDL meta type.
More...
#include <Type.h>
Detailed Description
C++ class representing an IDL meta type.
This class is used to represent a a type, i.e. a type name and its type class. Internally the type holds a C type description reference of the runtime. You can obtain a full type description of a type by calling member function getDescription().
- See Also
- typelib_TypeDescriptionReference
Constructor & Destructor Documentation
com::sun::star::uno::Type::Type |
( |
| ) |
throw () |
|
inline |
Default Constructor: Type is set to void.
com::sun::star::uno::Type::Type |
( |
TypeClass |
eTypeClass, |
|
|
const ::rtl::OUString & |
rTypeName |
|
) |
| throw () |
|
inline |
Constructor: Type is constructed by given name and type class.
- Parameters
-
eTypeClass | type class of type |
rTypeName | name of type |
com::sun::star::uno::Type::Type |
( |
TypeClass |
eTypeClass, |
|
|
const sal_Char * |
pTypeName |
|
) |
| throw () |
|
inline |
Constructor: Type is constructed by given name and type class.
- Parameters
-
eTypeClass | type class of type |
pTypeName | name of type |
Constructor: Type is (copy) constructed by given C type description reference.
- Parameters
-
pType | C type description reference |
Constructor: Type is (copy) constructed by given C type description reference without acquiring it.
- Parameters
-
pType | C type description reference |
dummy | UNO_TYPE_NO_ACQUIRE to force obvious distinction to other constructors |
Constructor: Type is (copy) constructed by given C type description reference without acquiring it.
- Parameters
-
pType | C type description reference |
dummy | SAL_NO_ACQUIRE to force obvious distinction to other constructors |
com::sun::star::uno::Type::Type |
( |
const Type & |
rType | ) |
throw () |
|
inline |
Copy constructor: Type is copy constructed by given type.
- Parameters
-
com::sun::star::uno::Type::~Type |
( |
| ) |
throw () |
|
inline |
Destructor: Releases acquired C type description reference.
Member Function Documentation
sal_Bool com::sun::star::uno::Type::equals |
( |
const Type & |
rType | ) |
const throw () |
|
inline |
Compares two types.
- Parameters
-
- Returns
- true if both types refer the same type, false otherwise
Obtains a full type description of set type.
- Parameters
-
ppDescr | [inout] type description |
TypeClass com::sun::star::uno::Type::getTypeClass |
( |
| ) |
const throw () |
|
inline |
Gets the type class of set type.
- Returns
- type class of set type
Gets the C typelib type description reference pointer.
Does not acquire the reference!
- Returns
- UNacquired type description reference
rtl::OUString com::sun::star::uno::Type::getTypeName |
( |
| ) |
const throw () |
|
inline |
Gets the name of the set type.
- Returns
- name of the set type
sal_Bool com::sun::star::uno::Type::isAssignableFrom |
( |
const Type & |
rType | ) |
const throw () |
|
inline |
Tests if values of this reflected type can be assigned by values of given type.
This includes widening conversion (e.g., long assignable from short), as long as there is no data loss.
- Parameters
-
- Returns
- true if values of this type can be assigned from values of given type, false otherwise
sal_Bool com::sun::star::uno::Type::operator!= |
( |
const Type & |
rType | ) |
const throw () |
|
inline |
Unequality operator: Compares two types.
- Parameters
-
- Returns
- false if both types refer the same type, true otherwise
Type & com::sun::star::uno::Type::operator= |
( |
const Type & |
rType | ) |
throw () |
|
inline |
Assignment operator: Acquires right side type and releases previously set type.
- Parameters
-
rType | another type (right side) |
- Returns
- this type
sal_Bool com::sun::star::uno::Type::operator== |
( |
const Type & |
rType | ) |
const throw () |
|
inline |
Equality operator: Compares two types.
- Parameters
-
- Returns
- true if both types refer the same type, false otherwise
The documentation for this class was generated from the following files: