1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef ADC_CPP_CTOKDEAL_HXX 25 #define ADC_CPP_CTOKDEAL_HXX 26 27 28 29 // USED SERVICES 30 // BASE CLASSES 31 #include <tokens/tokdeal.hxx> 32 // COMPONENTS 33 // PARAMETERS 34 35 36 namespace cpp 37 { 38 39 class Token; 40 class Tok_UnblockMacro; 41 42 43 class TokenDealer : virtual public ::TokenDealer 44 { 45 public: 46 47 virtual void Deal_CppCode( 48 cpp::Token & let_drToken ) = 0; 49 50 /** This is to be used only by the internal macro expander 51 ( ::cpp::PreProcessor ). 52 These tokens are inserted into the source text temporary to make clear, 53 where a specific macro replacement ends and therefore the macro's name 54 becomes valid again. 55 56 @see ::cpp::Tok_UnblockMacro 57 @see ::cpp::PreProcessor 58 */ 59 virtual void Deal_Cpp_UnblockMacro( 60 Tok_UnblockMacro & let_drToken ) = 0; 61 }; 62 63 64 65 } // namespace cpp 66 67 68 69 #endif 70 71