LCOV - code coverage report
Current view: top level - io/source/stm - factreg.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 4 50.0 %
Date: 2012-08-25 Functions: 1 2 50.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*
       3                 :            :  * This file is part of the LibreOffice project.
       4                 :            :  *
       5                 :            :  * This Source Code Form is subject to the terms of the Mozilla Public
       6                 :            :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7                 :            :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8                 :            :  *
       9                 :            :  * This file incorporates work covered by the following license notice:
      10                 :            :  *
      11                 :            :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12                 :            :  *   contributor license agreements. See the NOTICE file distributed
      13                 :            :  *   with this work for additional information regarding copyright
      14                 :            :  *   ownership. The ASF licenses this file to you under the Apache
      15                 :            :  *   License, Version 2.0 (the "License"); you may not use this file
      16                 :            :  *   except in compliance with the License. You may obtain a copy of
      17                 :            :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18                 :            :  */
      19                 :            : 
      20                 :            : 
      21                 :            : #include <osl/diagnose.h>
      22                 :            : #include <cppuhelper/factory.hxx>
      23                 :            : #include <cppuhelper/implementationentry.hxx>
      24                 :            : 
      25                 :            : #include <com/sun/star/registry/XRegistryKey.hpp>
      26                 :            : 
      27                 :            : using namespace ::rtl;
      28                 :            : using namespace ::cppu;
      29                 :            : using namespace ::com::sun::star::uno;
      30                 :            : using namespace ::com::sun::star::lang;
      31                 :            : using namespace ::com::sun::star::registry;
      32                 :            : 
      33                 :            : #include "factreg.hxx"
      34                 :            : 
      35                 :            : namespace io_stm
      36                 :            : {
      37                 :            :     rtl_StandardModuleCount g_moduleCount = MODULE_COUNT_INIT;
      38                 :            : }
      39                 :            : 
      40                 :            : using namespace io_stm;
      41                 :            : 
      42                 :            : static struct ImplementationEntry g_entries[] =
      43                 :            : {
      44                 :            :     {
      45                 :            :         OPipeImpl_CreateInstance, OPipeImpl_getImplementationName ,
      46                 :            :         OPipeImpl_getSupportedServiceNames, createSingleComponentFactory ,
      47                 :            :         &g_moduleCount.modCnt , 0
      48                 :            :     },
      49                 :            :     {
      50                 :            :         OPumpImpl_CreateInstance, OPumpImpl_getImplementationName ,
      51                 :            :         OPumpImpl_getSupportedServiceNames, createSingleComponentFactory ,
      52                 :            :         &g_moduleCount.modCnt , 0
      53                 :            :     },
      54                 :            :     {
      55                 :            :         ODataInputStream_CreateInstance, ODataInputStream_getImplementationName,
      56                 :            :         ODataInputStream_getSupportedServiceNames, createSingleComponentFactory,
      57                 :            :         &g_moduleCount.modCnt, 0
      58                 :            :     },
      59                 :            :     {
      60                 :            :         ODataOutputStream_CreateInstance, ODataOutputStream_getImplementationName,
      61                 :            :         ODataOutputStream_getSupportedServiceNames, createSingleComponentFactory,
      62                 :            :         &g_moduleCount.modCnt, 0
      63                 :            :     },
      64                 :            :     {
      65                 :            :         OObjectInputStream_CreateInstance, OObjectInputStream_getImplementationName,
      66                 :            :         OObjectInputStream_getSupportedServiceNames, createSingleComponentFactory,
      67                 :            :         &g_moduleCount.modCnt, 0
      68                 :            :     },
      69                 :            :     {
      70                 :            :         OObjectOutputStream_CreateInstance, OObjectOutputStream_getImplementationName,
      71                 :            :         OObjectOutputStream_getSupportedServiceNames, createSingleComponentFactory,
      72                 :            :         &g_moduleCount.modCnt, 0
      73                 :            :     },
      74                 :            :     {
      75                 :            :         OMarkableInputStream_CreateInstance, OMarkableInputStream_getImplementationName,
      76                 :            :         OMarkableInputStream_getSupportedServiceNames, createSingleComponentFactory,
      77                 :            :         &g_moduleCount.modCnt, 0
      78                 :            :     },
      79                 :            :     {
      80                 :            :         OMarkableOutputStream_CreateInstance, OMarkableOutputStream_getImplementationName,
      81                 :            :         OMarkableOutputStream_getSupportedServiceNames, createSingleComponentFactory,
      82                 :            :         &g_moduleCount.modCnt, 0
      83                 :            :     },
      84                 :            :     { 0, 0, 0, 0, 0, 0 }
      85                 :            : 
      86                 :            : };
      87                 :            : 
      88                 :            : extern "C"
      89                 :            : {
      90                 :            : 
      91                 :          0 : SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_canUnload( TimeValue *pTime )
      92                 :            : {
      93                 :          0 :     return g_moduleCount.canUnload( &g_moduleCount , pTime );
      94                 :            : }
      95                 :            : 
      96                 :            : //==================================================================================================
      97                 :         20 : SAL_DLLPUBLIC_EXPORT void * SAL_CALL component_getFactory(
      98                 :            :     const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
      99                 :            : {
     100                 :         20 :     return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , g_entries );
     101                 :            : }
     102                 :            : 
     103                 :            : }
     104                 :            : 
     105                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10