LCOV - code coverage report
Current view: top level - libreoffice/autodoc/source/ary/idl - i_structelem.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_structelem.hxx>
      22             : #include <ary/idl/ik_structelem.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        1483 : StructElement::StructElement( const String &      i_sName,
      37             :                               Ce_id               i_nOwner,
      38             :                               Ce_id               i_nNameRoom,
      39             :                               Type_id             i_nType )
      40             :     :   sName(i_sName),
      41             :         nOwner(i_nOwner),
      42             :         nNameRoom(i_nNameRoom),
      43        1483 :         nType(i_nType)
      44             : {
      45        1483 : }
      46             : 
      47        2966 : StructElement::~StructElement()
      48             : {
      49        2966 : }
      50             : 
      51             : void
      52        1483 : StructElement::do_Accept( csv::ProcessorIfc & io_processor ) const
      53             : {
      54        1483 :     csv::CheckedCall(io_processor, *this);
      55        1483 : }
      56             : 
      57             : ClassId
      58        7874 : StructElement::get_AryClass() const
      59             : {
      60        7874 :     return class_id;
      61             : }
      62             : 
      63             : const String &
      64       85771 : StructElement::inq_LocalName() const
      65             : {
      66       85771 :     return sName;
      67             : }
      68             : 
      69             : Ce_id
      70         604 : StructElement::inq_NameRoom() const
      71             : {
      72         604 :     return nNameRoom;
      73             : }
      74             : 
      75             : Ce_id
      76        6185 : StructElement::inq_Owner() const
      77             : {
      78        6185 :     return nOwner;
      79             : }
      80             : 
      81             : E_SightLevel
      82        4688 : StructElement::inq_SightLevel() const
      83             : {
      84        4688 :     return sl_Member;
      85             : }
      86             : 
      87             : 
      88             : namespace ifc_structelement
      89             : {
      90             : 
      91             : inline const StructElement &
      92        1483 : selem_cast( const CodeEntity &  i_ce )
      93             : {
      94             :     csv_assert( i_ce.AryClass() == StructElement::class_id );
      95        1483 :     return static_cast< const StructElement& >(i_ce);
      96             : }
      97             : 
      98             : Type_id
      99        1483 : attr::Type( const CodeEntity & i_ce )
     100             : {
     101        1483 :     return selem_cast(i_ce).nType;
     102             : }
     103             : 
     104             : } // namespace ifc_structelement
     105             : 
     106             : 
     107             : 
     108             : }   //  namespace   idl
     109           3 : }   //  namespace   ary
     110             : 
     111             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10