Update ooo320-m1
[ooovba.git] / autodoc / source / parser_i / inc / s2_luidl / semnode.hxx
blobdafcbb33f2e257b297073a95a6cd56f57978eebd
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: semnode.hxx,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef ADC_SEMNODE_HXX
32 #define ADC_SEMNODE_HXX
36 // USED SERVICES
37 // BASE CLASSES
38 #include <s2_luidl/tokproct.hxx>
39 // COMPONENTS
40 // PARAMETERS
41 #include <ary/qualiname.hxx>
42 // #include <udm/ref.hxx>
45 namespace ary
47 class QualifiedName;
48 class Repository;
50 namespace idl
52 class Gate;
53 class Module;
54 } // namespace idl
55 } // namespace ary
58 namespace csi
60 namespace uidl
64 class Struct;
65 class Token;
68 /** is an implementation class for UnoIDL_PE s
70 class SemanticNode : private TokenProcessing_Types
72 public:
73 SemanticNode();
74 void EstablishContacts(
75 UnoIDL_PE * io_pParentPE,
76 ary::idl::Gate & io_rRepository,
77 TokenProcessing_Result &
78 o_rResult );
79 ~SemanticNode();
81 void SetTokenResult(
82 E_TokenDone i_eDone,
83 E_EnvStackAction i_eWhat2DoWithEnvStack,
84 UnoIDL_PE * i_pParseEnv2Push = 0 );
85 UnoIDL_PE * Parent() const { return pParentPE; }
86 ary::idl::Gate & AryGate() const { return *pAryGate; }
87 TokenProcessing_Result &
88 TokenResult() const { return *pTokenResult; }
90 private:
91 // DATA
92 UnoIDL_PE * pParentPE;
93 ary::idl::Gate * pAryGate;
94 TokenProcessing_Result *
95 pTokenResult;
100 class Trying_PE
102 public:
103 virtual ~Trying_PE() {}
105 protected:
106 Trying_PE();
108 virtual void ProcessToken(
109 const Token & i_rToken );
111 void StartTry(
112 UnoIDL_PE & i_rFirstTry );
113 void Add2Try(
114 UnoIDL_PE & i_rTry );
115 bool AmITrying() const;
116 UnoIDL_PE * NextTry() const;
117 void FinishTry();
119 private:
120 std::vector<UnoIDL_PE*>
121 aTryableSubEnvironments;
122 uintt nTryCounter;
128 // IMPLEMENTATION
131 } // namespace uidl
132 } // namespace csi
134 #endif