LCOV - code coverage report
Current view: top level - libreoffice/autodoc/source/ary/idl - i_constgroup.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 24 24 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_constgroup.hxx>
      22             : #include <ary/idl/ik_constgroup.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             : 
      36         347 : ConstantsGroup::ConstantsGroup( const String &      i_sName,
      37             :                                 Ce_id               i_nModule )
      38             :     :   sName(i_sName),
      39             :         nModule(i_nModule),
      40         347 :         aConstants()
      41             : {
      42         347 : }
      43             : 
      44         694 : ConstantsGroup::~ConstantsGroup()
      45             : {
      46         694 : }
      47             : 
      48             : void
      49         694 : ConstantsGroup::do_Accept( csv::ProcessorIfc & io_processor ) const
      50             : {
      51         694 :     csv::CheckedCall(io_processor, *this);
      52         694 : }
      53             : 
      54             : ClassId
      55        2954 : ConstantsGroup::get_AryClass() const
      56             : {
      57        2954 :     return class_id;
      58             : }
      59             : 
      60             : const String &
      61       26281 : ConstantsGroup::inq_LocalName() const
      62             : {
      63       26281 :     return sName;
      64             : }
      65             : 
      66             : Ce_id
      67       10701 : ConstantsGroup::inq_NameRoom() const
      68             : {
      69       10701 :     return nModule;
      70             : }
      71             : 
      72             : Ce_id
      73        3914 : ConstantsGroup::inq_Owner() const
      74             : {
      75        3914 :     return nModule;
      76             : }
      77             : 
      78             : E_SightLevel
      79        4825 : ConstantsGroup::inq_SightLevel() const
      80             : {
      81        4825 :     return sl_File;
      82             : }
      83             : 
      84             : 
      85             : namespace ifc_constgroup
      86             : {
      87             : 
      88             : inline const ConstantsGroup &
      89         347 : constgroup_cast( const CodeEntity & i_ce )
      90             : {
      91             :     csv_assert( i_ce.AryClass() == ConstantsGroup::class_id );
      92         347 :     return static_cast< const ConstantsGroup& >(i_ce);
      93             : }
      94             : 
      95             : void
      96         347 : attr::Get_Constants( Dyn_CeIterator &    o_result,
      97             :                      const CodeEntity &  i_ce )
      98             : {
      99         347 :     o_result = new SCI_Vector<Ce_id>(constgroup_cast(i_ce).aConstants);
     100         347 : }
     101             : 
     102             : } // namespace ifc_constgroup
     103             : 
     104             : 
     105             : }   //  namespace   idl
     106           3 : }   //  namespace   ary
     107             : 
     108             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10