LCOV - code coverage report
Current view: top level - libreoffice/workdir/unxlngi6.pro/UnoApiHeadersTarget/cppu/comprehensive - Exception2a.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 20 20 100.0 %
Date: 2012-12-27 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.10