Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_UNO_UIK_HPP
2 : : #define INCLUDED_COM_SUN_STAR_UNO_UIK_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/Uik.hdl"
7 : :
8 : : #include "com/sun/star/uno/Type.hxx"
9 : : #include "cppu/unotype.hxx"
10 : : #include "sal/types.h"
11 : : #include "typelib/typeclass.h"
12 : : #include "typelib/typedescription.h"
13 : :
14 : : namespace com { namespace sun { namespace star { namespace uno {
15 : :
16 : 97245 : inline Uik::Uik() SAL_THROW(())
17 : : : m_Data1(0)
18 : : , m_Data2(0)
19 : : , m_Data3(0)
20 : : , m_Data4(0)
21 : 97245 : , m_Data5(0)
22 : : {
23 : 97245 : }
24 : :
25 : : inline Uik::Uik(const ::sal_uInt32& m_Data1_, const ::sal_uInt16& m_Data2_, const ::sal_uInt16& m_Data3_, const ::sal_uInt32& m_Data4_, const ::sal_uInt32& m_Data5_) SAL_THROW(())
26 : : : m_Data1(m_Data1_)
27 : : , m_Data2(m_Data2_)
28 : : , m_Data3(m_Data3_)
29 : : , m_Data4(m_Data4_)
30 : : , m_Data5(m_Data5_)
31 : : {
32 : : }
33 : :
34 : : } } } }
35 : :
36 : : namespace com { namespace sun { namespace star { namespace uno {
37 : :
38 : 333 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Uik const *) {
39 : : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
40 : : static ::typelib_TypeDescriptionReference * the_type = 0;
41 [ + - ]: 333 : if (the_type == 0) {
42 : : ::typelib_TypeDescriptionReference * the_members[] = {
43 : 333 : ::cppu::UnoType< ::sal_uInt32 >::get().getTypeLibType(),
44 : 333 : ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get().getTypeLibType(),
45 : 333 : ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get().getTypeLibType(),
46 : 333 : ::cppu::UnoType< ::sal_uInt32 >::get().getTypeLibType(),
47 : 333 : ::cppu::UnoType< ::sal_uInt32 >::get().getTypeLibType() };
48 : 333 : ::typelib_static_struct_type_init(&the_type, "com.sun.star.uno.Uik", 0, 5, the_members, 0);
49 : : }
50 : 333 : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
51 : : }
52 : :
53 : : } } } }
54 : :
55 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Uik const *) SAL_THROW(()) {
56 : : return ::cppu::UnoType< ::com::sun::star::uno::Uik >::get();
57 : : }
58 : :
59 : : #endif // INCLUDED_COM_SUN_STAR_UNO_UIK_HPP
|