LCOV - code coverage report
Current view: top level - libreoffice/autodoc/source/parser_i/inc/s2_luidl - parsenv2.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 8 8 100.0 %
Date: 2012-12-27 Functions: 6 6 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             : #ifndef LUIDL_PARSENV2_HXX
      21             : #define LUIDL_PARSENV2_HXX
      22             : 
      23             : 
      24             : // USED SERVICES
      25             :     // BASE CLASSES
      26             : #include <s2_luidl/tokproct.hxx>
      27             :     // COMPONENTS
      28             : #include <s2_luidl/semnode.hxx>
      29             :     // PARAMETERS
      30             : #include <ary/idl/i_types4idl.hxx>
      31             : #include <ary/idl/i_module.hxx>
      32             : 
      33             : 
      34             : 
      35             : class ParserInfo;
      36             : 
      37             : namespace ary
      38             : {
      39             :     class Repository;
      40             : 
      41             : namespace doc
      42             : {
      43             :     class OldIdlDocu;
      44             : }
      45             : 
      46             : namespace idl
      47             : {
      48             :     class CodeEntity;
      49             : }
      50             : }
      51             : 
      52             : 
      53             : 
      54             : namespace csi
      55             : {
      56             : namespace uidl
      57             : {
      58             : 
      59             : 
      60             : class Token;
      61             : class SemanticNode;
      62             : 
      63             : 
      64             : class UnoIDL_PE : virtual protected TokenProcessing_Types
      65             : {
      66             :   public:
      67             :     virtual             ~UnoIDL_PE();
      68             : 
      69             :     virtual void        EstablishContacts(
      70             :                             UnoIDL_PE *         io_pParentPE,
      71             :                             ary::Repository &
      72             :                                                 io_rRepository,
      73             :                             TokenProcessing_Result &
      74             :                                                 o_rResult );
      75             : //  virtual void        EstablishContacts(
      76             : //                          UnoIDL_PE *         io_pParentPE,
      77             : //                          ary::idl::Gate &
      78             : //                                                io_rGate,
      79             : //                          TokenProcessing_Result &
      80             : //                                              o_rResult );
      81             :     virtual void        Enter(
      82             :                             E_EnvStackAction    i_eWayOfEntering );
      83             :     virtual void        Leave(
      84             :                             E_EnvStackAction    i_eWayOfLeaving );
      85             :     virtual void        ProcessToken(
      86             :                             const Token &       i_rToken ) = 0;
      87             : 
      88             :     void                SetDocu(
      89             :                             DYN ary::doc::OldIdlDocu *
      90             :                                                 let_dpDocu );
      91             :     void                SetPublished();
      92             :     void                SetOptional();
      93             :     void                PassDocuAt(
      94             :                             ary::idl::CodeEntity &
      95             :                                                 io_rCe );
      96             : 
      97      192376 :     UnoIDL_PE *         Parent() const          { return aMyNode.Parent(); }
      98             : 
      99      526996 :     void                SetResult(
     100             :                             E_TokenDone         i_eDone,
     101             :                             E_EnvStackAction    i_eWhat2DoWithEnvStack,
     102             :                             UnoIDL_PE *         i_pParseEnv2Push = 0 )
     103      526996 :                                                 { aMyNode.SetTokenResult( i_eDone, i_eWhat2DoWithEnvStack, i_pParseEnv2Push ); }
     104             :     virtual const ary::idl::Module &
     105             :                         CurNamespace() const;
     106             :     virtual const ParserInfo &
     107             :                         ParseInfo() const;
     108       82326 :     ary::idl::Gate &    Gate() const            { return aMyNode.AryGate(); }
     109             :     TokenProcessing_Result &
     110           9 :                         TokenResult() const     { return aMyNode.TokenResult(); }
     111             :     DYN ary::doc::OldIdlDocu *
     112        3044 :                         ReleaseDocu()           { return pDocu.Release(); }
     113             :   protected:
     114             :                         UnoIDL_PE();
     115           9 :     ary::Repository &   MyRepository()          { csv_assert(pRepository != 0);
     116           9 :                                                   return *pRepository;  }
     117             :   private:
     118             :     virtual void        InitData();
     119             :     virtual void        TransferData() = 0;
     120             :     virtual void        ReceiveData();
     121             : 
     122             :     SemanticNode        aMyNode;
     123             :     Dyn<ary::doc::OldIdlDocu>
     124             :                         pDocu;
     125             :     ary::Repository *   pRepository;
     126             : };
     127             : 
     128             : 
     129             : 
     130             : 
     131             : }   // namespace uidl
     132             : }   // namespace csi
     133             : #endif
     134             : 
     135             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10