xref: /trunk/main/autodoc/source/parser_i/inc/s2_luidl/cx_idlco.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
1*1c78a5d6SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*1c78a5d6SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*1c78a5d6SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*1c78a5d6SAndrew Rist  * distributed with this work for additional information
6*1c78a5d6SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*1c78a5d6SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*1c78a5d6SAndrew Rist  * "License"); you may not use this file except in compliance
9*1c78a5d6SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*1c78a5d6SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*1c78a5d6SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*1c78a5d6SAndrew Rist  * software distributed under the License is distributed on an
15*1c78a5d6SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*1c78a5d6SAndrew Rist  * KIND, either express or implied.  See the License for the
17*1c78a5d6SAndrew Rist  * specific language governing permissions and limitations
18*1c78a5d6SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*1c78a5d6SAndrew Rist  *************************************************************/
21*1c78a5d6SAndrew Rist 
22*1c78a5d6SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef LUIDL_CX_IDLCO_HXX
25cdf0e10cSrcweir #define LUIDL_CX_IDLCO_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir // USED SERVICES
28cdf0e10cSrcweir     // BASE CLASSES
29cdf0e10cSrcweir #include <tokens/tkpcont2.hxx>
30cdf0e10cSrcweir     // COMPONENTS
31cdf0e10cSrcweir #include <tokens/tkpstam2.hxx>
32cdf0e10cSrcweir     // PARAMETERS
33cdf0e10cSrcweir 
34cdf0e10cSrcweir 
35cdf0e10cSrcweir namespace csi
36cdf0e10cSrcweir {
37cdf0e10cSrcweir namespace uidl
38cdf0e10cSrcweir {
39cdf0e10cSrcweir 
40cdf0e10cSrcweir class Token_Receiver;
41cdf0e10cSrcweir class Token;
42cdf0e10cSrcweir 
43cdf0e10cSrcweir /**
44cdf0e10cSrcweir */
45cdf0e10cSrcweir class Context_UidlCode : public TkpContext,
46cdf0e10cSrcweir                          private StateMachineContext
47cdf0e10cSrcweir {
48cdf0e10cSrcweir   public:
49cdf0e10cSrcweir     //  LIFECYCLE
50cdf0e10cSrcweir                         Context_UidlCode(
51cdf0e10cSrcweir                             Token_Receiver &    o_rReceiver,
52cdf0e10cSrcweir                             DYN TkpDocuContext &
53cdf0e10cSrcweir                                                 let_drContext_Docu  );
54cdf0e10cSrcweir                         ~Context_UidlCode();
55cdf0e10cSrcweir     //  OPERATORS
56cdf0e10cSrcweir 
57cdf0e10cSrcweir     //  OPERATIONS
58cdf0e10cSrcweir     virtual void        ReadCharChain(
59cdf0e10cSrcweir                             CharacterSource &   io_rText );
60cdf0e10cSrcweir     virtual bool        PassNewToken();
61cdf0e10cSrcweir 
62cdf0e10cSrcweir     //  INQUIRY
63cdf0e10cSrcweir     virtual TkpContext &
64cdf0e10cSrcweir                         FollowUpContext();
65cdf0e10cSrcweir   private:
66cdf0e10cSrcweir     //  SERVICE FUNCTIONS
67cdf0e10cSrcweir     void                PerformStatusFunction(
68cdf0e10cSrcweir                             uintt               i_nStatusSignal,
69cdf0e10cSrcweir                             UINT16              i_nTokenId,
70cdf0e10cSrcweir                             CharacterSource &   io_rText );
71cdf0e10cSrcweir     void                SetupStateMachine();
72cdf0e10cSrcweir 
73cdf0e10cSrcweir     //  DATA
74cdf0e10cSrcweir     StateMachin2        aStateMachine;
75cdf0e10cSrcweir     Token_Receiver *    pReceiver;
76cdf0e10cSrcweir 
77cdf0e10cSrcweir         // Contexts
78cdf0e10cSrcweir     Dyn<TkpDocuContext> pDocuContext;
79cdf0e10cSrcweir 
80cdf0e10cSrcweir     Dyn<TkpContext>    dpContext_MLComment;
81cdf0e10cSrcweir     Dyn<TkpContext>    dpContext_SLComment;
82cdf0e10cSrcweir     Dyn<TkpContext>    dpContext_Preprocessor;
83cdf0e10cSrcweir     Dyn<TkpContext>    dpContext_Assignment;
84cdf0e10cSrcweir 
85cdf0e10cSrcweir         // Temporary data, used during ReadCharChain()
86cdf0e10cSrcweir     Dyn<Token>          pNewToken;
87cdf0e10cSrcweir     ::TkpContext *      pFollowUpContext;
88cdf0e10cSrcweir };
89cdf0e10cSrcweir 
90cdf0e10cSrcweir 
91cdf0e10cSrcweir }   // namespace uidl
92cdf0e10cSrcweir }   // namespace csi
93cdf0e10cSrcweir 
94cdf0e10cSrcweir #endif
95