Branch data Line data Source code
1 : : #ifndef INCLUDED_STRUCT2B_HPP
2 : : #define INCLUDED_STRUCT2B_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "Struct2b.hdl"
7 : :
8 : : #include "Struct2a.hpp"
9 : : #include "com/sun/star/uno/Type.hxx"
10 : : #include "cppu/unotype.hxx"
11 : : #include "osl/mutex.hxx"
12 : : #include "rtl/ustring.h"
13 : : #include "rtl/ustring.hxx"
14 : : #include "rtl/instance.hxx"
15 : : #include "sal/types.h"
16 : : #include "typelib/typeclass.h"
17 : : #include "typelib/typedescription.h"
18 : :
19 : :
20 : : inline Struct2b::Struct2b() SAL_THROW(())
21 : : : Struct2a()
22 : : , member3(0)
23 : : {
24 : : }
25 : :
26 : 5 : inline Struct2b::Struct2b(const ::sal_Int32& member_, const ::sal_Int32& member2_, const ::sal_Int32& member3_) SAL_THROW(())
27 : : : Struct2a(member_, member2_)
28 : 5 : , member3(member3_)
29 : : {
30 : 5 : }
31 : :
32 : :
33 : : namespace detail {
34 : :
35 : : struct theStruct2bType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theStruct2bType >
36 : : {
37 : 5 : ::com::sun::star::uno::Type * operator()() const
38 : : {
39 [ + - ]: 5 : ::rtl::OUString the_name(RTL_CONSTASCII_USTRINGPARAM("Struct2b"));
40 [ + - ]: 5 : ::rtl::OUString the_tname0(RTL_CONSTASCII_USTRINGPARAM("long"));
41 [ + - ]: 5 : ::rtl::OUString the_name0(RTL_CONSTASCII_USTRINGPARAM("member3"));
42 : : ::typelib_StructMember_Init the_members[] = {
43 : 5 : { { typelib_TypeClass_LONG, the_tname0.pData, the_name0.pData }, false } };
44 : 5 : ::typelib_TypeDescription * the_newType = 0;
45 [ + - ]: 5 : ::typelib_typedescription_newStruct(&the_newType, the_name.pData, ::cppu::UnoType< Struct2a >::get().getTypeLibType(), 1, the_members);
46 : 5 : ::typelib_typedescription_register(&the_newType);
47 : 5 : ::typelib_typedescription_release(the_newType);
48 : 5 : return new ::com::sun::star::uno::Type(::com::sun::star::uno::TypeClass_STRUCT, the_name); // leaked
49 : : }
50 : : };
51 : : }
52 : :
53 : 5 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER Struct2b const *) {
54 : 5 : return *detail::theStruct2bType::get();
55 : : }
56 : :
57 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER Struct2b const *) SAL_THROW(()) {
58 : : return ::cppu::UnoType< Struct2b >::get();
59 : : }
60 : :
61 : : #endif // INCLUDED_STRUCT2B_HPP
|