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_SUB_HXX
25 #define ADC_CPP_CX_C_SUB_HXX
26 
27 // USED SERVICES
28 	// BASE CLASSES
29 #include <tokens/tkpcontx.hxx>
30 #include "cx_base.hxx"
31 	// COMPONENTS
32 	// PARAMETERS
33 
34 
35 namespace cpp {
36 
37 
38 class Context_Comment : public Cx_Base
39 {
40   public:
Context_Comment(TkpContext & i_rFollowUpContext)41 						Context_Comment(
42 							TkpContext &		i_rFollowUpContext )
43 												: 	Cx_Base(&i_rFollowUpContext) {}
44 	virtual void		ReadCharChain(
45 							CharacterSource &	io_rText );
SetMode_IsMultiLine(bool i_bTrue)46 	void	   			SetMode_IsMultiLine(
47 							bool				i_bTrue )
48 												{ bCurrentModeIsMultiline = i_bTrue; }
49   private:
50 	bool				bCurrentModeIsMultiline;
51 };
52 
53 class Context_ConstString : public Cx_Base
54 {
55   public:
Context_ConstString(TkpContext & i_rFollowUpContext)56 						Context_ConstString(
57 							TkpContext &		i_rFollowUpContext )
58 												: 	Cx_Base(&i_rFollowUpContext) {}
59 	virtual void		ReadCharChain(
60 							CharacterSource &	io_rText );
61 };
62 
63 class Context_ConstChar : public Cx_Base
64 {
65   public:
Context_ConstChar(TkpContext & i_rFollowUpContext)66 						Context_ConstChar(
67 							TkpContext &		i_rFollowUpContext )
68 												: 	Cx_Base(&i_rFollowUpContext) {}
69 	virtual void		ReadCharChain(
70 							CharacterSource &	io_rText );
71 };
72 
73 class Context_ConstNumeric : public Cx_Base
74 {
75   public:
Context_ConstNumeric(TkpContext & i_rFollowUpContext)76 						Context_ConstNumeric(
77 							TkpContext &		i_rFollowUpContext )
78 												: 	Cx_Base(&i_rFollowUpContext) {}
79 	virtual void		ReadCharChain(
80 							CharacterSource &	io_rText );
81 };
82 
83 class Context_UnblockMacro : public Cx_Base
84 {
85   public:
Context_UnblockMacro(TkpContext & i_rFollowUpContext)86 						Context_UnblockMacro(
87 							TkpContext &		i_rFollowUpContext )
88 												: 	Cx_Base(&i_rFollowUpContext) {}
89 	virtual void		ReadCharChain(
90 							CharacterSource &	io_rText );
91 };
92 
93 
94 
95 }   // namespace cpp
96 
97 
98 #endif
99 
100