LCOV - code coverage report
Current view: top level - workdir/unxlngi6.pro/UnoApiHeadersTarget/udkapi/comprehensive/com/sun/star/lang - WrappedTargetException.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 15 25 60.0 %
Date: 2012-08-25 Functions: 2 6 33.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 3 10 30.0 %

           Branch data     Line data    Source code
       1                 :            : #ifndef INCLUDED_COM_SUN_STAR_LANG_WRAPPEDTARGETEXCEPTION_HPP
       2                 :            : #define INCLUDED_COM_SUN_STAR_LANG_WRAPPEDTARGETEXCEPTION_HPP
       3                 :            : 
       4                 :            : #include "sal/config.h"
       5                 :            : 
       6                 :            : #include "com/sun/star/lang/WrappedTargetException.hdl"
       7                 :            : 
       8                 :            : #include "com/sun/star/uno/Exception.hpp"
       9                 :            : #include "com/sun/star/uno/Any.hxx"
      10                 :            : #include "com/sun/star/uno/Type.hxx"
      11                 :            : #include "cppu/unotype.hxx"
      12                 :            : #include "osl/mutex.hxx"
      13                 :            : #include "rtl/instance.hxx"
      14                 :            : 
      15                 :            : namespace com { namespace sun { namespace star { namespace lang {
      16                 :            : 
      17                 :          0 : inline WrappedTargetException::WrappedTargetException() SAL_THROW(())
      18                 :            :     : ::com::sun::star::uno::Exception()
      19                 :          0 :     , TargetException()
      20                 :            : {
      21         [ #  # ]:          0 :     ::cppu::UnoType< ::com::sun::star::lang::WrappedTargetException >::get();
      22                 :          0 : }
      23                 :            : 
      24                 :          0 : inline WrappedTargetException::WrappedTargetException(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Context_, const ::com::sun::star::uno::Any& TargetException_) SAL_THROW(())
      25                 :            :     : ::com::sun::star::uno::Exception(Message_, Context_)
      26                 :          0 :     , TargetException(TargetException_)
      27                 :            : {
      28         [ #  # ]:          0 :     ::cppu::UnoType< ::com::sun::star::lang::WrappedTargetException >::get();
      29                 :          0 : }
      30                 :            : 
      31                 :          0 : WrappedTargetException::WrappedTargetException(WrappedTargetException const & the_other): ::com::sun::star::uno::Exception(the_other), TargetException(the_other.TargetException) {}
      32                 :            : 
      33                 :          0 : WrappedTargetException::~WrappedTargetException() {}
      34                 :            : 
      35                 :            : WrappedTargetException & WrappedTargetException::operator =(WrappedTargetException const & the_other) {
      36                 :            :     //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
      37                 :            :     ::com::sun::star::uno::Exception::operator =(the_other);
      38                 :            :     TargetException = the_other.TargetException;
      39                 :            :     return *this;
      40                 :            : }
      41                 :            : 
      42                 :            : } } } }
      43                 :            : 
      44                 :            : namespace com { namespace sun { namespace star { namespace lang { namespace detail {
      45                 :            : 
      46                 :            : struct theWrappedTargetExceptionType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theWrappedTargetExceptionType >
      47                 :            : {
      48                 :        776 :     ::com::sun::star::uno::Type * operator()() const
      49                 :            :     {
      50         [ +  - ]:        776 :         ::rtl::OUString sTypeName( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.WrappedTargetException") );
      51                 :            : 
      52                 :            :         // Start inline typedescription generation
      53                 :        776 :         typelib_TypeDescription * pTD = 0;
      54                 :        776 :         const ::com::sun::star::uno::Type& rSuperType = ::cppu::UnoType< ::com::sun::star::uno::Exception >::get();
      55                 :            : 
      56                 :            :         typelib_CompoundMember_Init aMembers[1];
      57         [ +  - ]:        776 :         ::rtl::OUString sMemberType0( RTL_CONSTASCII_USTRINGPARAM("any") );
      58         [ +  - ]:        776 :         ::rtl::OUString sMemberName0( RTL_CONSTASCII_USTRINGPARAM("TargetException") );
      59                 :        776 :         aMembers[0].eTypeClass = (typelib_TypeClass)::com::sun::star::uno::TypeClass_ANY;
      60                 :        776 :         aMembers[0].pTypeName = sMemberType0.pData;
      61                 :        776 :         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                 :        776 :             aMembers );
      69                 :            : 
      70                 :        776 :         typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
      71                 :            : 
      72                 :        776 :         typelib_typedescription_release( pTD );
      73                 :            :         // End inline typedescription generation
      74                 :            : 
      75                 :        776 :         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 lang {
      82                 :            : 
      83                 :       3063 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::lang::WrappedTargetException const *) {
      84                 :       3063 :     return *detail::theWrappedTargetExceptionType::get();
      85                 :            : }
      86                 :            : 
      87                 :            : } } } }
      88                 :            : 
      89                 :            : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::lang::WrappedTargetException const *) SAL_THROW(()) {
      90                 :            :     return ::cppu::UnoType< ::com::sun::star::lang::WrappedTargetException >::get();
      91                 :            : }
      92                 :            : 
      93                 :            : #endif // INCLUDED_COM_SUN_STAR_LANG_WRAPPEDTARGETEXCEPTION_HPP

Generated by: LCOV version 1.10