Subversion Repositories DevTools

Rev

Rev 2218 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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 body
21
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
22
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\EvaluationContext.cpp
23
 
24
//## begin module%42116B3700AD.additionalIncludes preserve=no
25
//## end module%42116B3700AD.additionalIncludes
26
 
27
//## begin module%42116B3700AD.includes preserve=yes
28
//## end module%42116B3700AD.includes
29
 
2222 sbetterm 30
// DefinedVariableTable
31
#include "DefinedVariableTable.h"
2218 sbetterm 32
// SequenceCollection
33
#include "SequenceCollection.h"
34
// TimeEstimate
35
#include "TimeEstimate.h"
36
// ProgressBar
37
#include "ProgressBar.h"
2222 sbetterm 38
// IXmlSchemaWrapperElement
39
#include "IXmlSchemaWrapperElement.h"
40
// EvaluationContext
41
#include "EvaluationContext.h"
42
// TransactionSpecification
43
#include "TransactionSpecification.h"
44
// ICryptographicServerProxy
45
#include "ICryptographicServerProxy.h"
46
// IMessageDigest
47
#include "IMessageDigest.h"
2218 sbetterm 48
//## begin module%42116B3700AD.additionalDeclarations preserve=yes
49
//## end module%42116B3700AD.additionalDeclarations
50
 
51
 
52
// Class EvaluationContext 
53
 
54
//## Operation: EvaluationContext%42116FD901D9
2222 sbetterm 55
EvaluationContext::EvaluationContext (DefinedVariableTable& symbolTable, SequenceCollection& sequences, ProgressBar& progressBar, IMessageDigest* messageDigest, ICryptographicServerProxy* cryptographicServer, TimeEstimate& timeEstimate)
2218 sbetterm 56
  //## begin EvaluationContext::EvaluationContext%42116FD901D9.hasinit preserve=no
2222 sbetterm 57
      : m_scenarioIndex(0),
58
        m_transaction(0),
2218 sbetterm 59
        m_symbolTable(0),
60
        m_progressBar(0),
61
        m_sequences(0),
62
        m_estimate(0),
63
        m_digest(0),
2222 sbetterm 64
        m_schemaElement(0),
65
        m_cryptographicServer(0)
2218 sbetterm 66
  //## end EvaluationContext::EvaluationContext%42116FD901D9.hasinit
67
  //## begin EvaluationContext::EvaluationContext%42116FD901D9.initialization preserve=yes
68
  //## end EvaluationContext::EvaluationContext%42116FD901D9.initialization
69
{
70
  //## begin EvaluationContext::EvaluationContext%42116FD901D9.body preserve=yes
71
 
2222 sbetterm 72
	m_cryptographicServer	= cryptographicServer;
73
	m_digest				= messageDigest;
74
	m_estimate				= &timeEstimate;
75
	m_symbolTable			= &symbolTable;
76
	m_progressBar			= &progressBar;
77
	m_sequences				= &sequences;
2218 sbetterm 78
 
79
  //## end EvaluationContext::EvaluationContext%42116FD901D9.body
80
}
81
 
82
 
83
EvaluationContext::~EvaluationContext()
84
{
85
  //## begin EvaluationContext::~EvaluationContext%42116B3700AD_dest.body preserve=yes
86
 
2222 sbetterm 87
	m_transaction			= 0;	// We don't own this.
88
	m_symbolTable			= 0;	// We don't own this.
89
	m_schemaElement			= 0;	// We don't own this.
90
	m_progressBar			= 0;	// We don't own this.
91
	m_estimate				= 0;    // We don't own this.
92
	m_digest				= 0;	// We don't own this.
93
	m_cryptographicServer	= 0;	// We don't own this.
2218 sbetterm 94
 
95
  //## end EvaluationContext::~EvaluationContext%42116B3700AD_dest.body
96
}
97
 
98
 
99
 
100
//## Other Operations (implementation)
2222 sbetterm 101
//## Operation: getCryptographicServer%422EAADF0074
102
ICryptographicServerProxy& EvaluationContext::getCryptographicServer ()
103
{
104
  //## begin EvaluationContext::getCryptographicServer%422EAADF0074.body preserve=yes
105
 
106
	return ( *m_cryptographicServer );
107
 
108
  //## end EvaluationContext::getCryptographicServer%422EAADF0074.body
109
}
110
 
2218 sbetterm 111
//## Operation: getMessageDigest%4211C6C901B5
112
IMessageDigest& EvaluationContext::getMessageDigest ()
113
{
114
  //## begin EvaluationContext::getMessageDigest%4211C6C901B5.body preserve=yes
115
 
116
	return ( *m_digest );
117
 
118
  //## end EvaluationContext::getMessageDigest%4211C6C901B5.body
119
}
120
 
121
//## Operation: getProgressBar%42116CAA0204
122
ProgressBar& EvaluationContext::getProgressBar ()
123
{
124
  //## begin EvaluationContext::getProgressBar%42116CAA0204.body preserve=yes
125
 
126
	return ( *m_progressBar );
127
 
128
  //## end EvaluationContext::getProgressBar%42116CAA0204.body
129
}
130
 
2222 sbetterm 131
//## Operation: getScenarioIndex%4236AD17026A
132
const unsigned & EvaluationContext::getScenarioIndex () const
133
{
134
  //## begin EvaluationContext::getScenarioIndex%4236AD17026A.body preserve=yes
135
 
136
	return ( m_scenarioIndex );
137
 
138
  //## end EvaluationContext::getScenarioIndex%4236AD17026A.body
139
}
140
 
2218 sbetterm 141
//## Operation: getSchemaElement%4212D7B702C1
142
XMLSchema::IXmlSchemaWrapperElement & EvaluationContext::getSchemaElement ()
143
{
144
  //## begin EvaluationContext::getSchemaElement%4212D7B702C1.body preserve=yes
145
 
146
	return ( *m_schemaElement );
147
 
148
  //## end EvaluationContext::getSchemaElement%4212D7B702C1.body
149
}
150
 
151
//## Operation: getSequenceCollection%421170BF0053
152
SequenceCollection& EvaluationContext::getSequenceCollection ()
153
{
154
  //## begin EvaluationContext::getSequenceCollection%421170BF0053.body preserve=yes
155
 
156
	return ( *m_sequences );
157
 
158
  //## end EvaluationContext::getSequenceCollection%421170BF0053.body
159
}
160
 
161
//## Operation: getSymbolTable%42116CA901D6
162
DefinedVariableTable& EvaluationContext::getSymbolTable ()
163
{
164
  //## begin EvaluationContext::getSymbolTable%42116CA901D6.body preserve=yes
165
 
166
	return ( *m_symbolTable );
167
 
168
  //## end EvaluationContext::getSymbolTable%42116CA901D6.body
169
}
170
 
171
//## Operation: getTimeEstimate%4211D01E02E6
172
TimeEstimate& EvaluationContext::getTimeEstimate ()
173
{
174
  //## begin EvaluationContext::getTimeEstimate%4211D01E02E6.body preserve=yes
175
 
176
	return ( *m_estimate );  
177
 
178
  //## end EvaluationContext::getTimeEstimate%4211D01E02E6.body
179
}
180
 
181
//## Operation: getTransaction%42116C8703D9
182
TransactionSpecification& EvaluationContext::getTransaction ()
183
{
184
  //## begin EvaluationContext::getTransaction%42116C8703D9.body preserve=yes
185
 
186
	return ( *m_transaction );
187
 
188
  //## end EvaluationContext::getTransaction%42116C8703D9.body
189
}
190
 
2222 sbetterm 191
//## Operation: haveCryptographicServer%422EAADF00B2
192
const bool EvaluationContext::haveCryptographicServer () const
193
{
194
  //## begin EvaluationContext::haveCryptographicServer%422EAADF00B2.body preserve=yes
195
 
196
	return ( m_cryptographicServer != 0 );
197
 
198
  //## end EvaluationContext::haveCryptographicServer%422EAADF00B2.body
199
}
200
 
2218 sbetterm 201
//## Operation: haveMessageDigest%4211C6ED01C4
202
const bool EvaluationContext::haveMessageDigest () const
203
{
204
  //## begin EvaluationContext::haveMessageDigest%4211C6ED01C4.body preserve=yes
205
 
206
	return ( m_digest != 0 );
207
 
208
  //## end EvaluationContext::haveMessageDigest%4211C6ED01C4.body
209
}
210
 
211
//## Operation: haveProgressBar%42116E850298
212
const bool EvaluationContext::haveProgressBar () const
213
{
214
  //## begin EvaluationContext::haveProgressBar%42116E850298.body preserve=yes
215
 
216
	return ( m_progressBar != 0 );
217
 
218
  //## end EvaluationContext::haveProgressBar%42116E850298.body
219
}
220
 
221
//## Operation: haveSchemaElement%4212D7B702FF
222
const bool EvaluationContext::haveSchemaElement () const
223
{
224
  //## begin EvaluationContext::haveSchemaElement%4212D7B702FF.body preserve=yes
225
 
226
	return ( m_schemaElement != 0 );
227
 
228
  //## end EvaluationContext::haveSchemaElement%4212D7B702FF.body
229
}
230
 
231
//## Operation: haveSequenceCollection%421170BF0081
232
const bool EvaluationContext::haveSequenceCollection () const
233
{
234
  //## begin EvaluationContext::haveSequenceCollection%421170BF0081.body preserve=yes
235
 
236
	return ( m_sequences != 0 );
237
 
238
  //## end EvaluationContext::haveSequenceCollection%421170BF0081.body
239
}
240
 
241
//## Operation: haveSymbolTable%42116E8502B8
242
const bool EvaluationContext::haveSymbolTable () const
243
{
244
  //## begin EvaluationContext::haveSymbolTable%42116E8502B8.body preserve=yes
245
 
246
	return ( m_symbolTable != 0 );
247
 
248
  //## end EvaluationContext::haveSymbolTable%42116E8502B8.body
249
}
250
 
251
//## Operation: haveTransaction%42116E8502D7
252
const bool EvaluationContext::haveTransaction ()
253
{
254
  //## begin EvaluationContext::haveTransaction%42116E8502D7.body preserve=yes
255
 
256
	return ( m_transaction != 0 );
257
 
258
  //## end EvaluationContext::haveTransaction%42116E8502D7.body
259
}
260
 
261
//## Operation: setProgressBar%42116CAA01E5
262
void EvaluationContext::setProgressBar (ProgressBar& progressBar)
263
{
264
  //## begin EvaluationContext::setProgressBar%42116CAA01E5.body preserve=yes
265
 
266
	m_progressBar = &progressBar;
267
 
268
  //## end EvaluationContext::setProgressBar%42116CAA01E5.body
269
}
270
 
2222 sbetterm 271
//## Operation: setScenarioIndex%4236AD170299
272
void EvaluationContext::setScenarioIndex (const unsigned &value)
273
{
274
  //## begin EvaluationContext::setScenarioIndex%4236AD170299.body preserve=yes
275
 
276
	m_scenarioIndex = value;
277
 
278
  //## end EvaluationContext::setScenarioIndex%4236AD170299.body
279
}
280
 
2218 sbetterm 281
//## Operation: setSchemaElement%4212D7B7031F
282
void EvaluationContext::setSchemaElement (XMLSchema::IXmlSchemaWrapperElement &schemaElement)
283
{
284
  //## begin EvaluationContext::setSchemaElement%4212D7B7031F.body preserve=yes
285
 
286
	m_schemaElement = &schemaElement;
287
 
288
  //## end EvaluationContext::setSchemaElement%4212D7B7031F.body
289
}
290
 
291
//## Operation: setSequenceCollection%421170BF0091
292
void EvaluationContext::setSequenceCollection (SequenceCollection& sequenceCollection)
293
{
294
  //## begin EvaluationContext::setSequenceCollection%421170BF0091.body preserve=yes
295
 
296
	m_sequences = &sequenceCollection;
297
 
298
  //## end EvaluationContext::setSequenceCollection%421170BF0091.body
299
}
300
 
301
//## Operation: setSymbolTable%42116CA901B6
302
void EvaluationContext::setSymbolTable (DefinedVariableTable& symbolTable)
303
{
304
  //## begin EvaluationContext::setSymbolTable%42116CA901B6.body preserve=yes
305
 
306
	m_symbolTable = &symbolTable;
307
 
308
  //## end EvaluationContext::setSymbolTable%42116CA901B6.body
309
}
310
 
311
//## Operation: setTransaction%42116C60036C
312
void EvaluationContext::setTransaction (TransactionSpecification& transaction)
313
{
314
  //## begin EvaluationContext::setTransaction%42116C60036C.body preserve=yes
315
 
316
	m_transaction = &transaction;
317
 
318
  //## end EvaluationContext::setTransaction%42116C60036C.body
319
}
320
 
321
// Additional Declarations
322
  //## begin EvaluationContext%42116B3700AD.declarations preserve=yes
323
  //## end EvaluationContext%42116B3700AD.declarations
324
 
325
//## begin module%42116B3700AD.epilog preserve=yes
326
//## end module%42116B3700AD.epilog