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

          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           1 : inline Rec::Rec() SAL_THROW(())
      22           1 :     : x()
      23             : {
      24           1 : }
      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           1 :     ::com::sun::star::uno::Type * operator()() const
      37             :     {
      38           1 :         ::rtl::OUString the_name( "Rec" );
      39           1 :         ::rtl::OUString the_tname0( "[]Rec" );
      40           1 :         ::rtl::OUString the_name0( "x" );
      41             :         ::typelib_StructMember_Init the_members[] = {
      42           1 :             { { typelib_TypeClass_SEQUENCE, the_tname0.pData, the_name0.pData }, false } };
      43           1 :         ::typelib_TypeDescription * the_newType = 0;
      44           1 :         ::typelib_typedescription_newStruct(&the_newType, the_name.pData, 0, 1, the_members);
      45           1 :         ::typelib_typedescription_register(&the_newType);
      46           1 :         ::typelib_typedescription_release(the_newType);
      47           1 :         return new ::com::sun::star::uno::Type(::com::sun::star::uno::TypeClass_STRUCT, the_name); // leaked
      48             :     }
      49             : };
      50             :  }
      51             : 
      52           1 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER Rec const *) {
      53           1 :     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