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 1 : inline TestException2::TestException2() SAL_THROW(())
17 1 : : ::test::codemaker::cppumaker::TestException1()
18 : {
19 1 : ::cppu::UnoType< ::test::codemaker::cppumaker::TestException2 >::get();
20 1 : }
21 :
22 1 : inline TestException2::TestException2(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< css::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 1 : : ::test::codemaker::cppumaker::TestException1(Message_, Context_, m1_, m2_, m3_, m4_, m5_)
24 : {
25 1 : ::cppu::UnoType< ::test::codemaker::cppumaker::TestException2 >::get();
26 1 : }
27 :
28 1 : TestException2::TestException2(TestException2 const & the_other): ::test::codemaker::cppumaker::TestException1(the_other) {}
29 :
30 3 : TestException2::~TestException2() {}
31 :
32 1 : TestException2 & TestException2::operator =(TestException2 const & the_other) {
33 : //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
34 1 : ::test::codemaker::cppumaker::TestException1::operator =(the_other);
35 1 : 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 1 : ::com::sun::star::uno::Type * operator()() const
45 : {
46 1 : ::rtl::OUString sTypeName( "test.codemaker.cppumaker.TestException2" );
47 :
48 : // Start inline typedescription generation
49 1 : typelib_TypeDescription * pTD = 0;
50 1 : 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 1 : 0 );
58 :
59 1 : typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
60 :
61 1 : typelib_typedescription_release( pTD );
62 : // End inline typedescription generation
63 :
64 1 : 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 2 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::test::codemaker::cppumaker::TestException2 const *) {
73 2 : 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
|