Subversion Repositories DevTools

Rev

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%420310A60071.cm preserve=no
7
//## end module%420310A60071.cm
8
 
9
//## begin module%420310A60071.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%420310A60071.cp
19
 
20
//## Module: Iteration%420310A60071; Pseudo Package specification
21
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
22
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\Iteration.h
23
 
24
#ifndef Iteration_h
25
#define Iteration_h 1
26
 
27
//## begin module%420310A60071.additionalIncludes preserve=no
28
//## end module%420310A60071.additionalIncludes
29
 
30
//## begin module%420310A60071.includes preserve=yes
31
//## end module%420310A60071.includes
32
 
33
 
34
namespace XMLSchema {
35
class IXmlSchemaWrapperFactory;
36
class IXmlSchemaWrapperSchema;
37
} // namespace XMLSchema
38
 
39
class EvaluationContext;
40
class TransactionStream;
41
class TestScenario;
42
 
43
//## begin module%420310A60071.additionalDeclarations preserve=yes
44
#include <map>
45
#include <string>
46
#include <vector>
47
//## end module%420310A60071.additionalDeclarations
48
 
49
 
50
//## begin Iteration%420310A60071.preface preserve=yes
51
//## end Iteration%420310A60071.preface
52
 
53
//## Class: Iteration%420310A60071; private
54
//	An iteration.
55
//## Category: TransactionTestManager::Transaction Generation%4202F8EE0128
56
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
57
//## Persistence: Transient
58
//## Cardinality/Multiplicity: n
59
 
60
 
61
 
62
//## Uses: <unnamed>%42081A2300E3;TransactionStream { -> F}
63
//## Uses: <unnamed>%4208BF50034A;XMLSchema::IXmlSchemaWrapperString { -> }
64
//## Uses: <unnamed>%421173520074;EvaluationContext { -> F}
65
 
66
class Iteration 
67
{
68
  //## begin Iteration%420310A60071.initialDeclarations preserve=yes
69
  //## end Iteration%420310A60071.initialDeclarations
70
 
71
  public:
72
    //## Constructors (specified)
73
      //## Operation: Iteration%420311980081
74
      //	The only constructor.
75
      Iteration (const std::string &projectCode, 	// The project code to which this iteration belongs.
76
      const int &iteration, 	// The numeric identifier of this iteration.
77
      XMLSchema::IXmlSchemaWrapperFactory &factory, 	// The factory.  While we do not accept ownership over this instance, we do
78
      	// assume its validity for the remainder of our lifetime.
79
      XMLSchema::IXmlSchemaWrapperSchema &schema, 	// The schema.  While we do not accept ownership over this instance, we do
80
      	// assume its validity for the remainder of our lifetime.
81
      const std::string &schemaHandle	// The handle to the schema that we are using in this iteration.
82
      );
83
 
84
    //## Destructor (generated)
85
      virtual ~Iteration();
86
 
87
 
88
    //## Other Operations (specified)
89
      //## Operation: generate%42045A4D0198
90
      //	Generate the transactions for the scenarios defined for this iteration and
91
      //	evaluate to true, or to false when any transaction cannot be generated.
92
      const bool generate (TransactionStream& stream, 	// The stream into which to generate.
93
      const bool &generateHeaders, 	// When true, the transaction stream contains transaction header.  Otherwise,
94
      	// the transaction steam does not contain transaction headers.
95
      EvaluationContext& evaluationContext	// The evaluation context.
96
      );
97
 
98
      //## Operation: getFormatVersion%4208BDE6025B
99
      //	Evaluate to the format version of the schema for this iteration.
100
      const int getFormatVersion () const;
101
 
102
      //## Operation: getIterationId%4203119303AD
103
      //	Evaluate to the identifier of this iteration.
104
      const int & getIterationId () const;
105
 
106
      //## Operation: getProjectCode%4203118E02F2
107
      //	Evaluate to the project code of this iteration.
108
      const std::string & getProjectCode () const;
109
 
110
      //## Operation: getSchema%420460A8000E
111
      //	Evaluate to the schema.
112
      XMLSchema::IXmlSchemaWrapperSchema & getSchema () const;
113
 
114
      //## Operation: getSchemaWrapperFactory%42045F8B030B
115
      //	Evaluate to the factory.
116
      XMLSchema::IXmlSchemaWrapperFactory & getSchemaWrapperFactory () const;
117
 
118
      //## Operation: getTestScenario%420312AF031E
119
      //	Evaluate to the given test scenario.  When the test scenario doesn't already
120
      //	exist, create it.
121
      TestScenario& getTestScenario (const int &scenario	// The identity of the test scenario.
122
      );
123
 
124
      //## Operation: getTransactionCount%420890E2017C
125
      //	Evaluate to the number of transactions in this iteration.
126
      const unsigned getTransactionCount () const;
127
 
128
    // Additional Public Declarations
129
      //## begin Iteration%420310A60071.public preserve=yes
130
      //## end Iteration%420310A60071.public
131
 
132
  protected:
133
    // Additional Protected Declarations
134
      //## begin Iteration%420310A60071.protected preserve=yes
135
      //## end Iteration%420310A60071.protected
136
 
137
  private:
138
    //## Constructors (generated)
139
      Iteration();
140
 
141
      Iteration(const Iteration &right);
142
 
143
    //## Assignment Operation (generated)
144
      Iteration & operator=(const Iteration &right);
145
 
146
    // Data Members for Class Attributes
147
 
148
      //## Attribute: iteration%4203121C0255
149
      //	The numeric identifier of this iteration.
150
      //## begin Iteration::iteration%4203121C0255.attr preserve=no  private: int {VAC} 
151
      const int m_iteration;
152
      //## end Iteration::iteration%4203121C0255.attr
153
 
154
      //## Attribute: projectCode%4203121B0284
155
      //	The project code to which this iteration belongs.
156
      //## begin Iteration::projectCode%4203121B0284.attr preserve=no  private: std::string {VAC} 
157
      const std::string m_projectCode;
158
      //## end Iteration::projectCode%4203121B0284.attr
159
 
160
      //## Attribute: schemaHandle%42045F8E01A4
161
      //	The handle to the schema that we are using in this iteration.
162
      //## begin Iteration::schemaHandle%42045F8E01A4.attr preserve=no  private: std::string {VA} schemaHandle
163
      std::string m_schemaHandle;
164
      //## end Iteration::schemaHandle%42045F8E01A4.attr
165
 
166
    // Data Members for Associations
167
 
168
      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%4203130E01B6
169
      //## Role: Iteration::scenario%4203130E038B
170
      //	The collection of scenarios that have been defined for this iteration.
171
      //## Qualifier: scenario%4203132A033D; int
172
      //	The scenario.
173
      //## begin Iteration::scenario%4203130E038B.role preserve=no  private: TestScenario {1 -> 1RFHgAN}
174
      std::map<int, TestScenario *> m_scenario;
175
      //## end Iteration::scenario%4203130E038B.role
176
 
177
      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%42044D9D008F
178
      //## Role: Iteration::schema%42044D9D037D
179
      //	The schema.  While we do not accept ownership over this instance, we do
180
      //	assume its validity for the remainder of our lifetime.
181
      //## begin Iteration::schema%42044D9D037D.role preserve=no  private: XMLSchema::IXmlSchemaWrapperSchema {1 -> 1RFHAN}
182
      XMLSchema::IXmlSchemaWrapperSchema *m_schema;
183
      //## end Iteration::schema%42044D9D037D.role
184
 
185
      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%4204658D0094
186
      //## Role: Iteration::factory%4204658E0065
187
      //	The factory.  While we do not accept ownership over this instance, we do
188
      //	assume its validity for the remainder of our lifetime.
189
      //## begin Iteration::factory%4204658E0065.role preserve=no  private: XMLSchema::IXmlSchemaWrapperFactory {1 -> 1RFHAN}
190
      XMLSchema::IXmlSchemaWrapperFactory *m_factory;
191
      //## end Iteration::factory%4204658E0065.role
192
 
193
      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%42070E4700D3
194
      //## Role: Iteration::orderedScenarioCollection%42070E47024A
195
      //	The collection of scenarios in generation order.
196
      //## begin Iteration::orderedScenarioCollection%42070E47024A.role preserve=no  private: TestScenario {1 -> *RFHAN}
197
      std::vector< TestScenario * > m_orderedScenarioCollection;
198
      //## end Iteration::orderedScenarioCollection%42070E47024A.role
199
 
200
    // Additional Private Declarations
201
      //## begin Iteration%420310A60071.private preserve=yes
202
      //## end Iteration%420310A60071.private
203
 
204
  private: //## implementation
205
    // Additional Implementation Declarations
206
      //## begin Iteration%420310A60071.implementation preserve=yes
207
      //## end Iteration%420310A60071.implementation
208
 
209
};
210
 
211
//## begin Iteration%420310A60071.postscript preserve=yes
212
//## end Iteration%420310A60071.postscript
213
 
214
// Class Iteration 
215
 
216
//## begin module%420310A60071.epilog preserve=yes
217
//## end module%420310A60071.epilog
218
 
219
 
220
#endif