| 2263 |
kivins |
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%41FDA1530338.cm preserve=no
|
|
|
7 |
//## end module%41FDA1530338.cm
|
|
|
8 |
|
|
|
9 |
//## begin module%41FDA1530338.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%41FDA1530338.cp
|
|
|
19 |
|
|
|
20 |
//## Module: TransactionTemplateCollection%41FDA1530338; Pseudo Package specification
|
|
|
21 |
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
|
|
|
22 |
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\TransactionTemplateCollection.h
|
|
|
23 |
|
|
|
24 |
#ifndef TransactionTemplateCollection_h
|
|
|
25 |
#define TransactionTemplateCollection_h 1
|
|
|
26 |
|
|
|
27 |
//## begin module%41FDA1530338.additionalIncludes preserve=no
|
|
|
28 |
//## end module%41FDA1530338.additionalIncludes
|
|
|
29 |
|
|
|
30 |
//## begin module%41FDA1530338.includes preserve=yes
|
|
|
31 |
//## end module%41FDA1530338.includes
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
class TestScenarioTemplate;
|
|
|
35 |
|
|
|
36 |
//## begin module%41FDA1530338.additionalDeclarations preserve=yes
|
|
|
37 |
//## end module%41FDA1530338.additionalDeclarations
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
//## begin TransactionTemplateCollection%41FDA1530338.preface preserve=yes
|
|
|
41 |
//## end TransactionTemplateCollection%41FDA1530338.preface
|
|
|
42 |
|
|
|
43 |
//## Class: TransactionTemplateCollection%41FDA1530338; private
|
|
|
44 |
// This class defines a collection of transaction templates. A template is
|
|
|
45 |
// applied to a transaction to provide values to fields, without having to
|
|
|
46 |
// enter a value on a field-by-field basis.
|
|
|
47 |
//## Category: TransactionTestManager::Transaction Templates%41FDA12000E7
|
|
|
48 |
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
|
|
|
49 |
//## Persistence: Transient
|
|
|
50 |
//## Cardinality/Multiplicity: n
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
class TransactionTemplateCollection
|
|
|
55 |
{
|
|
|
56 |
//## begin TransactionTemplateCollection%41FDA1530338.initialDeclarations preserve=yes
|
|
|
57 |
//## end TransactionTemplateCollection%41FDA1530338.initialDeclarations
|
|
|
58 |
|
|
|
59 |
public:
|
|
|
60 |
//## Constructors (generated)
|
|
|
61 |
TransactionTemplateCollection();
|
|
|
62 |
|
|
|
63 |
//## Destructor (generated)
|
|
|
64 |
virtual ~TransactionTemplateCollection();
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
//## Other Operations (specified)
|
|
|
68 |
//## Operation: clear%41FF37BC037C
|
|
|
69 |
// Clear this instance.
|
|
|
70 |
void clear ();
|
|
|
71 |
|
|
|
72 |
//## Operation: findTestScenarioTemplate%41FF6B0502AD
|
|
|
73 |
// Evaluate to the address of the given transaction. When the transaction
|
|
|
74 |
// doesn't exist, evaluate to 0. Ownership over the addressed object remains
|
|
|
75 |
// with the collection.
|
|
|
76 |
TestScenarioTemplate* findTestScenarioTemplate (const int &scenario) const;
|
|
|
77 |
|
|
|
78 |
//## Operation: getTemplateCount%41FF47240341
|
|
|
79 |
// Evaluate to the number of templates for this scenario.
|
|
|
80 |
const unsigned getTemplateCount () const;
|
|
|
81 |
|
|
|
82 |
//## Operation: getTestScenario%41FF20EA00B3
|
|
|
83 |
// Evaluate to the given transaction. When the transaction doesn't already
|
|
|
84 |
// exist, create it.
|
|
|
85 |
TestScenarioTemplate& getTestScenario (const int &scenario);
|
|
|
86 |
|
|
|
87 |
//## Operation: haveTemplatesForScenario%41FF3FF8006A
|
|
|
88 |
// Evaluate to true when templates exist for the given scenario. Note that
|
|
|
89 |
// scenario 0 applies to all scenarios.
|
|
|
90 |
const bool haveTemplatesForScenario (const int &scenario // The scenario.
|
|
|
91 |
) const;
|
|
|
92 |
|
|
|
93 |
//## Operation: isTestScenarioContained%41FF6A27039E
|
|
|
94 |
// Evaluate to true when the given transaction is contained, and to false
|
|
|
95 |
// otherwise.
|
|
|
96 |
const bool isTestScenarioContained (const int &scenario);
|
|
|
97 |
|
|
|
98 |
// Additional Public Declarations
|
|
|
99 |
//## begin TransactionTemplateCollection%41FDA1530338.public preserve=yes
|
|
|
100 |
//## end TransactionTemplateCollection%41FDA1530338.public
|
|
|
101 |
|
|
|
102 |
protected:
|
|
|
103 |
// Additional Protected Declarations
|
|
|
104 |
//## begin TransactionTemplateCollection%41FDA1530338.protected preserve=yes
|
|
|
105 |
//## end TransactionTemplateCollection%41FDA1530338.protected
|
|
|
106 |
|
|
|
107 |
private:
|
|
|
108 |
//## Constructors (generated)
|
|
|
109 |
TransactionTemplateCollection(const TransactionTemplateCollection &right);
|
|
|
110 |
|
|
|
111 |
//## Assignment Operation (generated)
|
|
|
112 |
TransactionTemplateCollection & operator=(const TransactionTemplateCollection &right);
|
|
|
113 |
|
|
|
114 |
// Data Members for Associations
|
|
|
115 |
|
|
|
116 |
//## Association: TransactionTestManager::Transaction Templates::<unnamed>%41FDA31F005A
|
|
|
117 |
//## Role: TransactionTemplateCollection::scenario%41FDA31F01D1
|
|
|
118 |
// The scenarios for which templates have been defined. Scenario 0 identifies
|
|
|
119 |
// identifies templates that are defined for all scenarios.
|
|
|
120 |
//## Qualifier: scenario%41FDA333005A; int
|
|
|
121 |
// The scenario.
|
|
|
122 |
//## begin TransactionTemplateCollection::scenario%41FDA31F01D1.role preserve=no private: TestScenarioTemplate {1 -> 1RFHgAN}
|
|
|
123 |
std::map<int, TestScenarioTemplate *> m_scenario;
|
|
|
124 |
//## end TransactionTemplateCollection::scenario%41FDA31F01D1.role
|
|
|
125 |
|
|
|
126 |
// Additional Private Declarations
|
|
|
127 |
//## begin TransactionTemplateCollection%41FDA1530338.private preserve=yes
|
|
|
128 |
//## end TransactionTemplateCollection%41FDA1530338.private
|
|
|
129 |
|
|
|
130 |
private: //## implementation
|
|
|
131 |
// Additional Implementation Declarations
|
|
|
132 |
//## begin TransactionTemplateCollection%41FDA1530338.implementation preserve=yes
|
|
|
133 |
//## end TransactionTemplateCollection%41FDA1530338.implementation
|
|
|
134 |
|
|
|
135 |
};
|
|
|
136 |
|
|
|
137 |
//## begin TransactionTemplateCollection%41FDA1530338.postscript preserve=yes
|
|
|
138 |
//## end TransactionTemplateCollection%41FDA1530338.postscript
|
|
|
139 |
|
|
|
140 |
// Class TransactionTemplateCollection
|
|
|
141 |
|
|
|
142 |
//## begin module%41FDA1530338.epilog preserve=yes
|
|
|
143 |
//## end module%41FDA1530338.epilog
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
#endif
|