LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/udkapi/com/sun/star/beans - XFastPropertySet.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 73 73 100.0 %
Date: 2012-08-25 Functions: 4 4 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 29 56 51.8 %

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

Generated by: LCOV version 1.10