Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


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

class Type


Base Classes
None.
Known Derived Classes
None.

virtual abstract interface template
NO NO NO NO
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
File
Type.h

Public Members

Methods


Type( ) throw( );
Default Constructor: Type is set to void.

Type( TypeClass eTypeClass, const ::rtl::OUString & rTypeName ) throw( );
Constructor: Type is constructed by given name and type class.

Type( TypeClass eTypeClass, const sal_Char * pTypeName ) throw( );
Constructor: Type is constructed by given name and type class.

Type( typelib_TypeDescriptionReference * pType ) throw( );
Constructor: Type is (copy) constructed by given C type description reference.

Type( typelib_TypeDescriptionReference * pType, UnoType_NoAcquire ) throw( );
Constructor: Type is (copy) constructed by given C type description reference without acquiring it.

Type( typelib_TypeDescriptionReference * pType, __sal_NoAcquire ) throw( );
Constructor: Type is (copy) constructed by given C type description reference without acquiring it.

Type( const Type & rType ) throw( );
Copy constructor: Type is copy constructed by given type.

~Type( ) throw( );
Destructor: Releases acquired C type description reference.
Type &
operator=( const Type & rType ) throw( );
Assignment operator: Acquires right side type and releases previously set type.
TypeClass
getTypeClass( ) const throw( );
Gets the type class of set type.
::rtl::OUString
getTypeName( ) const throw( );
Gets the name of the set type.
void
getDescription( typelib_TypeDescription * * ppDescr ) const throw( );
Obtains a full type description of set type.
typelib_TypeDescriptionReference *
getTypeLibType( ) const throw( );
Gets the C typelib type description reference pointer. Does not acquire the reference!
sal_Bool
isAssignableFrom( const Type & rType ) const throw( );
sal_Bool
equals( const Type & rType ) const throw( );
Compares two types.
sal_Bool
operator==( const Type & rType ) const throw( );
Equality operator: Compares two types.
sal_Bool
operator!=( const Type & rType ) const throw( );
Unequality operator: Compares two types.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache and the Apache feather logo are trademarks of The Apache Software Foundation. OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.