Branch data Line data Source code
1 : : #ifndef INCLUDED_TEST_CODEMAKER_CPPUMAKER_TESTEXCEPTION2_HPP
2 : : #define INCLUDED_TEST_CODEMAKER_CPPUMAKER_TESTEXCEPTION2_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "test/codemaker/cppumaker/TestException2.hdl"
7 : :
8 : : #include "test/codemaker/cppumaker/TestException1.hpp"
9 : : #include "com/sun/star/uno/Type.hxx"
10 : : #include "cppu/unotype.hxx"
11 : : #include "osl/mutex.hxx"
12 : : #include "rtl/instance.hxx"
13 : :
14 : : namespace test { namespace codemaker { namespace cppumaker {
15 : :
16 : 5 : inline TestException2::TestException2() SAL_THROW(())
17 : 5 : : ::test::codemaker::cppumaker::TestException1()
18 : : {
19 [ + - ]: 5 : ::cppu::UnoType< ::test::codemaker::cppumaker::TestException2 >::get();
20 : 5 : }
21 : :
22 : 5 : inline TestException2::TestException2(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Context_, const ::sal_Int32& m1_, const ::com::sun::star::uno::Any& m2_, const ::test::codemaker::cppumaker::HelperEnum& m3_, const ::test::codemaker::cppumaker::Struct< ::sal_Int32, ::sal_Int32 >& m4_, const ::sal_uInt16& m5_) SAL_THROW(())
23 : 5 : : ::test::codemaker::cppumaker::TestException1(Message_, Context_, m1_, m2_, m3_, m4_, m5_)
24 : : {
25 [ + - ]: 5 : ::cppu::UnoType< ::test::codemaker::cppumaker::TestException2 >::get();
26 : 5 : }
27 : :
28 : 5 : TestException2::TestException2(TestException2 const & the_other): ::test::codemaker::cppumaker::TestException1(the_other) {}
29 : :
30 : 15 : TestException2::~TestException2() {}
31 : :
32 : 5 : TestException2 & TestException2::operator =(TestException2 const & the_other) {
33 : : //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
34 : 5 : ::test::codemaker::cppumaker::TestException1::operator =(the_other);
35 : 5 : return *this;
36 : : }
37 : :
38 : : } } }
39 : :
40 : : namespace test { namespace codemaker { namespace cppumaker { namespace detail {
41 : :
42 : : struct theTestException2Type : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theTestException2Type >
43 : : {
44 : 5 : ::com::sun::star::uno::Type * operator()() const
45 : : {
46 [ + - ]: 5 : ::rtl::OUString sTypeName( RTL_CONSTASCII_USTRINGPARAM("test.codemaker.cppumaker.TestException2") );
47 : :
48 : : // Start inline typedescription generation
49 : 5 : typelib_TypeDescription * pTD = 0;
50 [ + - ]: 5 : const ::com::sun::star::uno::Type& rSuperType = ::cppu::UnoType< ::test::codemaker::cppumaker::TestException1 >::get();
51 : :
52 : : typelib_typedescription_new(
53 : : &pTD,
54 : : (typelib_TypeClass)::com::sun::star::uno::TypeClass_EXCEPTION, sTypeName.pData,
55 : : rSuperType.getTypeLibType(),
56 : : 0,
57 : 5 : 0 );
58 : :
59 : 5 : typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
60 : :
61 : 5 : typelib_typedescription_release( pTD );
62 : : // End inline typedescription generation
63 : :
64 : 5 : return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_EXCEPTION, sTypeName ); // leaked
65 : : }
66 : : };
67 : :
68 : : } } } }
69 : :
70 : : namespace test { namespace codemaker { namespace cppumaker {
71 : :
72 : 10 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::test::codemaker::cppumaker::TestException2 const *) {
73 : 10 : return *detail::theTestException2Type::get();
74 : : }
75 : :
76 : : } } }
77 : :
78 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::test::codemaker::cppumaker::TestException2 const *) SAL_THROW(()) {
79 : : return ::cppu::UnoType< ::test::codemaker::cppumaker::TestException2 >::get();
80 : : }
81 : :
82 : : #endif // INCLUDED_TEST_CODEMAKER_CPPUMAKER_TESTEXCEPTION2_HPP
|