LCOV - code coverage report
Current view: top level - libreoffice/autodoc/source/parser_i/idl - tk_keyw.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 84 98 85.7 %
Date: 2012-12-27 Functions: 17 23 73.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 <s2_luidl/tk_keyw.hxx>
      22             : 
      23             : 
      24             : // NOT FULLY DECLARED SERVICES
      25             : #include <s2_luidl/tokintpr.hxx>
      26             : 
      27             : 
      28             : using csi::uidl::TokBuiltInType;
      29             : using csi::uidl::TokTypeModifier;
      30             : using csi::uidl::TokMetaType;
      31             : using csi::uidl::TokStereotype;
      32             : using csi::uidl::TokParameterHandling;
      33             : 
      34             : 
      35           1 : lux::EnumValueMap           G_aTokBuiltInType_EV_TokenId_Values;
      36           1 : TokBuiltInType::EV_TokenId  ev_bty_none(TokBuiltInType::e_none,"");
      37           1 : TokBuiltInType::EV_TokenId  ev_bty_any(TokBuiltInType::bty_any,"any");
      38           1 : TokBuiltInType::EV_TokenId  ev_bty_boolean(TokBuiltInType::bty_boolean,"boolean");
      39           1 : TokBuiltInType::EV_TokenId  ev_bty_byte(TokBuiltInType::bty_byte,"byte");
      40           1 : TokBuiltInType::EV_TokenId  ev_bty_char(TokBuiltInType::bty_char,"char");
      41           1 : TokBuiltInType::EV_TokenId  ev_bty_double(TokBuiltInType::bty_double,"double");
      42           1 : TokBuiltInType::EV_TokenId  ev_bty_hyper(TokBuiltInType::bty_hyper,"hyper");
      43           1 : TokBuiltInType::EV_TokenId  ev_bty_long(TokBuiltInType::bty_long,"long");
      44           1 : TokBuiltInType::EV_TokenId  ev_bty_short(TokBuiltInType::bty_short,"short");
      45           1 : TokBuiltInType::EV_TokenId  ev_bty_string(TokBuiltInType::bty_string,"string");
      46           1 : TokBuiltInType::EV_TokenId  ev_bty_void(TokBuiltInType::bty_void,"void");
      47           1 : TokBuiltInType::EV_TokenId  ev_bty_ellipse(TokBuiltInType::bty_ellipse,"...");
      48             : 
      49             : 
      50           1 : lux::EnumValueMap           G_aTokTypeModifier_EV_TokenId_Values;
      51           1 : TokTypeModifier::EV_TokenId ev_tmod_none(TokTypeModifier::e_none,"");
      52           1 : TokTypeModifier::EV_TokenId ev_tmod_unsigned(TokTypeModifier::tmod_unsigned,"unsigned");
      53           1 : TokTypeModifier::EV_TokenId ev_tmod_sequence(TokTypeModifier::tmod_sequence,"sequence");
      54             : 
      55             : 
      56           1 : lux::EnumValueMap           G_aTokMetaType_EV_TokenId_Values;
      57           1 : TokMetaType::EV_TokenId     ev_mt_none(TokMetaType::e_none,"");
      58           1 : TokMetaType::EV_TokenId     ev_mt_attribute(TokMetaType::mt_attribute,"attribute");
      59           1 : TokMetaType::EV_TokenId     ev_mt_constants(TokMetaType::mt_constants,"constants");
      60           1 : TokMetaType::EV_TokenId     ev_mt_enum(TokMetaType::mt_enum,"enum");
      61           1 : TokMetaType::EV_TokenId     ev_mt_exception(TokMetaType::mt_exception,"exception");
      62           1 : TokMetaType::EV_TokenId     ev_mt_ident(TokMetaType::mt_ident,"ident");
      63           1 : TokMetaType::EV_TokenId     ev_mt_interface(TokMetaType::mt_interface,"interface");
      64           1 : TokMetaType::EV_TokenId     ev_mt_module(TokMetaType::mt_module,"module");
      65           1 : TokMetaType::EV_TokenId     ev_mt_property(TokMetaType::mt_property,"property");
      66           1 : TokMetaType::EV_TokenId     ev_mt_service(TokMetaType::mt_service,"service");
      67           1 : TokMetaType::EV_TokenId     ev_mt_singleton(TokMetaType::mt_singleton,"singleton");
      68           1 : TokMetaType::EV_TokenId     ev_mt_struct(TokMetaType::mt_struct,"struct");
      69           1 : TokMetaType::EV_TokenId     ev_mt_typedef(TokMetaType::mt_typedef,"typedef");
      70           1 : TokMetaType::EV_TokenId     ev_mt_uik(TokMetaType::mt_uik,"uik");
      71             : 
      72             : 
      73           1 : lux::EnumValueMap           G_aTokStereotype_EV_TokenId_Values;
      74           1 : TokStereotype::EV_TokenId   ev_ste_none(TokStereotype::e_none,"");
      75           1 : TokStereotype::EV_TokenId   ev_ste_bound(TokStereotype::ste_bound,"bound");
      76           1 : TokStereotype::EV_TokenId   ev_ste_const(TokStereotype::ste_const,"const");
      77           1 : TokStereotype::EV_TokenId   ev_ste_constrained(TokStereotype::ste_constrained,"constrained");
      78           1 : TokStereotype::EV_TokenId   ev_ste_maybeambiguous(TokStereotype::ste_maybeambiguous,"maybeambiguous");
      79           1 : TokStereotype::EV_TokenId   ev_ste_maybedefault(TokStereotype::ste_maybedefault,"maybedefault");
      80           1 : TokStereotype::EV_TokenId   ev_ste_maybevoid(TokStereotype::ste_maybevoid,"maybevoid");
      81           1 : TokStereotype::EV_TokenId   ev_ste_oneway(TokStereotype::ste_oneway,"oneway");
      82           1 : TokStereotype::EV_TokenId   ev_ste_optional(TokStereotype::ste_optional,"optional");
      83           1 : TokStereotype::EV_TokenId   ev_ste_readonly(TokStereotype::ste_readonly,"readonly");
      84           1 : TokStereotype::EV_TokenId   ev_ste_removable(TokStereotype::ste_removable,"removable");
      85           1 : TokStereotype::EV_TokenId   ev_ste_virtual(TokStereotype::ste_virtual,"virtual");
      86           1 : TokStereotype::EV_TokenId   ev_ste_transient(TokStereotype::ste_transient,"transient");
      87           1 : TokStereotype::EV_TokenId   ev_ste_published(TokStereotype::ste_published,"published");
      88             : 
      89             : 
      90           1 : lux::EnumValueMap                   G_aTokParameterHandling_EV_TokenId_Values;
      91           1 : TokParameterHandling::EV_TokenId    ev_ph_none(TokParameterHandling::e_none,"");
      92           1 : TokParameterHandling::EV_TokenId    ev_ph_in(TokParameterHandling::ph_in,"in");
      93           1 : TokParameterHandling::EV_TokenId    ev_ph_out(TokParameterHandling::ph_out,"out");
      94           1 : TokParameterHandling::EV_TokenId    ev_ph_inout(TokParameterHandling::ph_inout,"inout");
      95             : 
      96             : 
      97             : namespace lux
      98             : {
      99             : 
     100             : template<> EnumValueMap &
     101       47863 : Enum<TokBuiltInType::E_TokenId>::Values_()       { return G_aTokBuiltInType_EV_TokenId_Values; }
     102             : template<> EnumValueMap &
     103        2803 : Enum<TokTypeModifier::E_TokenId>::Values_()      { return G_aTokTypeModifier_EV_TokenId_Values; }
     104             : template<> EnumValueMap &
     105       61353 : Enum<TokMetaType::E_TokenId>::Values_()          { return G_aTokMetaType_EV_TokenId_Values; }
     106             : template<> EnumValueMap &
     107       19899 : Enum<TokStereotype::E_TokenId>::Values_()        { return G_aTokStereotype_EV_TokenId_Values; }
     108             : template<> EnumValueMap &
     109       11320 : Enum<TokParameterHandling::E_TokenId>::Values_() { return G_aTokParameterHandling_EV_TokenId_Values; }
     110             : 
     111             : }   // namespace lux
     112             : 
     113             : 
     114             : 
     115             : namespace csi
     116             : {
     117             : namespace uidl
     118             : {
     119             : 
     120             : void
     121       36438 : TokBuiltInType::Trigger( TokenInterpreter & io_rInterpreter ) const
     122             : {
     123       36438 :     io_rInterpreter.Process_BuiltInType(*this);
     124       36438 : }
     125             : 
     126             : const char *
     127       18545 : TokBuiltInType::Text() const
     128             : {
     129       18545 :     return eTag.Text();
     130             : }
     131             : 
     132             : void
     133        3422 : TokTypeModifier::Trigger( TokenInterpreter &    io_rInterpreter ) const
     134             : {
     135        3422 :     io_rInterpreter.Process_TypeModifier(*this);
     136        3422 : }
     137             : 
     138             : const char *
     139         438 : TokTypeModifier::Text() const
     140             : {
     141         438 :     return eTag.Text();
     142             : }
     143             : 
     144             : void
     145       36154 : TokMetaType::Trigger( TokenInterpreter &    io_rInterpreter ) const
     146             : {
     147       36154 :     io_rInterpreter.Process_MetaType(*this);
     148       36154 : }
     149             : 
     150             : const char *
     151        3005 : TokMetaType::Text() const
     152             : {
     153        3005 :     return eTag.Text();
     154             : }
     155             : 
     156             : void
     157        8554 : TokStereotype::Trigger( TokenInterpreter &  io_rInterpreter ) const
     158             : {
     159        8554 :     io_rInterpreter.Process_Stereotype(*this);
     160        8554 : }
     161             : 
     162             : const char *
     163        3247 : TokStereotype::Text() const
     164             : {
     165        3247 :     return eTag.Text();
     166             : }
     167             : 
     168             : void
     169        5658 : TokParameterHandling::Trigger( TokenInterpreter &   io_rInterpreter ) const
     170             : {
     171        5658 :     io_rInterpreter.Process_ParameterHandling(*this);
     172        5658 : }
     173             : 
     174             : const char *
     175           0 : TokParameterHandling::Text() const
     176             : {
     177           0 :     return eTag.Text();
     178             : }
     179             : 
     180             : void
     181        2038 : TokRaises::Trigger( TokenInterpreter &  io_rInterpreter ) const
     182             : {
     183        2038 :     io_rInterpreter.Process_Raises();
     184        2038 : }
     185             : 
     186             : const char *
     187           0 : TokRaises::Text() const
     188             : {
     189           0 :     return "raises";
     190             : }
     191             : 
     192             : void
     193           0 : TokNeeds::Trigger( TokenInterpreter &   io_rInterpreter ) const
     194             : {
     195           0 :     io_rInterpreter.Process_Needs();
     196           0 : }
     197             : 
     198             : const char *
     199           0 : TokNeeds::Text() const
     200             : {
     201           0 :     return "needs";
     202             : }
     203             : void
     204           0 : TokObserves::Trigger( TokenInterpreter &    io_rInterpreter ) const
     205             : {
     206           0 :     io_rInterpreter.Process_Observes();
     207           0 : }
     208             : 
     209             : const char *
     210           0 : TokObserves::Text() const
     211             : {
     212           0 :     return "observes";
     213             : }
     214             : 
     215             : }   // namespace uidl
     216           3 : }   // namespace csi
     217             : 
     218             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10