Subversion Repositories DevTools

Rev

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