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_TKP_UIDL_HXX 25 #define ADC_TKP_UIDL_HXX 26 27 // USED SERVICES 28 // BASE CLASSES 29 #include <tokens/tkp2.hxx> 30 // COMPONENTS 31 // PARAMETRS 32 33 class TkpDocuContext; 34 35 36 namespace csi 37 { 38 namespace uidl 39 { 40 41 42 43 class Token_Receiver; 44 class Context_UidlCode; 45 46 47 /** This is a TokenParser which is able to parse tokens from 48 C++ source code. 49 */ 50 class TokenParser_Uidl : public TokenParse2 51 { 52 public: 53 // LIFECYCLE 54 TokenParser_Uidl( 55 Token_Receiver & o_rUidlReceiver, 56 DYN TkpDocuContext & 57 let_drDocuContext ); 58 virtual ~TokenParser_Uidl(); 59 60 // OPERATIONS 61 private: 62 virtual ::TkpContext & 63 CurrentContext(); 64 65 virtual void SetStartContext(); 66 virtual void SetCurrentContext( 67 TkpContext & io_rContext ); 68 // DATA 69 Dyn<Context_UidlCode> 70 pBaseContext; 71 ::TkpContext * pCurContext; 72 }; 73 74 75 } // namespace uidl 76 } // namespace csi 77 78 #endif 79 80 81