LCOV - code coverage report
Current view: top level - libreoffice/workdir/unxlngi6.pro/UnoApiHeadersTarget/cppu/comprehensive - Struct2b.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_STRUCT2B_HPP
       2             : #define INCLUDED_STRUCT2B_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "Struct2b.hdl"
       7             : 
       8             : #include "Struct2a.hpp"
       9             : #include "com/sun/star/uno/Type.hxx"
      10             : #include "cppu/unotype.hxx"
      11             : #include "osl/mutex.hxx"
      12             : #include "rtl/ustring.h"
      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             : 
      20             : inline Struct2b::Struct2b() SAL_THROW(())
      21             :     : Struct2a()
      22             :     , member3(0)
      23             : {
      24             : }
      25             : 
      26           1 : inline Struct2b::Struct2b(const ::sal_Int32& member_, const ::sal_Int32& member2_, const ::sal_Int32& member3_) SAL_THROW(())
      27             :     : Struct2a(member_, member2_)
      28           1 :     , member3(member3_)
      29             : {
      30           1 : }
      31             : 
      32             : 
      33             :  namespace detail {
      34             : 
      35             : struct theStruct2bType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theStruct2bType >
      36             : {
      37           1 :     ::com::sun::star::uno::Type * operator()() const
      38             :     {
      39           1 :         ::rtl::OUString the_name( "Struct2b" );
      40           1 :         ::rtl::OUString the_tname0( "long" );
      41           1 :         ::rtl::OUString the_name0( "member3" );
      42             :         ::typelib_StructMember_Init the_members[] = {
      43           1 :             { { typelib_TypeClass_LONG, the_tname0.pData, the_name0.pData }, false } };
      44           1 :         ::typelib_TypeDescription * the_newType = 0;
      45           1 :         ::typelib_typedescription_newStruct(&the_newType, the_name.pData, ::cppu::UnoType< Struct2a >::get().getTypeLibType(), 1, the_members);
      46           1 :         ::typelib_typedescription_register(&the_newType);
      47           1 :         ::typelib_typedescription_release(the_newType);
      48           1 :         return new ::com::sun::star::uno::Type(::com::sun::star::uno::TypeClass_STRUCT, the_name); // leaked
      49             :     }
      50             : };
      51             :  }
      52             : 
      53           1 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER Struct2b const *) {
      54           1 :     return *detail::theStruct2bType::get();
      55             : }
      56             : 
      57             : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER Struct2b const *) SAL_THROW(()) {
      58             :     return ::cppu::UnoType< Struct2b >::get();
      59             : }
      60             : 
      61             : #endif // INCLUDED_STRUCT2B_HPP

Generated by: LCOV version 1.10