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

          Line data    Source code
       1             : #ifndef INCLUDED_STRUCT2A_HPP
       2             : #define INCLUDED_STRUCT2A_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "Struct2a.hdl"
       7             : 
       8             : #include "Struct2.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 Struct2a::Struct2a() SAL_THROW(())
      21             :     : Struct2()
      22             :     , member2(0)
      23             : {
      24             : }
      25             : 
      26           6 : inline Struct2a::Struct2a(const ::sal_Int32& member_, const ::sal_Int32& member2_) SAL_THROW(())
      27             :     : Struct2(member_)
      28           6 :     , member2(member2_)
      29             : {
      30           6 : }
      31             : 
      32             : 
      33             :  namespace detail {
      34             : 
      35             : struct theStruct2aType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theStruct2aType >
      36             : {
      37           2 :     ::com::sun::star::uno::Type * operator()() const
      38             :     {
      39           2 :         ::rtl::OUString the_name( "Struct2a" );
      40           2 :         ::rtl::OUString the_tname0( "long" );
      41           2 :         ::rtl::OUString the_name0( "member2" );
      42             :         ::typelib_StructMember_Init the_members[] = {
      43           2 :             { { typelib_TypeClass_LONG, the_tname0.pData, the_name0.pData }, false } };
      44           2 :         ::typelib_TypeDescription * the_newType = 0;
      45           2 :         ::typelib_typedescription_newStruct(&the_newType, the_name.pData, ::cppu::UnoType< Struct2 >::get().getTypeLibType(), 1, the_members);
      46           2 :         ::typelib_typedescription_register(&the_newType);
      47           2 :         ::typelib_typedescription_release(the_newType);
      48           2 :         return new ::com::sun::star::uno::Type(::com::sun::star::uno::TypeClass_STRUCT, the_name); // leaked
      49             :     }
      50             : };
      51             :  }
      52             : 
      53           8 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER Struct2a const *) {
      54           8 :     return *detail::theStruct2aType::get();
      55             : }
      56             : 
      57             : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER Struct2a const *) SAL_THROW(()) {
      58             :     return ::cppu::UnoType< Struct2a >::get();
      59             : }
      60             : 
      61             : #endif // INCLUDED_STRUCT2A_HPP

Generated by: LCOV version 1.10