LCOV - code coverage report
Current view: top level - libreoffice/autodoc/source/parser_i/inc/s2_luidl - cx_sub.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 19 19 100.0 %
Date: 2012-12-27 Functions: 16 17 94.1 %
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 ADC_LUIDL_CX_SUB_HXX
      21             : #define ADC_LUIDL_CX_SUB_HXX
      22             : 
      23             : // USED SERVICES
      24             :     // BASE CLASSES
      25             : #include <tokens/tkpcont2.hxx>
      26             :     // COMPONENTS
      27             :     // PARAMETERS
      28             : 
      29             : #include "uidl_tok.hxx"
      30             : 
      31             : namespace csi
      32             : {
      33             : namespace uidl
      34             : {
      35             : 
      36             : class Token_Receiver;
      37             : class Token;
      38             : 
      39             : 
      40          12 : class Cx_Base : public ::TkpContext
      41             : {
      42             :   public:
      43             :     virtual bool        PassNewToken();
      44             :     virtual TkpContext &
      45             :                         FollowUpContext();
      46             :   protected:
      47             :     // LIFECYCLE
      48          12 :                         Cx_Base(
      49             :                             Token_Receiver &    o_rReceiver,
      50             :                             TkpContext &        i_rFollowUpContext )
      51             :                                                 :   rReceiver(o_rReceiver),
      52             :                                                     pFollowUpContext(&i_rFollowUpContext),
      53          12 :                                                     pNewToken()
      54          12 :                                                     {}
      55             :   protected:
      56       39501 :     void                SetToken(
      57             :                             DYN Token *         let_dpToken )
      58       39501 :                                                 { pNewToken = let_dpToken; }
      59       90436 :     Token_Receiver &    Receiver()              { return rReceiver; }
      60             : 
      61             :   private:
      62             :     // DATA
      63             :     Token_Receiver &    rReceiver;
      64             :     TkpContext *        pFollowUpContext;
      65             :     Dyn<Token>          pNewToken;
      66             : };
      67             : 
      68             : 
      69             : 
      70             : /**
      71             : @descr
      72             : */
      73             : 
      74           6 : class Context_MLComment : public Cx_Base
      75             : {
      76             :   public:
      77           3 :                         Context_MLComment(
      78             :                             Token_Receiver &    o_rReceiver,
      79             :                             TkpContext &        i_rFollowUpContext )
      80           3 :                                                 :   Cx_Base(o_rReceiver, i_rFollowUpContext) {}
      81             :     virtual void        ReadCharChain(
      82             :                             CharacterSource &   io_rText );
      83             : };
      84             : 
      85           6 : class Context_SLComment : public Cx_Base
      86             : {
      87             :   public:
      88           3 :                         Context_SLComment(
      89             :                             Token_Receiver &    o_rReceiver,
      90             :                             TkpContext &        i_rFollowUpContext )
      91           3 :                                                 :   Cx_Base(o_rReceiver, i_rFollowUpContext) {}
      92             :     virtual void        ReadCharChain(
      93             :                             CharacterSource &   io_rText );
      94             : };
      95             : 
      96           6 : class Context_Praeprocessor : public Cx_Base
      97             : {
      98             :   public:
      99           3 :                         Context_Praeprocessor(
     100             :                             Token_Receiver &    o_rReceiver,
     101             :                             TkpContext &        i_rFollowUpContext )
     102           3 :                                                 :   Cx_Base(o_rReceiver, i_rFollowUpContext) {}
     103             :     virtual void        ReadCharChain(
     104             :                             CharacterSource &   io_rText );
     105             : };
     106             : 
     107           6 : class Context_Assignment : public Cx_Base
     108             : {
     109             :   public:
     110           3 :                         Context_Assignment(
     111             :                             Token_Receiver &    o_rReceiver,
     112             :                             TkpContext &        i_rFollowUpContext )
     113           3 :                                                 :   Cx_Base(o_rReceiver, i_rFollowUpContext) {}
     114             :     virtual void        ReadCharChain(
     115             :                             CharacterSource &   io_rText );
     116             : };
     117             : 
     118             : 
     119             : }   // namespace uidl
     120             : }   // namespace csi
     121             : 
     122             : #endif
     123             : 
     124             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10