LCOV - code coverage report
Current view: top level - io/source - services.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 2 2 100.0 %
Date: 2014-11-03 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          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             : #include <osl/diagnose.h>
      21             : #include <cppuhelper/factory.hxx>
      22             : #include <cppuhelper/implementationentry.hxx>
      23             : 
      24             : #include <com/sun/star/registry/XRegistryKey.hpp>
      25             : 
      26             : #include "services.hxx"
      27             : 
      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             : static const struct ImplementationEntry g_entries[] =
      34             : {
      35             :     {
      36             :         io_acceptor::acceptor_CreateInstance, io_acceptor::acceptor_getImplementationName ,
      37             :         io_acceptor::acceptor_getSupportedServiceNames, createSingleComponentFactory ,
      38             :         0, 0
      39             :     },
      40             :     {
      41             :         stoc_connector::connector_CreateInstance, stoc_connector::connector_getImplementationName ,
      42             :         stoc_connector::connector_getSupportedServiceNames, createSingleComponentFactory ,
      43             :         0, 0
      44             :     },
      45             :     {
      46             :         io_stm::OPipeImpl_CreateInstance, io_stm::OPipeImpl_getImplementationName ,
      47             :         io_stm::OPipeImpl_getSupportedServiceNames, createSingleComponentFactory ,
      48             :         0, 0
      49             :     },
      50             :     {
      51             :         io_stm::OPumpImpl_CreateInstance, io_stm::OPumpImpl_getImplementationName ,
      52             :         io_stm::OPumpImpl_getSupportedServiceNames, createSingleComponentFactory ,
      53             :         0, 0
      54             :     },
      55             :     {
      56             :         io_stm::ODataInputStream_CreateInstance, io_stm::ODataInputStream_getImplementationName,
      57             :         io_stm::ODataInputStream_getSupportedServiceNames, createSingleComponentFactory,
      58             :         0, 0
      59             :     },
      60             :     {
      61             :         io_stm::ODataOutputStream_CreateInstance, io_stm::ODataOutputStream_getImplementationName,
      62             :         io_stm::ODataOutputStream_getSupportedServiceNames, createSingleComponentFactory,
      63             :         0, 0
      64             :     },
      65             :     {
      66             :         io_stm::OObjectInputStream_CreateInstance, io_stm::OObjectInputStream_getImplementationName,
      67             :         io_stm::OObjectInputStream_getSupportedServiceNames, createSingleComponentFactory,
      68             :         0, 0
      69             :     },
      70             :     {
      71             :         io_stm::OObjectOutputStream_CreateInstance, io_stm::OObjectOutputStream_getImplementationName,
      72             :         io_stm::OObjectOutputStream_getSupportedServiceNames, createSingleComponentFactory,
      73             :         0, 0
      74             :     },
      75             :     {
      76             :         io_stm::OMarkableInputStream_CreateInstance, io_stm::OMarkableInputStream_getImplementationName,
      77             :         io_stm::OMarkableInputStream_getSupportedServiceNames, createSingleComponentFactory,
      78             :         0, 0
      79             :     },
      80             :     {
      81             :         io_stm::OMarkableOutputStream_CreateInstance, io_stm::OMarkableOutputStream_getImplementationName,
      82             :         io_stm::OMarkableOutputStream_getSupportedServiceNames, createSingleComponentFactory,
      83             :         0, 0
      84             :     },
      85             :     {
      86             :         io_TextInputStream::TextInputStream_CreateInstance, io_TextInputStream::TextInputStream_getImplementationName ,
      87             :         io_TextInputStream::TextInputStream_getSupportedServiceNames, createSingleComponentFactory ,
      88             :         0, 0
      89             :     },
      90             :     {
      91             :         io_TextOutputStream::TextOutputStream_CreateInstance, io_TextOutputStream::TextOutputStream_getImplementationName ,
      92             :         io_TextOutputStream::TextOutputStream_getSupportedServiceNames, createSingleComponentFactory ,
      93             :         0, 0
      94             :     },
      95             :     {0, 0, 0, 0, 0, 0}
      96             : };
      97             : 
      98         208 : extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL io_component_getFactory(
      99             :         const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey )
     100             : {
     101         208 :     return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , g_entries );
     102             : }
     103             : 
     104             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10