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

Generated by: LCOV version 1.10