LCOV - code coverage report
Current view: top level - libreoffice/autodoc/source/ary/idl - it_explicit.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 17 20 85.0 %
Date: 2012-12-27 Functions: 8 9 88.9 %
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 "it_explicit.hxx"
      22             : 
      23             : 
      24             : // NOT FULLY DEFINED SERVICES
      25             : #include <cosv/tpl/processor.hxx>
      26             : #include <ary/idl/i_module.hxx>
      27             : #include <ary/idl/i_gate.hxx>
      28             : #include <ary/idl/ip_ce.hxx>
      29             : #include <ary/idl/ip_type.hxx>
      30             : #include "it_xnameroom.hxx"
      31             : 
      32             : 
      33             : 
      34             : namespace ary
      35             : {
      36             : namespace idl
      37             : {
      38             : 
      39             : 
      40        3699 : ExplicitType::ExplicitType( const String &      i_sName,
      41             :                             Type_id             i_nXNameRoom,
      42             :                             Ce_id               i_nModuleOfOccurrence,
      43             :                             const std::vector<Type_id> *
      44             :                                                 i_templateParameters )
      45             :     :   Named_Type(i_sName),
      46             :         nXNameRoom(i_nXNameRoom),
      47             :         nModuleOfOccurrence(i_nModuleOfOccurrence),
      48        3699 :         pTemplateParameters(0)
      49             : {
      50        3699 :     if (i_templateParameters != 0)
      51        3699 :         pTemplateParameters = new std::vector<Type_id>(*i_templateParameters);
      52        3699 : }
      53             : 
      54        7392 : ExplicitType::~ExplicitType()
      55             : {
      56        7392 : }
      57             : 
      58             : ClassId
      59        3721 : ExplicitType::get_AryClass() const
      60             : {
      61        3721 :     return class_id;
      62             : }
      63             : 
      64             : void
      65           0 : ExplicitType::do_Accept( csv::ProcessorIfc & io_processor ) const
      66             : {
      67           0 :     csv::CheckedCall(io_processor, *this);
      68           0 : }
      69             : 
      70             : void
      71           7 : ExplicitType::inq_Get_Text( StringVector &      o_module,
      72             :                             String &            o_name,
      73             :                             Ce_id &             o_nRelatedCe,
      74             :                             int &               o_nSequenceCount,
      75             :                             const Gate &        i_rGate ) const
      76             : {
      77             :     const ExplicitNameRoom &
      78           7 :         rNameRoom = i_rGate.Types().Find_XNameRoom(nXNameRoom);
      79           7 :     rNameRoom.Get_Text(o_module,o_name,o_nRelatedCe,o_nSequenceCount,i_rGate);
      80             : 
      81           7 :     o_name = Name();
      82           7 : }
      83             : 
      84             : const std::vector<Type_id> *
      85        3703 : ExplicitType::inq_TemplateParameters() const
      86             : {
      87        3703 :     return pTemplateParameters.Ptr();
      88             : }
      89             : 
      90             : 
      91             : }   // namespace idl
      92           3 : }   // namespace ary
      93             : 
      94             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10