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_PE_TYPE2_HXX
25 #define ADC_PE_TYPE2_HXX
26 
27 
28 
29 // USED SERVICES
30 	// BASE CLASSES
31 #include<s2_luidl/parsenv2.hxx>
32 #include<s2_luidl/pestate.hxx>
33 	// COMPONENTS
34 #include<ary/qualiname.hxx>
35 	// PARAMETERS
36 
37 
38 namespace csi
39 {
40 namespace uidl
41 {
42 
43 
44 class PE_Type : public UnoIDL_PE,
45                 public ParseEnvState
46 {
47   public:
48 						 PE_Type(
49 							ary::idl::Type_id &	o_rResult );
50 	virtual             ~PE_Type();
51 
52 	virtual void	  	ProcessToken(
53 							const Token &		i_rToken );
54 
55 	virtual void		Process_Identifier(
56 							const TokIdentifier &
57 												i_rToken );
58 	virtual void		Process_NameSeparator();
59 	virtual void		Process_Punctuation(
60 							const TokPunctuation &
61 												i_rToken );
62 	virtual void		Process_BuiltInType(
63 							const TokBuiltInType &
64 												i_rToken );
65 	virtual void		Process_TypeModifier(
66 							const TokTypeModifier &
67 												i_rToken );
68 	virtual void		Process_Default();
69 
70   private:
71 	enum E_State
72 	{
73 		e_none = 0,
74 		expect_type,
75 		expect_quname_part,
76 		expect_quname_separator,
77 		in_template_type
78 	};
79 
80 	void				Finish();
81 	PE_Type &           MyTemplateType();
82 
83 	virtual void		InitData();
84 	virtual void		TransferData();
85 	virtual UnoIDL_PE &	MyPE();
86 
87 	// DATA
88 	ary::idl::Type_id * pResult;
89 
90 	uintt				nIsSequenceCounter;
91 	uintt				nSequenceDownCounter;
92 	bool				bIsUnsigned;
93 	ary::QualifiedName	sFullType;
94 
95 	E_State				eState;
96 	String				sLastPart;
97 
98 	Dyn<PE_Type>        pPE_TemplateType;   /// @attention Recursion, only initiate, if needed!
99 	ary::idl::Type_id   nTemplateType;
100 	std::vector<ary::idl::Type_id>
101 	                    aTemplateParameters;
102 };
103 
104 
105 
106 // IMPLEMENTATION
107 
108 
109 }   // namespace uidl
110 }   // namespace csi
111 
112 #endif
113