LCOV - code coverage report
Current view: top level - libreoffice/autodoc/source/ary/idl - i_siservice.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 26 26 100.0 %
Date: 2012-12-27 Functions: 14 14 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 <precomp.h>
      21             : #include <ary/idl/i_siservice.hxx>
      22             : #include <ary/idl/ik_siservice.hxx>
      23             : 
      24             : 
      25             : // NOT FULLY DECLARED SERVICES
      26             : #include <cosv/tpl/processor.hxx>
      27             : #include <sci_impl.hxx>
      28             : 
      29             : 
      30             : namespace ary
      31             : {
      32             : namespace idl
      33             : {
      34             : 
      35         221 : SglIfcService::SglIfcService( const String &      i_sName,
      36             :                               Ce_id               i_nOwner,
      37             :                               Type_id             i_nBaseInterface )
      38             :     :   sName(i_sName),
      39             :         nOwner(i_nOwner),
      40             :         nBaseInterface(i_nBaseInterface),
      41         221 :         aConstructors()
      42             : {
      43         221 : }
      44             : 
      45         442 : SglIfcService::~SglIfcService()
      46             : {
      47         442 : }
      48             : 
      49             : void
      50         442 : SglIfcService::do_Accept( csv::ProcessorIfc & io_processor ) const
      51             : {
      52         442 :     csv::CheckedCall(io_processor, *this);
      53         442 : }
      54             : 
      55             : ClassId
      56        2285 : SglIfcService::get_AryClass() const
      57             : {
      58        2285 :     return class_id;
      59             : }
      60             : 
      61             : const String &
      62       21803 : SglIfcService::inq_LocalName() const
      63             : {
      64       21803 :     return sName;
      65             : }
      66             : 
      67             : Ce_id
      68        1825 : SglIfcService::inq_NameRoom() const
      69             : {
      70        1825 :     return nOwner;
      71             : }
      72             : 
      73             : Ce_id
      74         535 : SglIfcService::inq_Owner() const
      75             : {
      76         535 :     return nOwner;
      77             : }
      78             : 
      79             : E_SightLevel
      80        1859 : SglIfcService::inq_SightLevel() const
      81             : {
      82        1859 :     return sl_File;
      83             : }
      84             : 
      85             : 
      86             : namespace ifc_sglifcservice
      87             : {
      88             : 
      89             : inline const SglIfcService &
      90         442 : sglifcservice_cast( const CodeEntity &  i_ce )
      91             : {
      92             :     csv_assert( i_ce.AryClass() == SglIfcService::class_id );
      93         442 :     return static_cast< const SglIfcService& >(i_ce);
      94             : }
      95             : 
      96             : Type_id
      97         221 : attr::BaseInterface( const CodeEntity & i_ce )
      98             : {
      99         221 :     return sglifcservice_cast(i_ce).nBaseInterface;
     100             : }
     101             : 
     102             : void
     103         221 : attr::Get_Constructors( Dyn_CeIterator &    o_result,
     104             :                         const CodeEntity &  i_ce )
     105             : {
     106         221 :     o_result = new SCI_Vector<Ce_id>( sglifcservice_cast(i_ce).aConstructors );
     107         221 : }
     108             : 
     109             : } // namespace ifc_sglifcservice
     110             : 
     111             : 
     112             : }   //  namespace   idl
     113           3 : }   //  namespace   ary
     114             : 
     115             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10