LCOV - code coverage report
Current view: top level - workdir/unxlngi6.pro/UnoApiHeadersTarget/udkapi/comprehensive/com/sun/star/registry - RegistryKeyType.hpp (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 15 15 100.0 %
Date: 2012-08-25 Functions: 2 2 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 3 6 50.0 %

           Branch data     Line data    Source code
       1                 :            : #ifndef INCLUDED_COM_SUN_STAR_REGISTRY_REGISTRYKEYTYPE_HPP
       2                 :            : #define INCLUDED_COM_SUN_STAR_REGISTRY_REGISTRYKEYTYPE_HPP
       3                 :            : 
       4                 :            : #include "sal/config.h"
       5                 :            : 
       6                 :            : #include "com/sun/star/registry/RegistryKeyType.hdl"
       7                 :            : 
       8                 :            : #include "com/sun/star/uno/Type.hxx"
       9                 :            : #include "cppu/unotype.hxx"
      10                 :            : #include "osl/mutex.hxx"
      11                 :            : #include "rtl/instance.hxx"
      12                 :            : 
      13                 :            : namespace com { namespace sun { namespace star { namespace registry { namespace detail {
      14                 :            : 
      15                 :            : struct theRegistryKeyTypeType : public rtl::StaticWithInit< ::com::sun::star::uno::Type *, theRegistryKeyTypeType >
      16                 :            : {
      17                 :        747 :     ::com::sun::star::uno::Type * operator()() const
      18                 :            :     {
      19         [ +  - ]:        747 :         ::rtl::OUString sTypeName( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.registry.RegistryKeyType") );
      20                 :            : 
      21                 :            :         // Start inline typedescription generation
      22                 :        747 :         typelib_TypeDescription * pTD = 0;
      23                 :            : 
      24                 :            :         rtl_uString* enumValueNames[2];
      25         [ +  - ]:        747 :         ::rtl::OUString sEnumValue0( RTL_CONSTASCII_USTRINGPARAM("KEY") );
      26                 :        747 :         enumValueNames[0] = sEnumValue0.pData;
      27         [ +  - ]:        747 :         ::rtl::OUString sEnumValue1( RTL_CONSTASCII_USTRINGPARAM("LINK") );
      28                 :        747 :         enumValueNames[1] = sEnumValue1.pData;
      29                 :            : 
      30                 :            :         sal_Int32 enumValues[2];
      31                 :        747 :         enumValues[0] = 0;
      32                 :        747 :         enumValues[1] = 1;
      33                 :            : 
      34                 :            :         typelib_typedescription_newEnum( &pTD,
      35                 :            :             sTypeName.pData,
      36                 :            :             (sal_Int32)::com::sun::star::registry::RegistryKeyType_KEY,
      37                 :        747 :             2, enumValueNames, enumValues );
      38                 :            : 
      39                 :        747 :         typelib_typedescription_register( (typelib_TypeDescription**)&pTD );
      40                 :        747 :         typelib_typedescription_release( pTD );
      41                 :            :         // End inline typedescription generation
      42                 :            : 
      43                 :        747 :         return new ::com::sun::star::uno::Type( ::com::sun::star::uno::TypeClass_ENUM, sTypeName ); // leaked
      44                 :            :     }
      45                 :            : };
      46                 :            : 
      47                 :            : } } } } }
      48                 :            : 
      49                 :            : namespace com { namespace sun { namespace star { namespace registry {
      50                 :            : 
      51                 :        747 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::registry::RegistryKeyType const *) {
      52                 :        747 :     return *detail::theRegistryKeyTypeType::get();
      53                 :            : }
      54                 :            : 
      55                 :            : } } } }
      56                 :            : 
      57                 :            : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::registry::RegistryKeyType const *) SAL_THROW(()) {
      58                 :            :     return ::cppu::UnoType< ::com::sun::star::registry::RegistryKeyType >::get();
      59                 :            : }
      60                 :            : 
      61                 :            : #endif // INCLUDED_COM_SUN_STAR_REGISTRY_REGISTRYKEYTYPE_HPP

Generated by: LCOV version 1.10