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_CX_C_STD_HXX 25 #define ADC_CPP_CX_C_STD_HXX 26 27 // USED SERVICES 28 // BASE CLASSES 29 #include <tokens/tkpcontx.hxx> 30 #include "cx_base.hxx" 31 // COMPONENTS 32 #include <tokens/tkpstama.hxx> 33 // PARAMETERS 34 35 36 37 namespace cpp { 38 39 class Context_Comment; 40 41 /** 42 */ 43 class Context_CppStd : public Cx_Base, 44 private StateMachineContext 45 { 46 public: 47 // LIFECYCLE 48 Context_CppStd( 49 DYN autodoc::TkpDocuContext & 50 let_drContext_Docu ); 51 ~Context_CppStd(); 52 // OPERATIONS 53 virtual void ReadCharChain( 54 CharacterSource & io_rText ); 55 virtual void AssignDealer( 56 Distributor & o_rDealer ); 57 private: 58 // SERVICE FUNCTIONS 59 void PerformStatusFunction( 60 uintt i_nStatusSignal, 61 StmArrayStatus::F_CRTOK 62 i_fTokenCreateFunction, 63 CharacterSource & io_rText ); 64 void SetupStateMachine(); 65 66 // DATA 67 StateMachine aStateMachine; 68 69 // Contexts 70 Dyn<autodoc::TkpDocuContext> 71 pDocuContext; 72 73 Dyn<Context_Comment> 74 pContext_Comment; 75 Dyn<Cx_Base> pContext_Preprocessor; 76 Dyn<Cx_Base> pContext_ConstString; 77 Dyn<Cx_Base> pContext_ConstChar; 78 Dyn<Cx_Base> pContext_ConstNumeric; 79 Dyn<Cx_Base> pContext_UnblockMacro; 80 }; 81 82 83 84 } // namespace cpp 85 86 87 #endif 88 89