LCOV - code coverage report
Current view: top level - workdir/unxlngi6.pro/UnoApiHeadersTarget/cppu/comprehensive - Rec.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 15 15 100.0 %
Date: 2012-08-25 Functions: 3 3 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 3 6 50.0 %

           Branch data     Line data    Source code
       1                 :            : #ifndef INCLUDED_REC_HPP
       2                 :            : #define INCLUDED_REC_HPP
       3                 :            : 
       4                 :            : #include "sal/config.h"
       5                 :            : 
       6                 :            : #include "Rec.hdl"
       7                 :            : 
       8                 :            : #include "Rec.hpp"
       9                 :            : #include "com/sun/star/uno/Sequence.hxx"
      10                 :            : #include "com/sun/star/uno/Type.hxx"
      11                 :            : #include "cppu/unotype.hxx"
      12                 :            : #include "osl/mutex.hxx"
      13                 :            : #include "rtl/ustring.h"
      14                 :            : #include "rtl/ustring.hxx"
      15                 :            : #include "rtl/instance.hxx"
      16                 :            : #include "sal/types.h"
      17                 :            : #include "typelib/typeclass.h"
      18                 :            : #include "typelib/typedescription.h"
      19                 :            : 
      20                 :            : 
      21                 :          5 : inline Rec::Rec() SAL_THROW(())
      22                 :          5 :     : x()
      23                 :            : {
      24                 :          5 : }
      25                 :            : 
      26                 :            : inline Rec::Rec(const ::com::sun::star::uno::Sequence< Rec >& x_) SAL_THROW(())
      27                 :            :     : x(x_)
      28                 :            : {
      29                 :            : }
      30                 :            : 
      31                 :            : 
      32                 :            :  namespace detail {
      33                 :            : 
      34                 :            : struct theRecType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theRecType >
      35                 :            : {
      36                 :          5 :     ::com::sun::star::uno::Type * operator()() const
      37                 :            :     {
      38         [ +  - ]:          5 :         ::rtl::OUString the_name(RTL_CONSTASCII_USTRINGPARAM("Rec"));
      39         [ +  - ]:          5 :         ::rtl::OUString the_tname0(RTL_CONSTASCII_USTRINGPARAM("[]Rec"));
      40         [ +  - ]:          5 :         ::rtl::OUString the_name0(RTL_CONSTASCII_USTRINGPARAM("x"));
      41                 :            :         ::typelib_StructMember_Init the_members[] = {
      42                 :          5 :             { { typelib_TypeClass_SEQUENCE, the_tname0.pData, the_name0.pData }, false } };
      43                 :          5 :         ::typelib_TypeDescription * the_newType = 0;
      44                 :          5 :         ::typelib_typedescription_newStruct(&the_newType, the_name.pData, 0, 1, the_members);
      45                 :          5 :         ::typelib_typedescription_register(&the_newType);
      46                 :          5 :         ::typelib_typedescription_release(the_newType);
      47                 :          5 :         return new ::com::sun::star::uno::Type(::com::sun::star::uno::TypeClass_STRUCT, the_name); // leaked
      48                 :            :     }
      49                 :            : };
      50                 :            :  }
      51                 :            : 
      52                 :          5 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER Rec const *) {
      53                 :          5 :     return *detail::theRecType::get();
      54                 :            : }
      55                 :            : 
      56                 :            : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER Rec const *) SAL_THROW(()) {
      57                 :            :     return ::cppu::UnoType< Rec >::get();
      58                 :            : }
      59                 :            : 
      60                 :            : #endif // INCLUDED_REC_HPP

Generated by: LCOV version 1.10