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

Generated by: LCOV version 1.10