LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/workdir/unxlngi6.pro/UnoApiHeadersTarget/cppu/comprehensive/test/codemaker/cppumaker - BigStruct.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 67 67 100.0 %
Date: 2013-07-09 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_TEST_CODEMAKER_CPPUMAKER_BIGSTRUCT_HPP
       2             : #define INCLUDED_TEST_CODEMAKER_CPPUMAKER_BIGSTRUCT_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "test/codemaker/cppumaker/BigStruct.hdl"
       7             : 
       8             : #include "com/sun/star/uno/XInterface.hpp"
       9             : #include "test/codemaker/cppumaker/HelperEnum.hpp"
      10             : #include "test/codemaker/cppumaker/HelperStruct.hpp"
      11             : #include "test/codemaker/cppumaker/TDByte.hpp"
      12             : #include "test/codemaker/cppumaker/TDEnum.hpp"
      13             : #include "com/sun/star/uno/Any.hxx"
      14             : #include "com/sun/star/uno/Reference.hxx"
      15             : #include "com/sun/star/uno/Sequence.hxx"
      16             : #include "com/sun/star/uno/Type.hxx"
      17             : #include "cppu/unotype.hxx"
      18             : #include "osl/mutex.hxx"
      19             : #include "rtl/ustring.h"
      20             : #include "rtl/ustring.hxx"
      21             : #include "rtl/instance.hxx"
      22             : #include "sal/types.h"
      23             : #include "typelib/typeclass.h"
      24             : #include "typelib/typedescription.h"
      25             : 
      26             : namespace test { namespace codemaker { namespace cppumaker {
      27             : 
      28           1 : inline BigStruct::BigStruct() SAL_THROW(())
      29             :     : m1(false)
      30             :     , m2(0)
      31             :     , m3(0)
      32             :     , m4(0)
      33             :     , m5(0)
      34             :     , m6(0)
      35             :     , m7(0)
      36             :     , m8(0)
      37             :     , m9(0)
      38             :     , m10(0)
      39             :     , m11(0)
      40             :     , m12()
      41             :     , m13()
      42             :     , m14()
      43             :     , m15()
      44             :     , m16(::test::codemaker::cppumaker::HelperEnum_ZERO)
      45             :     , m17()
      46             :     , m18()
      47             :     , m19(0)
      48             :     , m20(::test::codemaker::cppumaker::HelperEnum_ZERO)
      49             :     , m21()
      50             :     , m22()
      51           1 :     , m23()
      52             : {
      53           1 : }
      54             : 
      55             : inline BigStruct::BigStruct(const ::sal_Bool& m1_, const ::sal_Int8& m2_, const ::sal_Int16& m3_, const ::sal_uInt16& m4_, const ::sal_Int32& m5_, const ::sal_uInt32& m6_, const ::sal_Int64& m7_, const ::sal_uInt64& m8_, const float& m9_, const double& m10_, const ::sal_Unicode& m11_, const ::rtl::OUString& m12_, const ::com::sun::star::uno::Type& m13_, const ::com::sun::star::uno::Any& m14_, const ::com::sun::star::uno::Sequence< ::sal_Bool >& m15_, const ::test::codemaker::cppumaker::HelperEnum& m16_, const ::test::codemaker::cppumaker::HelperStruct& m17_, const ::com::sun::star::uno::Reference< css::uno::XInterface >& m18_, const ::sal_Int8& m19_, const ::test::codemaker::cppumaker::HelperEnum& m20_, const ::com::sun::star::uno::Sequence< ::sal_uInt16 >& m21_, const ::com::sun::star::uno::Sequence< ::sal_Unicode >& m22_, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::sal_Unicode > >& m23_) SAL_THROW(())
      56             :     : m1(m1_)
      57             :     , m2(m2_)
      58             :     , m3(m3_)
      59             :     , m4(m4_)
      60             :     , m5(m5_)
      61             :     , m6(m6_)
      62             :     , m7(m7_)
      63             :     , m8(m8_)
      64             :     , m9(m9_)
      65             :     , m10(m10_)
      66             :     , m11(m11_)
      67             :     , m12(m12_)
      68             :     , m13(m13_)
      69             :     , m14(m14_)
      70             :     , m15(m15_)
      71             :     , m16(m16_)
      72             :     , m17(m17_)
      73             :     , m18(m18_)
      74             :     , m19(m19_)
      75             :     , m20(m20_)
      76             :     , m21(m21_)
      77             :     , m22(m22_)
      78             :     , m23(m23_)
      79             : {
      80             : }
      81             : 
      82             : } } }
      83             : 
      84             : namespace test { namespace codemaker { namespace cppumaker { namespace detail {
      85             : 
      86             : struct theBigStructType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theBigStructType >
      87             : {
      88           1 :     ::com::sun::star::uno::Type * operator()() const
      89             :     {
      90           1 :         ::rtl::OUString the_name( "test.codemaker.cppumaker.BigStruct" );
      91           2 :         ::rtl::OUString the_tname0( "boolean" );
      92           2 :         ::rtl::OUString the_name0( "m1" );
      93           2 :         ::rtl::OUString the_tname1( "byte" );
      94           2 :         ::rtl::OUString the_name1( "m2" );
      95           2 :         ::rtl::OUString the_tname2( "short" );
      96           2 :         ::rtl::OUString the_name2( "m3" );
      97           2 :         ::rtl::OUString the_tname3( "unsigned short" );
      98           2 :         ::rtl::OUString the_name3( "m4" );
      99           2 :         ::rtl::OUString the_tname4( "long" );
     100           2 :         ::rtl::OUString the_name4( "m5" );
     101           2 :         ::rtl::OUString the_tname5( "unsigned long" );
     102           2 :         ::rtl::OUString the_name5( "m6" );
     103           2 :         ::rtl::OUString the_tname6( "hyper" );
     104           2 :         ::rtl::OUString the_name6( "m7" );
     105           2 :         ::rtl::OUString the_tname7( "unsigned hyper" );
     106           2 :         ::rtl::OUString the_name7( "m8" );
     107           2 :         ::rtl::OUString the_tname8( "float" );
     108           2 :         ::rtl::OUString the_name8( "m9" );
     109           2 :         ::rtl::OUString the_tname9( "double" );
     110           2 :         ::rtl::OUString the_name9( "m10" );
     111           2 :         ::rtl::OUString the_tname10( "char" );
     112           2 :         ::rtl::OUString the_name10( "m11" );
     113           2 :         ::rtl::OUString the_tname11( "string" );
     114           2 :         ::rtl::OUString the_name11( "m12" );
     115           2 :         ::rtl::OUString the_tname12( "type" );
     116           2 :         ::rtl::OUString the_name12( "m13" );
     117           2 :         ::rtl::OUString the_tname13( "any" );
     118           2 :         ::rtl::OUString the_name13( "m14" );
     119           1 :         ::cppu::UnoType< ::cppu::UnoSequenceType< ::sal_Bool > >::get();
     120           2 :         ::rtl::OUString the_tname14( "[]boolean" );
     121           2 :         ::rtl::OUString the_name14( "m15" );
     122           1 :         ::cppu::UnoType< ::test::codemaker::cppumaker::HelperEnum >::get();
     123           2 :         ::rtl::OUString the_tname15( "test.codemaker.cppumaker.HelperEnum" );
     124           2 :         ::rtl::OUString the_name15( "m16" );
     125           1 :         ::cppu::UnoType< ::test::codemaker::cppumaker::HelperStruct >::get();
     126           2 :         ::rtl::OUString the_tname16( "test.codemaker.cppumaker.HelperStruct" );
     127           2 :         ::rtl::OUString the_name16( "m17" );
     128           1 :         ::cppu::UnoType< ::com::sun::star::uno::Reference< css::uno::XInterface > >::get();
     129           2 :         ::rtl::OUString the_tname17( "com.sun.star.uno.XInterface" );
     130           2 :         ::rtl::OUString the_name17( "m18" );
     131           2 :         ::rtl::OUString the_tname18( "byte" );
     132           2 :         ::rtl::OUString the_name18( "m19" );
     133           1 :         ::cppu::UnoType< ::test::codemaker::cppumaker::HelperEnum >::get();
     134           2 :         ::rtl::OUString the_tname19( "test.codemaker.cppumaker.HelperEnum" );
     135           2 :         ::rtl::OUString the_name19( "m20" );
     136           1 :         ::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoUnsignedShortType > >::get();
     137           2 :         ::rtl::OUString the_tname20( "[]unsigned short" );
     138           2 :         ::rtl::OUString the_name20( "m21" );
     139           1 :         ::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoCharType > >::get();
     140           2 :         ::rtl::OUString the_tname21( "[]char" );
     141           2 :         ::rtl::OUString the_name21( "m22" );
     142           1 :         ::cppu::UnoType< ::cppu::UnoSequenceType< ::cppu::UnoSequenceType< ::cppu::UnoCharType > > >::get();
     143           2 :         ::rtl::OUString the_tname22( "[][]char" );
     144           2 :         ::rtl::OUString the_name22( "m23" );
     145             :         ::typelib_StructMember_Init the_members[] = {
     146             :             { { typelib_TypeClass_BOOLEAN, the_tname0.pData, the_name0.pData }, false },
     147             :             { { typelib_TypeClass_BYTE, the_tname1.pData, the_name1.pData }, false },
     148             :             { { typelib_TypeClass_SHORT, the_tname2.pData, the_name2.pData }, false },
     149             :             { { typelib_TypeClass_UNSIGNED_SHORT, the_tname3.pData, the_name3.pData }, false },
     150             :             { { typelib_TypeClass_LONG, the_tname4.pData, the_name4.pData }, false },
     151             :             { { typelib_TypeClass_UNSIGNED_LONG, the_tname5.pData, the_name5.pData }, false },
     152             :             { { typelib_TypeClass_HYPER, the_tname6.pData, the_name6.pData }, false },
     153             :             { { typelib_TypeClass_UNSIGNED_HYPER, the_tname7.pData, the_name7.pData }, false },
     154             :             { { typelib_TypeClass_FLOAT, the_tname8.pData, the_name8.pData }, false },
     155             :             { { typelib_TypeClass_DOUBLE, the_tname9.pData, the_name9.pData }, false },
     156             :             { { typelib_TypeClass_CHAR, the_tname10.pData, the_name10.pData }, false },
     157             :             { { typelib_TypeClass_STRING, the_tname11.pData, the_name11.pData }, false },
     158             :             { { typelib_TypeClass_TYPE, the_tname12.pData, the_name12.pData }, false },
     159             :             { { typelib_TypeClass_ANY, the_tname13.pData, the_name13.pData }, false },
     160             :             { { typelib_TypeClass_SEQUENCE, the_tname14.pData, the_name14.pData }, false },
     161             :             { { typelib_TypeClass_ENUM, the_tname15.pData, the_name15.pData }, false },
     162             :             { { typelib_TypeClass_STRUCT, the_tname16.pData, the_name16.pData }, false },
     163             :             { { typelib_TypeClass_INTERFACE, the_tname17.pData, the_name17.pData }, false },
     164             :             { { typelib_TypeClass_BYTE, the_tname18.pData, the_name18.pData }, false },
     165             :             { { typelib_TypeClass_ENUM, the_tname19.pData, the_name19.pData }, false },
     166             :             { { typelib_TypeClass_SEQUENCE, the_tname20.pData, the_name20.pData }, false },
     167             :             { { typelib_TypeClass_SEQUENCE, the_tname21.pData, the_name21.pData }, false },
     168           1 :             { { typelib_TypeClass_SEQUENCE, the_tname22.pData, the_name22.pData }, false } };
     169           1 :         ::typelib_TypeDescription * the_newType = 0;
     170           1 :         ::typelib_typedescription_newStruct(&the_newType, the_name.pData, 0, 23, the_members);
     171           1 :         ::typelib_typedescription_register(&the_newType);
     172           1 :         ::typelib_typedescription_release(the_newType);
     173           2 :         return new ::com::sun::star::uno::Type(::com::sun::star::uno::TypeClass_STRUCT, the_name); // leaked
     174             :     }
     175             : };
     176             : } } } }
     177             : 
     178             : namespace test { namespace codemaker { namespace cppumaker {
     179             : 
     180           1 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::test::codemaker::cppumaker::BigStruct const *) {
     181           1 :     return *detail::theBigStructType::get();
     182             : }
     183             : 
     184             : } } }
     185             : 
     186             : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::test::codemaker::cppumaker::BigStruct const *) SAL_THROW(()) {
     187             :     return ::cppu::UnoType< ::test::codemaker::cppumaker::BigStruct >::get();
     188             : }
     189             : 
     190             : #endif // INCLUDED_TEST_CODEMAKER_CPPUMAKER_BIGSTRUCT_HPP

Generated by: LCOV version 1.10