1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #include <precomp.h>
29*cdf0e10cSrcweir #include <s2_luidl/pe_func2.hxx>
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir 
32*cdf0e10cSrcweir // NOT FULLY DEFINED SERVICES
33*cdf0e10cSrcweir #include <ary/idl/i_function.hxx>
34*cdf0e10cSrcweir #include <ary/idl/i_type.hxx>
35*cdf0e10cSrcweir #include <ary/idl/i_gate.hxx>
36*cdf0e10cSrcweir #include <ary/idl/ip_ce.hxx>
37*cdf0e10cSrcweir #include <ary/idl/ip_type.hxx>
38*cdf0e10cSrcweir #include <ary/doc/d_oldidldocu.hxx>
39*cdf0e10cSrcweir #include <s2_luidl/pe_type2.hxx>
40*cdf0e10cSrcweir #include <s2_luidl/pe_vari2.hxx>
41*cdf0e10cSrcweir #include <s2_luidl/tk_keyw.hxx>
42*cdf0e10cSrcweir #include <s2_luidl/tk_ident.hxx>
43*cdf0e10cSrcweir #include <s2_luidl/tk_punct.hxx>
44*cdf0e10cSrcweir #include <x_parse2.hxx>
45*cdf0e10cSrcweir 
46*cdf0e10cSrcweir 
47*cdf0e10cSrcweir namespace csi
48*cdf0e10cSrcweir {
49*cdf0e10cSrcweir namespace uidl
50*cdf0e10cSrcweir {
51*cdf0e10cSrcweir 
52*cdf0e10cSrcweir 
53*cdf0e10cSrcweir PE_Function::PE_Function( const RParent &	    i_rCurInterface )
54*cdf0e10cSrcweir 	:	eState(e_none),
55*cdf0e10cSrcweir 		sData_Name(),
56*cdf0e10cSrcweir         nData_ReturnType(0),
57*cdf0e10cSrcweir         bData_Oneway(false),
58*cdf0e10cSrcweir         pCurFunction(0),
59*cdf0e10cSrcweir 		pCurParent(&i_rCurInterface),
60*cdf0e10cSrcweir 		pPE_Type(0),
61*cdf0e10cSrcweir 		nCurParsedType(0),
62*cdf0e10cSrcweir 		sName(),
63*cdf0e10cSrcweir 		pPE_Variable(0),
64*cdf0e10cSrcweir 		eCurParsedParam_Direction(ary::idl::param_in),
65*cdf0e10cSrcweir 		nCurParsedParam_Type(0),
66*cdf0e10cSrcweir 		sCurParsedParam_Name(),
67*cdf0e10cSrcweir 		bIsForConstructors(false)
68*cdf0e10cSrcweir {
69*cdf0e10cSrcweir 	pPE_Type 		= new PE_Type(nCurParsedType);
70*cdf0e10cSrcweir 	pPE_Variable 	= new PE_Variable(nCurParsedParam_Type, sCurParsedParam_Name);
71*cdf0e10cSrcweir }
72*cdf0e10cSrcweir 
73*cdf0e10cSrcweir PE_Function::PE_Function( const RParent &	  i_rCurService,
74*cdf0e10cSrcweir 						  E_Constructor        )
75*cdf0e10cSrcweir 	:	eState(expect_name),
76*cdf0e10cSrcweir 		sData_Name(),
77*cdf0e10cSrcweir         nData_ReturnType(0),
78*cdf0e10cSrcweir         bData_Oneway(false),
79*cdf0e10cSrcweir         pCurFunction(0),
80*cdf0e10cSrcweir 		pCurParent(&i_rCurService),
81*cdf0e10cSrcweir 		pPE_Type(0),
82*cdf0e10cSrcweir 		nCurParsedType(0),
83*cdf0e10cSrcweir 		sName(),
84*cdf0e10cSrcweir 		pPE_Variable(0),
85*cdf0e10cSrcweir 		eCurParsedParam_Direction(ary::idl::param_in),
86*cdf0e10cSrcweir 		nCurParsedParam_Type(0),
87*cdf0e10cSrcweir 		sCurParsedParam_Name(),
88*cdf0e10cSrcweir 		bIsForConstructors(true)
89*cdf0e10cSrcweir {
90*cdf0e10cSrcweir 	pPE_Type 		= new PE_Type(nCurParsedType);
91*cdf0e10cSrcweir 	pPE_Variable 	= new PE_Variable(nCurParsedParam_Type, sCurParsedParam_Name);
92*cdf0e10cSrcweir }
93*cdf0e10cSrcweir 
94*cdf0e10cSrcweir void
95*cdf0e10cSrcweir PE_Function::EstablishContacts( UnoIDL_PE *				 io_pParentPE,
96*cdf0e10cSrcweir 								ary::Repository &	     io_rRepository,
97*cdf0e10cSrcweir 								TokenProcessing_Result & o_rResult )
98*cdf0e10cSrcweir {
99*cdf0e10cSrcweir 	UnoIDL_PE::EstablishContacts(io_pParentPE,io_rRepository,o_rResult);
100*cdf0e10cSrcweir 	pPE_Type->EstablishContacts(this,io_rRepository,o_rResult);
101*cdf0e10cSrcweir 	pPE_Variable->EstablishContacts(this,io_rRepository,o_rResult);
102*cdf0e10cSrcweir }
103*cdf0e10cSrcweir 
104*cdf0e10cSrcweir PE_Function::~PE_Function()
105*cdf0e10cSrcweir {
106*cdf0e10cSrcweir }
107*cdf0e10cSrcweir 
108*cdf0e10cSrcweir void
109*cdf0e10cSrcweir PE_Function::ProcessToken( const Token & i_rToken )
110*cdf0e10cSrcweir {
111*cdf0e10cSrcweir 	i_rToken.Trigger(*this);
112*cdf0e10cSrcweir }
113*cdf0e10cSrcweir 
114*cdf0e10cSrcweir void
115*cdf0e10cSrcweir PE_Function::Process_Stereotype( const TokStereotype & i_rToken )
116*cdf0e10cSrcweir {
117*cdf0e10cSrcweir 	if (eState == e_start)
118*cdf0e10cSrcweir 	{
119*cdf0e10cSrcweir 		switch (i_rToken.Id())
120*cdf0e10cSrcweir 		{
121*cdf0e10cSrcweir 			case TokStereotype::ste_oneway:
122*cdf0e10cSrcweir 						bData_Oneway = true;
123*cdf0e10cSrcweir 						SetResult(done, stay);
124*cdf0e10cSrcweir 						break;
125*cdf0e10cSrcweir 			default:
126*cdf0e10cSrcweir 						OnDefault();
127*cdf0e10cSrcweir 		}	// end switch
128*cdf0e10cSrcweir 	}
129*cdf0e10cSrcweir 	else
130*cdf0e10cSrcweir 		OnDefault();
131*cdf0e10cSrcweir }
132*cdf0e10cSrcweir 
133*cdf0e10cSrcweir void
134*cdf0e10cSrcweir PE_Function::Process_Identifier( const TokIdentifier & i_rToken )
135*cdf0e10cSrcweir {
136*cdf0e10cSrcweir 	switch (eState)
137*cdf0e10cSrcweir     {
138*cdf0e10cSrcweir 		case e_start:
139*cdf0e10cSrcweir 					GoIntoReturnType();
140*cdf0e10cSrcweir 					break;
141*cdf0e10cSrcweir 		case expect_name:
142*cdf0e10cSrcweir 					sData_Name = i_rToken.Text();
143*cdf0e10cSrcweir 					SetResult(done,stay);
144*cdf0e10cSrcweir 					eState = expect_params_list;
145*cdf0e10cSrcweir 
146*cdf0e10cSrcweir 					if (NOT bIsForConstructors)
147*cdf0e10cSrcweir 					{
148*cdf0e10cSrcweir                         pCurFunction = &Gate().Ces().Store_Function(
149*cdf0e10cSrcweir                                                         *pCurParent,
150*cdf0e10cSrcweir                                                         sData_Name,
151*cdf0e10cSrcweir                                                         nData_ReturnType,
152*cdf0e10cSrcweir                                                         bData_Oneway );
153*cdf0e10cSrcweir 					}
154*cdf0e10cSrcweir 					else
155*cdf0e10cSrcweir 					{
156*cdf0e10cSrcweir                         pCurFunction = &Gate().Ces().Store_ServiceConstructor(
157*cdf0e10cSrcweir                                                         *pCurParent,
158*cdf0e10cSrcweir                                                         sData_Name );
159*cdf0e10cSrcweir 					}
160*cdf0e10cSrcweir 	                PassDocuAt(*pCurFunction);
161*cdf0e10cSrcweir 					break;
162*cdf0e10cSrcweir 		case expect_parameter_variable:
163*cdf0e10cSrcweir 					GoIntoParameterVariable();
164*cdf0e10cSrcweir 					break;
165*cdf0e10cSrcweir 		case expect_exception:
166*cdf0e10cSrcweir 					GoIntoException();
167*cdf0e10cSrcweir 					break;
168*cdf0e10cSrcweir 		default:
169*cdf0e10cSrcweir         			OnDefault();
170*cdf0e10cSrcweir 	}
171*cdf0e10cSrcweir }
172*cdf0e10cSrcweir 
173*cdf0e10cSrcweir void
174*cdf0e10cSrcweir PE_Function::Process_Punctuation( const TokPunctuation & i_rToken )
175*cdf0e10cSrcweir {
176*cdf0e10cSrcweir 	switch (eState)
177*cdf0e10cSrcweir 	{
178*cdf0e10cSrcweir 		case e_start:
179*cdf0e10cSrcweir 					SetResult(done,stay);
180*cdf0e10cSrcweir 					break;
181*cdf0e10cSrcweir 		case expect_params_list:
182*cdf0e10cSrcweir 					if (i_rToken.Id() != TokPunctuation::BracketOpen)
183*cdf0e10cSrcweir 					{
184*cdf0e10cSrcweir 						OnDefault();
185*cdf0e10cSrcweir 						return;
186*cdf0e10cSrcweir 					}
187*cdf0e10cSrcweir 					SetResult(done,stay);
188*cdf0e10cSrcweir 					eState = expect_parameter;
189*cdf0e10cSrcweir 					break;
190*cdf0e10cSrcweir 		case expect_parameter:
191*cdf0e10cSrcweir 					if (i_rToken.Id() == TokPunctuation::BracketClose)
192*cdf0e10cSrcweir 					{
193*cdf0e10cSrcweir 						SetResult(done,stay);
194*cdf0e10cSrcweir 						eState = params_finished;
195*cdf0e10cSrcweir 					}
196*cdf0e10cSrcweir 					else
197*cdf0e10cSrcweir 					{
198*cdf0e10cSrcweir 						OnDefault();
199*cdf0e10cSrcweir 						return;
200*cdf0e10cSrcweir 					}
201*cdf0e10cSrcweir 					break;
202*cdf0e10cSrcweir 		case expect_parameter_separator:
203*cdf0e10cSrcweir 					if (i_rToken.Id() == TokPunctuation::Comma)
204*cdf0e10cSrcweir 					{
205*cdf0e10cSrcweir 						SetResult(done,stay);
206*cdf0e10cSrcweir 						eState = expect_parameter;
207*cdf0e10cSrcweir 					}
208*cdf0e10cSrcweir 					else if (i_rToken.Id() == TokPunctuation::BracketClose)
209*cdf0e10cSrcweir 					{
210*cdf0e10cSrcweir 						SetResult(done,stay);
211*cdf0e10cSrcweir 						eState = params_finished;
212*cdf0e10cSrcweir 					}
213*cdf0e10cSrcweir 					else
214*cdf0e10cSrcweir 					{
215*cdf0e10cSrcweir 						OnDefault();
216*cdf0e10cSrcweir 						return;
217*cdf0e10cSrcweir 					}
218*cdf0e10cSrcweir 					break;
219*cdf0e10cSrcweir 		case params_finished:
220*cdf0e10cSrcweir 		case exceptions_finished:
221*cdf0e10cSrcweir 					if (i_rToken.Id() != TokPunctuation::Semicolon)
222*cdf0e10cSrcweir 					{
223*cdf0e10cSrcweir 						OnDefault();
224*cdf0e10cSrcweir 						return;
225*cdf0e10cSrcweir 					}
226*cdf0e10cSrcweir 					SetResult(done,pop_success);
227*cdf0e10cSrcweir 					eState = e_none;
228*cdf0e10cSrcweir 					break;
229*cdf0e10cSrcweir 		case expect_exceptions_list:
230*cdf0e10cSrcweir 					if (i_rToken.Id() != TokPunctuation::BracketOpen)
231*cdf0e10cSrcweir 					{
232*cdf0e10cSrcweir 						OnDefault();
233*cdf0e10cSrcweir 						return;
234*cdf0e10cSrcweir 					}
235*cdf0e10cSrcweir 					SetResult(done,stay);
236*cdf0e10cSrcweir 					eState = expect_exception;
237*cdf0e10cSrcweir 					break;
238*cdf0e10cSrcweir 		case expect_exception_separator:
239*cdf0e10cSrcweir 					if (i_rToken.Id() == TokPunctuation::Comma)
240*cdf0e10cSrcweir 					{
241*cdf0e10cSrcweir 						SetResult(done,stay);
242*cdf0e10cSrcweir 						eState = expect_exception;
243*cdf0e10cSrcweir 					}
244*cdf0e10cSrcweir 					else if (i_rToken.Id() == TokPunctuation::BracketClose)
245*cdf0e10cSrcweir 					{
246*cdf0e10cSrcweir 						SetResult(done,stay);
247*cdf0e10cSrcweir 						eState = exceptions_finished;
248*cdf0e10cSrcweir 					}
249*cdf0e10cSrcweir 					else
250*cdf0e10cSrcweir 					{
251*cdf0e10cSrcweir 						OnDefault();
252*cdf0e10cSrcweir 						return;
253*cdf0e10cSrcweir 					}
254*cdf0e10cSrcweir 					break;
255*cdf0e10cSrcweir 		default:
256*cdf0e10cSrcweir 					OnDefault();
257*cdf0e10cSrcweir 	}
258*cdf0e10cSrcweir }
259*cdf0e10cSrcweir 
260*cdf0e10cSrcweir void
261*cdf0e10cSrcweir PE_Function::Process_BuiltInType( const TokBuiltInType & i_rToken )
262*cdf0e10cSrcweir {
263*cdf0e10cSrcweir 	switch (eState)
264*cdf0e10cSrcweir 	{
265*cdf0e10cSrcweir 		case e_start:
266*cdf0e10cSrcweir 				GoIntoReturnType();
267*cdf0e10cSrcweir 				break;
268*cdf0e10cSrcweir 		case expect_parameter_variable:
269*cdf0e10cSrcweir    				GoIntoParameterVariable();
270*cdf0e10cSrcweir                 break;
271*cdf0e10cSrcweir 		case expect_parameter_separator:
272*cdf0e10cSrcweir                 if (i_rToken.Id() != TokBuiltInType::bty_ellipse)
273*cdf0e10cSrcweir                 {
274*cdf0e10cSrcweir                     OnDefault();
275*cdf0e10cSrcweir                 }
276*cdf0e10cSrcweir                 else
277*cdf0e10cSrcweir                 {
278*cdf0e10cSrcweir                     pCurFunction->Set_Ellipse();
279*cdf0e10cSrcweir                    	SetResult(done,stay);
280*cdf0e10cSrcweir 		        	// eState stays the same, because we wait for the closing ")" now.
281*cdf0e10cSrcweir                 }
282*cdf0e10cSrcweir 		        break;
283*cdf0e10cSrcweir 		case expect_exception:
284*cdf0e10cSrcweir 				GoIntoException();
285*cdf0e10cSrcweir 				break;
286*cdf0e10cSrcweir 		default:
287*cdf0e10cSrcweir 			OnDefault();
288*cdf0e10cSrcweir 	}	// end switch
289*cdf0e10cSrcweir }
290*cdf0e10cSrcweir 
291*cdf0e10cSrcweir void
292*cdf0e10cSrcweir PE_Function::Process_ParameterHandling( const TokParameterHandling & i_rToken )
293*cdf0e10cSrcweir {
294*cdf0e10cSrcweir 	if (eState != expect_parameter)
295*cdf0e10cSrcweir 	{
296*cdf0e10cSrcweir 		OnDefault();
297*cdf0e10cSrcweir 		return;
298*cdf0e10cSrcweir 	}
299*cdf0e10cSrcweir 
300*cdf0e10cSrcweir 	switch (i_rToken.Id())
301*cdf0e10cSrcweir 	{
302*cdf0e10cSrcweir 		case TokParameterHandling::ph_in:
303*cdf0e10cSrcweir 					eCurParsedParam_Direction = ary::idl::param_in;
304*cdf0e10cSrcweir 					break;
305*cdf0e10cSrcweir 		case TokParameterHandling::ph_out:
306*cdf0e10cSrcweir 					eCurParsedParam_Direction = ary::idl::param_out;
307*cdf0e10cSrcweir 					break;
308*cdf0e10cSrcweir 		case TokParameterHandling::ph_inout:
309*cdf0e10cSrcweir 					eCurParsedParam_Direction = ary::idl::param_inout;
310*cdf0e10cSrcweir 					break;
311*cdf0e10cSrcweir 		default:
312*cdf0e10cSrcweir 					csv_assert(false);
313*cdf0e10cSrcweir 	}
314*cdf0e10cSrcweir 	SetResult(done,stay);
315*cdf0e10cSrcweir 	eState = expect_parameter_variable;
316*cdf0e10cSrcweir }
317*cdf0e10cSrcweir 
318*cdf0e10cSrcweir void
319*cdf0e10cSrcweir PE_Function::Process_Raises()
320*cdf0e10cSrcweir {
321*cdf0e10cSrcweir 	if (eState != params_finished)
322*cdf0e10cSrcweir 	{
323*cdf0e10cSrcweir 		OnDefault();
324*cdf0e10cSrcweir 		return;
325*cdf0e10cSrcweir 	}
326*cdf0e10cSrcweir 	SetResult(done,stay);
327*cdf0e10cSrcweir 	eState = expect_exceptions_list;
328*cdf0e10cSrcweir }
329*cdf0e10cSrcweir 
330*cdf0e10cSrcweir void
331*cdf0e10cSrcweir PE_Function::Process_Default()
332*cdf0e10cSrcweir {
333*cdf0e10cSrcweir 	switch (eState)
334*cdf0e10cSrcweir 	{
335*cdf0e10cSrcweir 		case e_start:
336*cdf0e10cSrcweir 				GoIntoReturnType();
337*cdf0e10cSrcweir 				break;
338*cdf0e10cSrcweir 		case expect_parameter_variable:
339*cdf0e10cSrcweir 				GoIntoParameterVariable();
340*cdf0e10cSrcweir 				break;
341*cdf0e10cSrcweir 		case expect_exception:
342*cdf0e10cSrcweir 				GoIntoException();
343*cdf0e10cSrcweir 				break;
344*cdf0e10cSrcweir 		default:
345*cdf0e10cSrcweir 			OnDefault();
346*cdf0e10cSrcweir 	}	// end switch
347*cdf0e10cSrcweir }
348*cdf0e10cSrcweir 
349*cdf0e10cSrcweir void
350*cdf0e10cSrcweir PE_Function::GoIntoReturnType()
351*cdf0e10cSrcweir {
352*cdf0e10cSrcweir 	SetResult(not_done, push_sure, pPE_Type.Ptr());
353*cdf0e10cSrcweir 	eState = in_return_type;
354*cdf0e10cSrcweir }
355*cdf0e10cSrcweir 
356*cdf0e10cSrcweir void
357*cdf0e10cSrcweir PE_Function::GoIntoParameterVariable()
358*cdf0e10cSrcweir {
359*cdf0e10cSrcweir 	SetResult(not_done, push_sure, pPE_Variable.Ptr());
360*cdf0e10cSrcweir 	eState = in_parameter_variable;
361*cdf0e10cSrcweir }
362*cdf0e10cSrcweir 
363*cdf0e10cSrcweir void
364*cdf0e10cSrcweir PE_Function::GoIntoException()
365*cdf0e10cSrcweir {
366*cdf0e10cSrcweir 	SetResult(not_done, push_sure, pPE_Type.Ptr());
367*cdf0e10cSrcweir 	eState = in_exception;
368*cdf0e10cSrcweir }
369*cdf0e10cSrcweir 
370*cdf0e10cSrcweir void
371*cdf0e10cSrcweir PE_Function::OnDefault()
372*cdf0e10cSrcweir {
373*cdf0e10cSrcweir 	throw X_AutodocParser(X_AutodocParser::x_Any);
374*cdf0e10cSrcweir }
375*cdf0e10cSrcweir 
376*cdf0e10cSrcweir void
377*cdf0e10cSrcweir PE_Function::InitData()
378*cdf0e10cSrcweir {
379*cdf0e10cSrcweir 	eState = e_start;
380*cdf0e10cSrcweir 
381*cdf0e10cSrcweir 	sData_Name.clear();
382*cdf0e10cSrcweir     nData_ReturnType = 0;
383*cdf0e10cSrcweir     bData_Oneway = false;
384*cdf0e10cSrcweir     pCurFunction = 0;
385*cdf0e10cSrcweir 
386*cdf0e10cSrcweir 	nCurParsedType = 0;
387*cdf0e10cSrcweir 	eCurParsedParam_Direction = ary::idl::param_in;
388*cdf0e10cSrcweir 	nCurParsedParam_Type = 0;
389*cdf0e10cSrcweir 	sCurParsedParam_Name.clear();
390*cdf0e10cSrcweir 
391*cdf0e10cSrcweir 	if (bIsForConstructors)
392*cdf0e10cSrcweir 	{
393*cdf0e10cSrcweir         eState = expect_name;
394*cdf0e10cSrcweir 	}
395*cdf0e10cSrcweir }
396*cdf0e10cSrcweir 
397*cdf0e10cSrcweir void
398*cdf0e10cSrcweir PE_Function::ReceiveData()
399*cdf0e10cSrcweir {
400*cdf0e10cSrcweir 	switch (eState)
401*cdf0e10cSrcweir 	{
402*cdf0e10cSrcweir 		case in_return_type:
403*cdf0e10cSrcweir 				nData_ReturnType = nCurParsedType;
404*cdf0e10cSrcweir 				nCurParsedType = 0;
405*cdf0e10cSrcweir 				eState = expect_name;
406*cdf0e10cSrcweir 				break;
407*cdf0e10cSrcweir 		case in_parameter_variable:
408*cdf0e10cSrcweir                 csv_assert(pCurFunction != 0);
409*cdf0e10cSrcweir 				pCurFunction->Add_Parameter(
410*cdf0e10cSrcweir                                     sCurParsedParam_Name,
411*cdf0e10cSrcweir 									nCurParsedParam_Type,
412*cdf0e10cSrcweir 									eCurParsedParam_Direction );
413*cdf0e10cSrcweir 				sCurParsedParam_Name = "";
414*cdf0e10cSrcweir 				nCurParsedParam_Type = 0;
415*cdf0e10cSrcweir 				eCurParsedParam_Direction = ary::idl::param_in;
416*cdf0e10cSrcweir 				eState = expect_parameter_separator;
417*cdf0e10cSrcweir 				break;
418*cdf0e10cSrcweir 		case in_exception:
419*cdf0e10cSrcweir                 csv_assert(pCurFunction != 0);
420*cdf0e10cSrcweir 				pCurFunction->Add_Exception(nCurParsedType);
421*cdf0e10cSrcweir 				eState = expect_exception_separator;
422*cdf0e10cSrcweir 				break;
423*cdf0e10cSrcweir 		default:
424*cdf0e10cSrcweir 			csv_assert(false);
425*cdf0e10cSrcweir 	}   // end switch
426*cdf0e10cSrcweir }
427*cdf0e10cSrcweir 
428*cdf0e10cSrcweir void
429*cdf0e10cSrcweir PE_Function::TransferData()
430*cdf0e10cSrcweir {
431*cdf0e10cSrcweir     pCurFunction = 0;
432*cdf0e10cSrcweir 	eState = e_none;
433*cdf0e10cSrcweir }
434*cdf0e10cSrcweir 
435*cdf0e10cSrcweir UnoIDL_PE &
436*cdf0e10cSrcweir PE_Function::MyPE()
437*cdf0e10cSrcweir {
438*cdf0e10cSrcweir 	return *this;
439*cdf0e10cSrcweir }
440*cdf0e10cSrcweir 
441*cdf0e10cSrcweir 
442*cdf0e10cSrcweir 
443*cdf0e10cSrcweir }   // namespace uidl
444*cdf0e10cSrcweir }   // namespace csi
445*cdf0e10cSrcweir 
446