Branch data Line data Source code
1 : : #ifndef INCLUDED_STRUCT2A_HPP
2 : : #define INCLUDED_STRUCT2A_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "Struct2a.hdl"
7 : :
8 : : #include "Struct2.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 Struct2a::Struct2a() SAL_THROW(())
21 : : : Struct2()
22 : : , member2(0)
23 : : {
24 : : }
25 : :
26 : 15 : inline Struct2a::Struct2a(const ::sal_Int32& member_, const ::sal_Int32& member2_) SAL_THROW(())
27 : : : Struct2(member_)
28 : 15 : , member2(member2_)
29 : : {
30 : 15 : }
31 : :
32 : :
33 : : namespace detail {
34 : :
35 : : struct theStruct2aType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theStruct2aType >
36 : : {
37 : 5 : ::com::sun::star::uno::Type * operator()() const
38 : : {
39 [ + - ]: 5 : ::rtl::OUString the_name(RTL_CONSTASCII_USTRINGPARAM("Struct2a"));
40 [ + - ]: 5 : ::rtl::OUString the_tname0(RTL_CONSTASCII_USTRINGPARAM("long"));
41 [ + - ]: 5 : ::rtl::OUString the_name0(RTL_CONSTASCII_USTRINGPARAM("member2"));
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< Struct2 >::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 : 20 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER Struct2a const *) {
54 : 20 : return *detail::theStruct2aType::get();
55 : : }
56 : :
57 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER Struct2a const *) SAL_THROW(()) {
58 : : return ::cppu::UnoType< Struct2a >::get();
59 : : }
60 : :
61 : : #endif // INCLUDED_STRUCT2A_HPP
|