LCOV - code coverage report
Current view: top level - workdir/unxlngi6.pro/UnoApiHeadersTarget/udkapi/comprehensive/com/sun/star/uno - Exception.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 16 16 100.0 %
Date: 2012-08-25 Functions: 6 6 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : #ifndef INCLUDED_COM_SUN_STAR_UNO_EXCEPTION_HPP
       2                 :            : #define INCLUDED_COM_SUN_STAR_UNO_EXCEPTION_HPP
       3                 :            : 
       4                 :            : #include "sal/config.h"
       5                 :            : 
       6                 :            : #include "com/sun/star/uno/Exception.hdl"
       7                 :            : 
       8                 :            : #include "com/sun/star/uno/XInterface.hpp"
       9                 :            : #include "com/sun/star/uno/Reference.hxx"
      10                 :            : #include "com/sun/star/uno/Type.hxx"
      11                 :            : #include "cppu/unotype.hxx"
      12                 :            : #include "osl/mutex.hxx"
      13                 :            : #include "rtl/ustring.hxx"
      14                 :            : #include "rtl/instance.hxx"
      15                 :            : #include "sal/types.h"
      16                 :            : #include "typelib/typeclass.h"
      17                 :            : #include "typelib/typedescription.h"
      18                 :            : 
      19                 :            : namespace com { namespace sun { namespace star { namespace uno {
      20                 :            : 
      21                 :       2271 : inline Exception::Exception() SAL_THROW(())
      22                 :            :     : Message()
      23                 :       2271 :     , Context()
      24                 :            : {
      25                 :       2271 :     ::cppu::UnoType< ::com::sun::star::uno::Exception >::get();
      26                 :       2271 : }
      27                 :            : 
      28                 :        150 : inline Exception::Exception(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Context_) SAL_THROW(())
      29                 :            :     : Message(Message_)
      30                 :        150 :     , Context(Context_)
      31                 :            : {
      32                 :        150 :     ::cppu::UnoType< ::com::sun::star::uno::Exception >::get();
      33                 :        150 : }
      34                 :            : 
      35                 :         10 : Exception::Exception(Exception const & the_other): Message(the_other.Message), Context(the_other.Context) {}
      36                 :            : 
      37                 :       2431 : Exception::~Exception() {}
      38                 :            : 
      39                 :         10 : Exception & Exception::operator =(Exception const & the_other) {
      40                 :            :     //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
      41                 :         10 :     Message = the_other.Message;
      42                 :         10 :     Context = the_other.Context;
      43                 :         10 :     return *this;
      44                 :            : }
      45                 :            : 
      46                 :            : } } } }
      47                 :            : 
      48                 :         10 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER const ::com::sun::star::uno::Exception *) SAL_THROW(()) {
      49                 :         10 :     return ::cppu::UnoType< ::com::sun::star::uno::Exception >::get();
      50                 :            : }
      51                 :            : 
      52                 :            : #endif // INCLUDED_COM_SUN_STAR_UNO_EXCEPTION_HPP

Generated by: LCOV version 1.10