LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/workdir/unxlngi6.pro/UnoApiHeadersTarget/udkapi/comprehensive/com/sun/star/reflection - XServiceConstructorDescription.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 62 0.0 %
Date: 2013-07-09 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef INCLUDED_COM_SUN_STAR_REFLECTION_XSERVICECONSTRUCTORDESCRIPTION_HPP
       2             : #define INCLUDED_COM_SUN_STAR_REFLECTION_XSERVICECONSTRUCTORDESCRIPTION_HPP
       3             : 
       4             : #include "sal/config.h"
       5             : 
       6             : #include "com/sun/star/reflection/XServiceConstructorDescription.hdl"
       7             : 
       8             : #include "com/sun/star/reflection/XCompoundTypeDescription.hpp"
       9             : #include "com/sun/star/reflection/XParameter.hpp"
      10             : #include "com/sun/star/uno/RuntimeException.hpp"
      11             : #include "com/sun/star/uno/XInterface.hpp"
      12             : #include "com/sun/star/uno/Reference.hxx"
      13             : #include "com/sun/star/uno/Sequence.hxx"
      14             : #include "com/sun/star/uno/Type.hxx"
      15             : #include "cppu/unotype.hxx"
      16             : #include "osl/mutex.hxx"
      17             : #include "rtl/ustring.hxx"
      18             : #include "rtl/instance.hxx"
      19             : #include "sal/types.h"
      20             : 
      21             : namespace com { namespace sun { namespace star { namespace reflection { namespace detail {
      22             : 
      23             : struct theXServiceConstructorDescriptionType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theXServiceConstructorDescriptionType >
      24             : {
      25           0 :     ::com::sun::star::uno::Type * operator()() const
      26             :     {
      27           0 :         ::rtl::OUString sTypeName( "com.sun.star.reflection.XServiceConstructorDescription" );
      28             : 
      29             :         // Start inline typedescription generation
      30           0 :         typelib_InterfaceTypeDescription * pTD = 0;
      31             : 
      32             :         typelib_TypeDescriptionReference * aSuperTypes[1];
      33           0 :         aSuperTypes[0] = ::cppu::UnoType< ::com::sun::star::uno::Reference< css::uno::XInterface > >::get().getTypeLibType();
      34           0 :         typelib_TypeDescriptionReference * pMembers[4] = { 0,0,0,0 };
      35           0 :         ::rtl::OUString sMethodName0( "com.sun.star.reflection.XServiceConstructorDescription::isDefaultConstructor" );
      36             :         typelib_typedescriptionreference_new( &pMembers[0],
      37             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      38           0 :                                               sMethodName0.pData );
      39           0 :         ::rtl::OUString sMethodName1( "com.sun.star.reflection.XServiceConstructorDescription::getName" );
      40             :         typelib_typedescriptionreference_new( &pMembers[1],
      41             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      42           0 :                                               sMethodName1.pData );
      43           0 :         ::rtl::OUString sMethodName2( "com.sun.star.reflection.XServiceConstructorDescription::getParameters" );
      44             :         typelib_typedescriptionreference_new( &pMembers[2],
      45             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      46           0 :                                               sMethodName2.pData );
      47           0 :         ::rtl::OUString sMethodName3( "com.sun.star.reflection.XServiceConstructorDescription::getExceptions" );
      48             :         typelib_typedescriptionreference_new( &pMembers[3],
      49             :                                               (typelib_TypeClass)::com::sun::star::uno::TypeClass_INTERFACE_METHOD,
      50           0 :                                               sMethodName3.pData );
      51             : 
      52             :         typelib_typedescription_newMIInterface(
      53             :             &pTD,
      54             :             sTypeName.pData, 0x00000000, 0x0000, 0x0000, 0x00000000, 0x00000000,
      55             :             1, aSuperTypes,
      56             :             4,
      57           0 :             pMembers );
      58             : 
      59           0 :         typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
      60           0 :         typelib_typedescriptionreference_release( pMembers[0] );
      61           0 :         typelib_typedescriptionreference_release( pMembers[1] );
      62           0 :         typelib_typedescriptionreference_release( pMembers[2] );
      63           0 :         typelib_typedescriptionreference_release( pMembers[3] );
      64           0 :         typelib_typedescription_release( (typelib_TypeDescription*)pTD );
      65             : 
      66           0 :         return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_INTERFACE, sTypeName ); // leaked
      67             :     }
      68             : };
      69             : 
      70             : } } } } }
      71             : 
      72             : namespace com { namespace sun { namespace star { namespace reflection {
      73             : 
      74           0 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::reflection::XServiceConstructorDescription const *) {
      75           0 :     const ::com::sun::star::uno::Type &rRet = *detail::theXServiceConstructorDescriptionType::get();
      76             :     // End inline typedescription generation
      77             :     static bool bInitStarted = false;
      78           0 :     if (!bInitStarted)
      79             :     {
      80           0 :         ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
      81           0 :         if (!bInitStarted)
      82             :         {
      83             :             OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
      84           0 :             bInitStarted = true;
      85           0 :             ::cppu::UnoType< css::uno::RuntimeException >::get();
      86           0 :             ::cppu::UnoType< ::cppu::UnoSequenceType< ::com::sun::star::uno::Reference< css::reflection::XParameter > > >::get();
      87           0 :             ::cppu::UnoType< ::cppu::UnoSequenceType< ::com::sun::star::uno::Reference< css::reflection::XCompoundTypeDescription > > >::get();
      88             : 
      89           0 :             typelib_InterfaceMethodTypeDescription * pMethod = 0;
      90             :             {
      91           0 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
      92           0 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
      93           0 :                 ::rtl::OUString sReturnType0( "boolean" );
      94           0 :                 ::rtl::OUString sMethodName0( "com.sun.star.reflection.XServiceConstructorDescription::isDefaultConstructor" );
      95             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
      96             :                     3, sal_False,
      97             :                     sMethodName0.pData,
      98             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_BOOLEAN, sReturnType0.pData,
      99             :                     0, 0,
     100           0 :                     1, the_Exceptions );
     101           0 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     102             :             }
     103             :             {
     104           0 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     105           0 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     106           0 :                 ::rtl::OUString sReturnType1( "string" );
     107           0 :                 ::rtl::OUString sMethodName1( "com.sun.star.reflection.XServiceConstructorDescription::getName" );
     108             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     109             :                     4, sal_False,
     110             :                     sMethodName1.pData,
     111             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_STRING, sReturnType1.pData,
     112             :                     0, 0,
     113           0 :                     1, the_Exceptions );
     114           0 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     115             :             }
     116             :             {
     117           0 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     118           0 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     119           0 :                 ::rtl::OUString sReturnType2( "[]com.sun.star.reflection.XParameter" );
     120           0 :                 ::rtl::OUString sMethodName2( "com.sun.star.reflection.XServiceConstructorDescription::getParameters" );
     121             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     122             :                     5, sal_False,
     123             :                     sMethodName2.pData,
     124             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType2.pData,
     125             :                     0, 0,
     126           0 :                     1, the_Exceptions );
     127           0 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     128             :             }
     129             :             {
     130           0 :                 ::rtl::OUString the_ExceptionName0( "com.sun.star.uno.RuntimeException" );
     131           0 :                 rtl_uString * the_Exceptions[] = { the_ExceptionName0.pData };
     132           0 :                 ::rtl::OUString sReturnType3( "[]com.sun.star.reflection.XCompoundTypeDescription" );
     133           0 :                 ::rtl::OUString sMethodName3( "com.sun.star.reflection.XServiceConstructorDescription::getExceptions" );
     134             :                 typelib_typedescription_newInterfaceMethod( &pMethod,
     135             :                     6, sal_False,
     136             :                     sMethodName3.pData,
     137             :                     (typelib_TypeClass)::com::sun::star::uno::TypeClass_SEQUENCE, sReturnType3.pData,
     138             :                     0, 0,
     139           0 :                     1, the_Exceptions );
     140           0 :                 typelib_typedescription_register( (typelib_TypeDescription**)&pMethod );
     141             :             }
     142           0 :             typelib_typedescription_release( (typelib_TypeDescription*)pMethod );
     143           0 :         }
     144             :     }
     145             :     else
     146             :     {
     147             :         OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
     148             :     }
     149           0 :     return rRet;
     150             : }
     151             : 
     152             : } } } }
     153             : 
     154           0 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::uno::Reference< css::reflection::XServiceConstructorDescription > const *) SAL_THROW(()) {
     155           0 :     return ::cppu::UnoType< ::com::sun::star::uno::Reference< css::reflection::XServiceConstructorDescription > >::get();
     156             : }
     157             : 
     158           0 : ::com::sun::star::uno::Type const & css::reflection::XServiceConstructorDescription::static_type(SAL_UNUSED_PARAMETER void *) {
     159           0 :     return ::getCppuType(static_cast< ::com::sun::star::uno::Reference< css::reflection::XServiceConstructorDescription > * >(0));
     160             : }
     161             : 
     162             : #endif // INCLUDED_COM_SUN_STAR_REFLECTION_XSERVICECONSTRUCTORDESCRIPTION_HPP

Generated by: LCOV version 1.10