Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_UTIL_MALFORMEDNUMBERFORMATEXCEPTION_HPP
2 : #define INCLUDED_COM_SUN_STAR_UTIL_MALFORMEDNUMBERFORMATEXCEPTION_HPP
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/util/MalformedNumberFormatException.hdl"
7 :
8 : #include "com/sun/star/uno/Exception.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 : #include "sal/types.h"
14 :
15 : namespace com { namespace sun { namespace star { namespace util {
16 :
17 : inline MalformedNumberFormatException::MalformedNumberFormatException() SAL_THROW(())
18 : : css::uno::Exception()
19 : , CheckPos(0)
20 : {
21 : ::cppu::UnoType< css::util::MalformedNumberFormatException >::get();
22 : }
23 :
24 : inline MalformedNumberFormatException::MalformedNumberFormatException(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< css::uno::XInterface >& Context_, const ::sal_Int32& CheckPos_) SAL_THROW(())
25 : : css::uno::Exception(Message_, Context_)
26 : , CheckPos(CheckPos_)
27 : {
28 : ::cppu::UnoType< css::util::MalformedNumberFormatException >::get();
29 : }
30 :
31 : MalformedNumberFormatException::MalformedNumberFormatException(MalformedNumberFormatException const & the_other): css::uno::Exception(the_other), CheckPos(the_other.CheckPos) {}
32 :
33 : MalformedNumberFormatException::~MalformedNumberFormatException() {}
34 :
35 : MalformedNumberFormatException & MalformedNumberFormatException::operator =(MalformedNumberFormatException const & the_other) {
36 : //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
37 : css::uno::Exception::operator =(the_other);
38 : CheckPos = the_other.CheckPos;
39 : return *this;
40 : }
41 :
42 : } } } }
43 :
44 : namespace com { namespace sun { namespace star { namespace util { namespace detail {
45 :
46 : struct theMalformedNumberFormatExceptionType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theMalformedNumberFormatExceptionType >
47 : {
48 3 : ::com::sun::star::uno::Type * operator()() const
49 : {
50 3 : ::rtl::OUString sTypeName( "com.sun.star.util.MalformedNumberFormatException" );
51 :
52 : // Start inline typedescription generation
53 3 : typelib_TypeDescription * pTD = 0;
54 3 : const ::com::sun::star::uno::Type& rSuperType = ::cppu::UnoType< css::uno::Exception >::get();
55 :
56 : typelib_CompoundMember_Init aMembers[1];
57 3 : ::rtl::OUString sMemberType0( "long" );
58 3 : ::rtl::OUString sMemberName0( "CheckPos" );
59 3 : aMembers[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_LONG;
60 3 : aMembers[0].pTypeName = sMemberType0.pData;
61 3 : aMembers[0].pMemberName = sMemberName0.pData;
62 :
63 : typelib_typedescription_new(
64 : &pTD,
65 : (typelib_TypeClass)::com::sun::star::uno::TypeClass_EXCEPTION, sTypeName.pData,
66 : rSuperType.getTypeLibType(),
67 : 1,
68 3 : aMembers );
69 :
70 3 : typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
71 :
72 3 : typelib_typedescription_release( pTD );
73 : // End inline typedescription generation
74 :
75 3 : return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_EXCEPTION, sTypeName ); // leaked
76 : }
77 : };
78 :
79 : } } } } }
80 :
81 : namespace com { namespace sun { namespace star { namespace util {
82 :
83 6 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::util::MalformedNumberFormatException const *) {
84 6 : return *detail::theMalformedNumberFormatExceptionType::get();
85 : }
86 :
87 : } } } }
88 :
89 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::util::MalformedNumberFormatException const *) SAL_THROW(()) {
90 : return ::cppu::UnoType< css::util::MalformedNumberFormatException >::get();
91 : }
92 :
93 : #endif // INCLUDED_COM_SUN_STAR_UTIL_MALFORMEDNUMBERFORMATEXCEPTION_HPP
|