00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _CPPUHELPER_TYPEPROVIDER_HXX_
00020 #define _CPPUHELPER_TYPEPROVIDER_HXX_
00021
00022 #include <rtl/alloc.h>
00023 #include <rtl/uuid.h>
00024 #include <com/sun/star/uno/Sequence.hxx>
00025 #include "cppuhelperdllapi.h"
00026
00027
00028 namespace cppu
00029 {
00030
00034 class CPPUHELPER_DLLPUBLIC OTypeCollection
00035 {
00036 ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > _aTypes;
00037
00038 public:
00040
00041 inline static void * SAL_CALL operator new( size_t nSize ) SAL_THROW(())
00042 { return ::rtl_allocateMemory( nSize ); }
00043 inline static void SAL_CALL operator delete( void * pMem ) SAL_THROW(())
00044 { ::rtl_freeMemory( pMem ); }
00045 inline static void * SAL_CALL operator new( size_t, void * pMem ) SAL_THROW(())
00046 { return pMem; }
00047 inline static void SAL_CALL operator delete( void *, void * ) SAL_THROW(())
00048 {}
00050
00051 inline OTypeCollection( const OTypeCollection & rCollection )
00052 SAL_THROW(())
00053 : _aTypes( rCollection._aTypes )
00054 {}
00055 OTypeCollection(
00056 const ::com::sun::star::uno::Type & rType1,
00057 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > & rAddTypes = ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >() )
00058 SAL_THROW(());
00059 OTypeCollection(
00060 const ::com::sun::star::uno::Type & rType1,
00061 const ::com::sun::star::uno::Type & rType2,
00062 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > & rAddTypes = ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >() )
00063 SAL_THROW(());
00064 OTypeCollection(
00065 const ::com::sun::star::uno::Type & rType1,
00066 const ::com::sun::star::uno::Type & rType2,
00067 const ::com::sun::star::uno::Type & rType3,
00068 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > & rAddTypes = ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >() )
00069 SAL_THROW(());
00070 OTypeCollection(
00071 const ::com::sun::star::uno::Type & rType1,
00072 const ::com::sun::star::uno::Type & rType2,
00073 const ::com::sun::star::uno::Type & rType3,
00074 const ::com::sun::star::uno::Type & rType4,
00075 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > & rAddTypes = ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >() )
00076 SAL_THROW(());
00077 OTypeCollection(
00078 const ::com::sun::star::uno::Type & rType1,
00079 const ::com::sun::star::uno::Type & rType2,
00080 const ::com::sun::star::uno::Type & rType3,
00081 const ::com::sun::star::uno::Type & rType4,
00082 const ::com::sun::star::uno::Type & rType5,
00083 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > & rAddTypes = ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >() )
00084 SAL_THROW(());
00085 OTypeCollection(
00086 const ::com::sun::star::uno::Type & rType1,
00087 const ::com::sun::star::uno::Type & rType2,
00088 const ::com::sun::star::uno::Type & rType3,
00089 const ::com::sun::star::uno::Type & rType4,
00090 const ::com::sun::star::uno::Type & rType5,
00091 const ::com::sun::star::uno::Type & rType6,
00092 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > & rAddTypes = ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >() )
00093 SAL_THROW(());
00094 OTypeCollection(
00095 const ::com::sun::star::uno::Type & rType1,
00096 const ::com::sun::star::uno::Type & rType2,
00097 const ::com::sun::star::uno::Type & rType3,
00098 const ::com::sun::star::uno::Type & rType4,
00099 const ::com::sun::star::uno::Type & rType5,
00100 const ::com::sun::star::uno::Type & rType6,
00101 const ::com::sun::star::uno::Type & rType7,
00102 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > & rAddTypes = ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >() )
00103 SAL_THROW(());
00104 OTypeCollection(
00105 const ::com::sun::star::uno::Type & rType1,
00106 const ::com::sun::star::uno::Type & rType2,
00107 const ::com::sun::star::uno::Type & rType3,
00108 const ::com::sun::star::uno::Type & rType4,
00109 const ::com::sun::star::uno::Type & rType5,
00110 const ::com::sun::star::uno::Type & rType6,
00111 const ::com::sun::star::uno::Type & rType7,
00112 const ::com::sun::star::uno::Type & rType8,
00113 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > & rAddTypes = ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >() )
00114 SAL_THROW(());
00115 OTypeCollection(
00116 const ::com::sun::star::uno::Type & rType1,
00117 const ::com::sun::star::uno::Type & rType2,
00118 const ::com::sun::star::uno::Type & rType3,
00119 const ::com::sun::star::uno::Type & rType4,
00120 const ::com::sun::star::uno::Type & rType5,
00121 const ::com::sun::star::uno::Type & rType6,
00122 const ::com::sun::star::uno::Type & rType7,
00123 const ::com::sun::star::uno::Type & rType8,
00124 const ::com::sun::star::uno::Type & rType9,
00125 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > & rAddTypes = ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >() )
00126 SAL_THROW(());
00127 OTypeCollection(
00128 const ::com::sun::star::uno::Type & rType1,
00129 const ::com::sun::star::uno::Type & rType2,
00130 const ::com::sun::star::uno::Type & rType3,
00131 const ::com::sun::star::uno::Type & rType4,
00132 const ::com::sun::star::uno::Type & rType5,
00133 const ::com::sun::star::uno::Type & rType6,
00134 const ::com::sun::star::uno::Type & rType7,
00135 const ::com::sun::star::uno::Type & rType8,
00136 const ::com::sun::star::uno::Type & rType9,
00137 const ::com::sun::star::uno::Type & rType10,
00138 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > & rAddTypes = ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >() )
00139 SAL_THROW(());
00140 OTypeCollection(
00141 const ::com::sun::star::uno::Type & rType1,
00142 const ::com::sun::star::uno::Type & rType2,
00143 const ::com::sun::star::uno::Type & rType3,
00144 const ::com::sun::star::uno::Type & rType4,
00145 const ::com::sun::star::uno::Type & rType5,
00146 const ::com::sun::star::uno::Type & rType6,
00147 const ::com::sun::star::uno::Type & rType7,
00148 const ::com::sun::star::uno::Type & rType8,
00149 const ::com::sun::star::uno::Type & rType9,
00150 const ::com::sun::star::uno::Type & rType10,
00151 const ::com::sun::star::uno::Type & rType11,
00152 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > & rAddTypes = ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >() )
00153 SAL_THROW(());
00154 OTypeCollection(
00155 const ::com::sun::star::uno::Type & rType1,
00156 const ::com::sun::star::uno::Type & rType2,
00157 const ::com::sun::star::uno::Type & rType3,
00158 const ::com::sun::star::uno::Type & rType4,
00159 const ::com::sun::star::uno::Type & rType5,
00160 const ::com::sun::star::uno::Type & rType6,
00161 const ::com::sun::star::uno::Type & rType7,
00162 const ::com::sun::star::uno::Type & rType8,
00163 const ::com::sun::star::uno::Type & rType9,
00164 const ::com::sun::star::uno::Type & rType10,
00165 const ::com::sun::star::uno::Type & rType11,
00166 const ::com::sun::star::uno::Type & rType12,
00167 const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > & rAddTypes = ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >() )
00168 SAL_THROW(());
00169
00174 ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() SAL_THROW(())
00175 { return _aTypes; }
00176 };
00177
00181 class CPPUHELPER_DLLPUBLIC OImplementationId
00182 {
00183 mutable ::com::sun::star::uno::Sequence< sal_Int8 > * _pSeq;
00184 sal_Bool _bUseEthernetAddress;
00185
00186 public:
00188
00189
00190 inline static void * SAL_CALL operator new( size_t nSize ) SAL_THROW(())
00191 { return ::rtl_allocateMemory( nSize ); }
00192 inline static void SAL_CALL operator delete( void * pMem ) SAL_THROW(())
00193 { ::rtl_freeMemory( pMem ); }
00194 inline static void * SAL_CALL operator new( size_t, void * pMem ) SAL_THROW(())
00195 { return pMem; }
00196 inline static void SAL_CALL operator delete( void *, void * ) SAL_THROW(())
00197 {}
00198
00199 ~OImplementationId() SAL_THROW(());
00200
00202
00207 inline OImplementationId( sal_Bool bUseEthernetAddress = sal_True ) SAL_THROW(())
00208 : _pSeq( 0 )
00209 , _bUseEthernetAddress( bUseEthernetAddress )
00210 {}
00215 inline OImplementationId( const ::com::sun::star::uno::Sequence< sal_Int8 > & rSeq ) SAL_THROW(())
00216 : _pSeq( new ::com::sun::star::uno::Sequence< sal_Int8 >( rSeq ) )
00217 {}
00218 inline OImplementationId( const OImplementationId & rId ) SAL_THROW(())
00219 : _pSeq( new ::com::sun::star::uno::Sequence< sal_Int8 >( rId.getImplementationId() ) )
00220 {}
00221
00226 ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() const SAL_THROW(());
00227 };
00228
00229 }
00230
00231 #endif
00232
00233