| 2218 |
sbetterm |
1 |
//## begin module%1.7%.codegen_version preserve=yes
|
|
|
2 |
// Read the documentation to learn more about C++ code generator
|
|
|
3 |
// versioning.
|
|
|
4 |
//## end module%1.7%.codegen_version
|
|
|
5 |
|
|
|
6 |
//## begin module%42116B3700AD.cm preserve=no
|
|
|
7 |
//## end module%42116B3700AD.cm
|
|
|
8 |
|
|
|
9 |
//## begin module%42116B3700AD.cp preserve=no
|
|
|
10 |
// C O P Y R I G H T N O T I C E
|
|
|
11 |
// This material is confidential to ERG and may not be disclosed in whole
|
|
|
12 |
// or in part to any third party nor used in any manner whatsoever other
|
|
|
13 |
// than for the purposes expressly consented to by ERG in writing.
|
|
|
14 |
//
|
|
|
15 |
// This material is also copyright and may not be reproduced, stored in a
|
|
|
16 |
// retrieval system or transmitted in any form or by any means in whole or
|
|
|
17 |
// in part without the express written consent of ERG.
|
|
|
18 |
//## end module%42116B3700AD.cp
|
|
|
19 |
|
|
|
20 |
//## Module: EvaluationContext%42116B3700AD; Pseudo Package specification
|
|
|
21 |
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
|
|
|
22 |
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\EvaluationContext.h
|
|
|
23 |
|
|
|
24 |
#ifndef EvaluationContext_h
|
|
|
25 |
#define EvaluationContext_h 1
|
|
|
26 |
|
|
|
27 |
//## begin module%42116B3700AD.additionalIncludes preserve=no
|
|
|
28 |
//## end module%42116B3700AD.additionalIncludes
|
|
|
29 |
|
|
|
30 |
//## begin module%42116B3700AD.includes preserve=yes
|
|
|
31 |
//## end module%42116B3700AD.includes
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
class IMessageDigest;
|
|
|
35 |
namespace XMLSchema {
|
|
|
36 |
class IXmlSchemaWrapperElement;
|
|
|
37 |
} // namespace XMLSchema
|
|
|
38 |
|
|
|
39 |
class TransactionSpecification;
|
|
|
40 |
class SequenceCollection;
|
|
|
41 |
class DefinedVariableTable;
|
|
|
42 |
class TimeEstimate;
|
|
|
43 |
class ProgressBar;
|
|
|
44 |
|
|
|
45 |
//## begin module%42116B3700AD.additionalDeclarations preserve=yes
|
|
|
46 |
//## end module%42116B3700AD.additionalDeclarations
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
//## begin EvaluationContext%42116B3700AD.preface preserve=yes
|
|
|
50 |
//## end EvaluationContext%42116B3700AD.preface
|
|
|
51 |
|
|
|
52 |
//## Class: EvaluationContext%42116B3700AD; private
|
|
|
53 |
// This class encapsulates the context for evaluating expressions.
|
|
|
54 |
//## Category: TransactionTestManager::Transaction Generation%4202F8EE0128
|
|
|
55 |
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
|
|
|
56 |
//## Persistence: Transient
|
|
|
57 |
//## Cardinality/Multiplicity: n
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
class EvaluationContext
|
|
|
62 |
{
|
|
|
63 |
//## begin EvaluationContext%42116B3700AD.initialDeclarations preserve=yes
|
|
|
64 |
//## end EvaluationContext%42116B3700AD.initialDeclarations
|
|
|
65 |
|
|
|
66 |
public:
|
|
|
67 |
//## Constructors (generated)
|
|
|
68 |
EvaluationContext();
|
|
|
69 |
|
|
|
70 |
//## Constructors (specified)
|
|
|
71 |
//## Operation: EvaluationContext%42116FD901D9
|
|
|
72 |
// This constructor accepts values for most context items.
|
|
|
73 |
EvaluationContext (DefinedVariableTable& symbolTable, // The symbol table with which the expression is to be evaluated.
|
|
|
74 |
SequenceCollection& sequences, // The sequence generators.
|
|
|
75 |
ProgressBar& progressBar, // The progress bar that is to be notified of progress.
|
|
|
76 |
IMessageDigest* messageDigest, // The message digest.
|
|
|
77 |
TimeEstimate& timeEstimate // The time estimate.
|
|
|
78 |
);
|
|
|
79 |
|
|
|
80 |
//## Destructor (generated)
|
|
|
81 |
virtual ~EvaluationContext();
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
//## Other Operations (specified)
|
|
|
85 |
//## Operation: getMessageDigest%4211C6C901B5
|
|
|
86 |
// Evaluate to the message digest.
|
|
|
87 |
IMessageDigest& getMessageDigest ();
|
|
|
88 |
|
|
|
89 |
//## Operation: getProgressBar%42116CAA0204
|
|
|
90 |
// Evaluate to the progress bar that is to be notified of progress.
|
|
|
91 |
ProgressBar& getProgressBar ();
|
|
|
92 |
|
|
|
93 |
//## Operation: getSchemaElement%4212D7B702C1
|
|
|
94 |
// Evaluate to the schema element with which the expression is to be evaluated.
|
|
|
95 |
XMLSchema::IXmlSchemaWrapperElement & getSchemaElement ();
|
|
|
96 |
|
|
|
97 |
//## Operation: getSequenceCollection%421170BF0053
|
|
|
98 |
// Evaluate to the sequence generators available to this expression.
|
|
|
99 |
SequenceCollection& getSequenceCollection ();
|
|
|
100 |
|
|
|
101 |
//## Operation: getSymbolTable%42116CA901D6
|
|
|
102 |
// Evaluate to the symbol table with which the expression is to be evaluated.
|
|
|
103 |
DefinedVariableTable& getSymbolTable ();
|
|
|
104 |
|
|
|
105 |
//## Operation: getTimeEstimate%4211D01E02E6
|
|
|
106 |
// Evaluate to the time estimate.
|
|
|
107 |
TimeEstimate& getTimeEstimate ();
|
|
|
108 |
|
|
|
109 |
//## Operation: getTransaction%42116C8703D9
|
|
|
110 |
// Evaluate to the transaction within which the expression is to be evaluated.
|
|
|
111 |
TransactionSpecification& getTransaction ();
|
|
|
112 |
|
|
|
113 |
//## Operation: haveMessageDigest%4211C6ED01C4
|
|
|
114 |
// Evaluate to true when there is a message digest, and to false otherwise.
|
|
|
115 |
const bool haveMessageDigest () const;
|
|
|
116 |
|
|
|
117 |
//## Operation: haveProgressBar%42116E850298
|
|
|
118 |
// Evaluate to true when there is a progress bar that is to be notified of
|
|
|
119 |
// progress, and to false otherwise.
|
|
|
120 |
const bool haveProgressBar () const;
|
|
|
121 |
|
|
|
122 |
//## Operation: haveSchemaElement%4212D7B702FF
|
|
|
123 |
// Evaluate to true when there is a schema element with which the expression is
|
|
|
124 |
// to be evaluated, and to false otherwise.
|
|
|
125 |
const bool haveSchemaElement () const;
|
|
|
126 |
|
|
|
127 |
//## Operation: haveSequenceCollection%421170BF0081
|
|
|
128 |
// Evaluate to true when there is a collection of sequence generators available
|
|
|
129 |
// to this expression, and to false otherwise.
|
|
|
130 |
const bool haveSequenceCollection () const;
|
|
|
131 |
|
|
|
132 |
//## Operation: haveSymbolTable%42116E8502B8
|
|
|
133 |
// Evaluate to true when there is a symbol table with which the expression is
|
|
|
134 |
// to be evaluated, and to false otherwise.
|
|
|
135 |
const bool haveSymbolTable () const;
|
|
|
136 |
|
|
|
137 |
//## Operation: haveTransaction%42116E8502D7
|
|
|
138 |
// Evaluate to true when there is a transaction within which the expression is
|
|
|
139 |
// to be evaluated, and to false otherwise.
|
|
|
140 |
const bool haveTransaction ();
|
|
|
141 |
|
|
|
142 |
//## Operation: setProgressBar%42116CAA01E5
|
|
|
143 |
// Set the progress bar.
|
|
|
144 |
void setProgressBar (ProgressBar& progressBar // The progress bar that is to be notified of progress. While we do not
|
|
|
145 |
// accept ownership over this instance, we do assume its validity for the
|
|
|
146 |
// remainder of our lifetime.
|
|
|
147 |
);
|
|
|
148 |
|
|
|
149 |
//## Operation: setSchemaElement%4212D7B7031F
|
|
|
150 |
// Set the schema element.
|
|
|
151 |
void setSchemaElement (XMLSchema::IXmlSchemaWrapperElement &schemaElement // The schema element which the expression is to be evaluated. While we do
|
|
|
152 |
// not accept ownership over this instance, we do assume its validity for the
|
|
|
153 |
// remainder of our lifetime.
|
|
|
154 |
);
|
|
|
155 |
|
|
|
156 |
//## Operation: setSequenceCollection%421170BF0091
|
|
|
157 |
// Set the sequence generators available to this expression.
|
|
|
158 |
void setSequenceCollection (SequenceCollection& sequenceCollection // The sequence generators available to this expression. While we do not
|
|
|
159 |
// accept ownership over this instance, we do assume its validity for the
|
|
|
160 |
// remainder of our lifetime.
|
|
|
161 |
);
|
|
|
162 |
|
|
|
163 |
//## Operation: setSymbolTable%42116CA901B6
|
|
|
164 |
// Set the symbol table.
|
|
|
165 |
void setSymbolTable (DefinedVariableTable& symbolTable // The symbol table with which the expression is to be evaluated. While we do
|
|
|
166 |
// not accept ownership over this instance, we do assume its validity for the
|
|
|
167 |
// remainder of our lifetime.
|
|
|
168 |
);
|
|
|
169 |
|
|
|
170 |
//## Operation: setTransaction%42116C60036C
|
|
|
171 |
// Set the transaction.
|
|
|
172 |
void setTransaction (TransactionSpecification& transaction // The transaction within which the expression is to be evaluated. While we
|
|
|
173 |
// do not accept ownership over this instance, we do assume its validity for
|
|
|
174 |
// the remainder of our lifetime.
|
|
|
175 |
);
|
|
|
176 |
|
|
|
177 |
// Additional Public Declarations
|
|
|
178 |
//## begin EvaluationContext%42116B3700AD.public preserve=yes
|
|
|
179 |
//## end EvaluationContext%42116B3700AD.public
|
|
|
180 |
|
|
|
181 |
protected:
|
|
|
182 |
// Additional Protected Declarations
|
|
|
183 |
//## begin EvaluationContext%42116B3700AD.protected preserve=yes
|
|
|
184 |
//## end EvaluationContext%42116B3700AD.protected
|
|
|
185 |
|
|
|
186 |
private:
|
|
|
187 |
//## Constructors (generated)
|
|
|
188 |
EvaluationContext(const EvaluationContext &right);
|
|
|
189 |
|
|
|
190 |
//## Assignment Operation (generated)
|
|
|
191 |
EvaluationContext & operator=(const EvaluationContext &right);
|
|
|
192 |
|
|
|
193 |
// Data Members for Associations
|
|
|
194 |
|
|
|
195 |
//## Association: TransactionTestManager::Transaction Generation::<unnamed>%42116B7F005F
|
|
|
196 |
//## Role: EvaluationContext::transaction%42116B7F0224
|
|
|
197 |
// The transaction within which the expression is to be evaluated. While we do
|
|
|
198 |
// not accept ownership over this instance, we do assume its validity for the
|
|
|
199 |
// remainder of our lifetime.
|
|
|
200 |
//## begin EvaluationContext::transaction%42116B7F0224.role preserve=no private: TransactionSpecification {1 -> 1RFHAN}
|
|
|
201 |
TransactionSpecification *m_transaction;
|
|
|
202 |
//## end EvaluationContext::transaction%42116B7F0224.role
|
|
|
203 |
|
|
|
204 |
//## Association: TransactionTestManager::Transaction Generation::<unnamed>%42116BB5039B
|
|
|
205 |
//## Role: EvaluationContext::symbolTable%42116BB601E5
|
|
|
206 |
// The collection of defined symbols. While we do not accept ownership over
|
|
|
207 |
// this instance, we do assume its validity for the remainder of our lifetime.
|
|
|
208 |
//## begin EvaluationContext::symbolTable%42116BB601E5.role preserve=no private: DefinedVariableTable {1 -> 1RFHAN}
|
|
|
209 |
DefinedVariableTable *m_symbolTable;
|
|
|
210 |
//## end EvaluationContext::symbolTable%42116BB601E5.role
|
|
|
211 |
|
|
|
212 |
//## Association: TransactionTestManager::Transaction Generation::<unnamed>%42116C0D038B
|
|
|
213 |
//## Role: EvaluationContext::progressBar%42116C0E036C
|
|
|
214 |
// The progress bar that we notify of progress. While we do not accept
|
|
|
215 |
// ownership over this instance, we do assume its validity for the remainder of
|
|
|
216 |
// our lifetime.
|
|
|
217 |
//## begin EvaluationContext::progressBar%42116C0E036C.role preserve=no private: ProgressBar {1 -> 1RFHAN}
|
|
|
218 |
ProgressBar *m_progressBar;
|
|
|
219 |
//## end EvaluationContext::progressBar%42116C0E036C.role
|
|
|
220 |
|
|
|
221 |
//## Association: TransactionTestManager::Transaction Generation::<unnamed>%4211706801AA
|
|
|
222 |
//## Role: EvaluationContext::sequences%421170680331
|
|
|
223 |
// The sequence generators available to this expression. While we do not
|
|
|
224 |
// accept ownership over this instance, we do assume its validity for the
|
|
|
225 |
// remainder of our lifetime.
|
|
|
226 |
//## begin EvaluationContext::sequences%421170680331.role preserve=no private: SequenceCollection {1 -> 1RFHAN}
|
|
|
227 |
SequenceCollection *m_sequences;
|
|
|
228 |
//## end EvaluationContext::sequences%421170680331.role
|
|
|
229 |
|
|
|
230 |
//## Association: TransactionTestManager::Transaction Generation::<unnamed>%4211CFBE00B9
|
|
|
231 |
//## Role: EvaluationContext::estimate%4211CFBE0359
|
|
|
232 |
// The time estimate for generation. While we do not accept ownership over
|
|
|
233 |
// this instance, we do assume its validity for the remainder of our lifetime.
|
|
|
234 |
//## begin EvaluationContext::estimate%4211CFBE0359.role preserve=no private: TimeEstimate {1 -> 1RFHAN}
|
|
|
235 |
TimeEstimate *m_estimate;
|
|
|
236 |
//## end EvaluationContext::estimate%4211CFBE0359.role
|
|
|
237 |
|
|
|
238 |
//## Association: TransactionTestManager::Transaction Generation::<unnamed>%4211D40002CC
|
|
|
239 |
//## Role: EvaluationContext::digest%4211D4010155
|
|
|
240 |
// The digest.
|
|
|
241 |
//## begin EvaluationContext::digest%4211D4010155.role preserve=no private: IMessageDigest {1 -> 1RFHAN}
|
|
|
242 |
IMessageDigest *m_digest;
|
|
|
243 |
//## end EvaluationContext::digest%4211D4010155.role
|
|
|
244 |
|
|
|
245 |
//## Association: TransactionTestManager::Transaction Generation::<unnamed>%4212D78001F6
|
|
|
246 |
//## Role: EvaluationContext::schemaElement%4212D7810188
|
|
|
247 |
// The schema element.
|
|
|
248 |
//## begin EvaluationContext::schemaElement%4212D7810188.role preserve=no private: XMLSchema::IXmlSchemaWrapperElement {1 -> 1RFHAN}
|
|
|
249 |
XMLSchema::IXmlSchemaWrapperElement *m_schemaElement;
|
|
|
250 |
//## end EvaluationContext::schemaElement%4212D7810188.role
|
|
|
251 |
|
|
|
252 |
// Additional Private Declarations
|
|
|
253 |
//## begin EvaluationContext%42116B3700AD.private preserve=yes
|
|
|
254 |
//## end EvaluationContext%42116B3700AD.private
|
|
|
255 |
|
|
|
256 |
private: //## implementation
|
|
|
257 |
// Additional Implementation Declarations
|
|
|
258 |
//## begin EvaluationContext%42116B3700AD.implementation preserve=yes
|
|
|
259 |
//## end EvaluationContext%42116B3700AD.implementation
|
|
|
260 |
|
|
|
261 |
};
|
|
|
262 |
|
|
|
263 |
//## begin EvaluationContext%42116B3700AD.postscript preserve=yes
|
|
|
264 |
//## end EvaluationContext%42116B3700AD.postscript
|
|
|
265 |
|
|
|
266 |
// Class EvaluationContext
|
|
|
267 |
|
|
|
268 |
//## begin module%42116B3700AD.epilog preserve=yes
|
|
|
269 |
//## end module%42116B3700AD.epilog
|
|
|
270 |
|
|
|
271 |
|
|
|
272 |
#endif
|