Subversion Repositories DevTools

Rev

Rev 2218 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2218 Rev 2222
Line 25... Line 25...
25
//## end module%42116B3700AD.additionalIncludes
25
//## end module%42116B3700AD.additionalIncludes
26
 
26
 
27
//## begin module%42116B3700AD.includes preserve=yes
27
//## begin module%42116B3700AD.includes preserve=yes
28
//## end module%42116B3700AD.includes
28
//## end module%42116B3700AD.includes
29
 
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
30
// DefinedVariableTable
39
#include "DefinedVariableTable.h"
31
#include "DefinedVariableTable.h"
40
// EvaluationContext
32
// SequenceCollection
41
#include "EvaluationContext.h"
33
#include "SequenceCollection.h"
42
// TimeEstimate
34
// TimeEstimate
43
#include "TimeEstimate.h"
35
#include "TimeEstimate.h"
44
// ProgressBar
36
// ProgressBar
45
#include "ProgressBar.h"
37
#include "ProgressBar.h"
-
 
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"
46
//## begin module%42116B3700AD.additionalDeclarations preserve=yes
48
//## begin module%42116B3700AD.additionalDeclarations preserve=yes
47
//## end module%42116B3700AD.additionalDeclarations
49
//## end module%42116B3700AD.additionalDeclarations
48
 
50
 
49
 
51
 
50
// Class EvaluationContext 
52
// Class EvaluationContext 
51
 
53
 
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
54
//## Operation: EvaluationContext%42116FD901D9
70
EvaluationContext::EvaluationContext (DefinedVariableTable& symbolTable, SequenceCollection& sequences, ProgressBar& progressBar, IMessageDigest* messageDigest, TimeEstimate& timeEstimate)
55
EvaluationContext::EvaluationContext (DefinedVariableTable& symbolTable, SequenceCollection& sequences, ProgressBar& progressBar, IMessageDigest* messageDigest, ICryptographicServerProxy* cryptographicServer, TimeEstimate& timeEstimate)
71
  //## begin EvaluationContext::EvaluationContext%42116FD901D9.hasinit preserve=no
56
  //## begin EvaluationContext::EvaluationContext%42116FD901D9.hasinit preserve=no
-
 
57
      : m_scenarioIndex(0),
72
      : m_transaction(0),
58
        m_transaction(0),
73
        m_symbolTable(0),
59
        m_symbolTable(0),
74
        m_progressBar(0),
60
        m_progressBar(0),
75
        m_sequences(0),
61
        m_sequences(0),
76
        m_estimate(0),
62
        m_estimate(0),
77
        m_digest(0),
63
        m_digest(0),
78
        m_schemaElement(0)
64
        m_schemaElement(0),
-
 
65
        m_cryptographicServer(0)
79
  //## end EvaluationContext::EvaluationContext%42116FD901D9.hasinit
66
  //## end EvaluationContext::EvaluationContext%42116FD901D9.hasinit
80
  //## begin EvaluationContext::EvaluationContext%42116FD901D9.initialization preserve=yes
67
  //## begin EvaluationContext::EvaluationContext%42116FD901D9.initialization preserve=yes
81
  //## end EvaluationContext::EvaluationContext%42116FD901D9.initialization
68
  //## end EvaluationContext::EvaluationContext%42116FD901D9.initialization
82
{
69
{
83
  //## begin EvaluationContext::EvaluationContext%42116FD901D9.body preserve=yes
70
  //## begin EvaluationContext::EvaluationContext%42116FD901D9.body preserve=yes
84
 
71
 
-
 
72
	m_cryptographicServer	= cryptographicServer;
85
	m_digest		= messageDigest;
73
	m_digest				= messageDigest;
86
	m_estimate		= &timeEstimate;
74
	m_estimate				= &timeEstimate;
87
	m_symbolTable	= &symbolTable;
75
	m_symbolTable			= &symbolTable;
88
	m_progressBar	= &progressBar;
76
	m_progressBar			= &progressBar;
89
	m_sequences		= &sequences;
77
	m_sequences				= &sequences;
90
 
78
 
91
  //## end EvaluationContext::EvaluationContext%42116FD901D9.body
79
  //## end EvaluationContext::EvaluationContext%42116FD901D9.body
92
}
80
}
93
 
81
 
94
 
82
 
95
EvaluationContext::~EvaluationContext()
83
EvaluationContext::~EvaluationContext()
96
{
84
{
97
  //## begin EvaluationContext::~EvaluationContext%42116B3700AD_dest.body preserve=yes
85
  //## begin EvaluationContext::~EvaluationContext%42116B3700AD_dest.body preserve=yes
98
 
86
 
99
	m_transaction	= 0;	// We don't own this.
87
	m_transaction			= 0;	// We don't own this.
100
	m_symbolTable	= 0;	// We don't own this.
88
	m_symbolTable			= 0;	// We don't own this.
101
	m_schemaElement	= 0;	// We don't own this.
89
	m_schemaElement			= 0;	// We don't own this.
102
	m_progressBar	= 0;	// We don't own this.
90
	m_progressBar			= 0;	// We don't own this.
103
	m_estimate		= 0;    // We don't own this.
91
	m_estimate				= 0;    // We don't own this.
104
	m_digest		= 0;	// We don't own this.
92
	m_digest				= 0;	// We don't own this.
-
 
93
	m_cryptographicServer	= 0;	// We don't own this.
105
 
94
 
106
  //## end EvaluationContext::~EvaluationContext%42116B3700AD_dest.body
95
  //## end EvaluationContext::~EvaluationContext%42116B3700AD_dest.body
107
}
96
}
108
 
97
 
109
 
98
 
110
 
99
 
111
//## Other Operations (implementation)
100
//## Other Operations (implementation)
-
 
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
 
112
//## Operation: getMessageDigest%4211C6C901B5
111
//## Operation: getMessageDigest%4211C6C901B5
113
IMessageDigest& EvaluationContext::getMessageDigest ()
112
IMessageDigest& EvaluationContext::getMessageDigest ()
114
{
113
{
115
  //## begin EvaluationContext::getMessageDigest%4211C6C901B5.body preserve=yes
114
  //## begin EvaluationContext::getMessageDigest%4211C6C901B5.body preserve=yes
116
 
115
 
Line 127... Line 126...
127
	return ( *m_progressBar );
126
	return ( *m_progressBar );
128
 
127
 
129
  //## end EvaluationContext::getProgressBar%42116CAA0204.body
128
  //## end EvaluationContext::getProgressBar%42116CAA0204.body
130
}
129
}
131
 
130
 
-
 
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
 
132
//## Operation: getSchemaElement%4212D7B702C1
141
//## Operation: getSchemaElement%4212D7B702C1
133
XMLSchema::IXmlSchemaWrapperElement & EvaluationContext::getSchemaElement ()
142
XMLSchema::IXmlSchemaWrapperElement & EvaluationContext::getSchemaElement ()
134
{
143
{
135
  //## begin EvaluationContext::getSchemaElement%4212D7B702C1.body preserve=yes
144
  //## begin EvaluationContext::getSchemaElement%4212D7B702C1.body preserve=yes
136
 
145
 
Line 177... Line 186...
177
	return ( *m_transaction );
186
	return ( *m_transaction );
178
 
187
 
179
  //## end EvaluationContext::getTransaction%42116C8703D9.body
188
  //## end EvaluationContext::getTransaction%42116C8703D9.body
180
}
189
}
181
 
190
 
-
 
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
 
182
//## Operation: haveMessageDigest%4211C6ED01C4
201
//## Operation: haveMessageDigest%4211C6ED01C4
183
const bool EvaluationContext::haveMessageDigest () const
202
const bool EvaluationContext::haveMessageDigest () const
184
{
203
{
185
  //## begin EvaluationContext::haveMessageDigest%4211C6ED01C4.body preserve=yes
204
  //## begin EvaluationContext::haveMessageDigest%4211C6ED01C4.body preserve=yes
186
 
205
 
Line 247... Line 266...
247
	m_progressBar = &progressBar;
266
	m_progressBar = &progressBar;
248
 
267
 
249
  //## end EvaluationContext::setProgressBar%42116CAA01E5.body
268
  //## end EvaluationContext::setProgressBar%42116CAA01E5.body
250
}
269
}
251
 
270
 
-
 
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
 
252
//## Operation: setSchemaElement%4212D7B7031F
281
//## Operation: setSchemaElement%4212D7B7031F
253
void EvaluationContext::setSchemaElement (XMLSchema::IXmlSchemaWrapperElement &schemaElement)
282
void EvaluationContext::setSchemaElement (XMLSchema::IXmlSchemaWrapperElement &schemaElement)
254
{
283
{
255
  //## begin EvaluationContext::setSchemaElement%4212D7B7031F.body preserve=yes
284
  //## begin EvaluationContext::setSchemaElement%4212D7B7031F.body preserve=yes
256
 
285