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

Generated by: LCOV version 1.10