| 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%41FF0DE8006D.cm preserve=no
|
|
|
7 |
//## end module%41FF0DE8006D.cm
|
|
|
8 |
|
|
|
9 |
//## begin module%41FF0DE8006D.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%41FF0DE8006D.cp
|
|
|
19 |
|
|
|
20 |
//## Module: TestScenarioTemplate%41FF0DE8006D; Pseudo Package specification
|
|
|
21 |
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
|
|
|
22 |
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\TestScenarioTemplate.h
|
|
|
23 |
|
|
|
24 |
#ifndef TestScenarioTemplate_h
|
|
|
25 |
#define TestScenarioTemplate_h 1
|
|
|
26 |
|
|
|
27 |
//## begin module%41FF0DE8006D.additionalIncludes preserve=no
|
|
|
28 |
//## end module%41FF0DE8006D.additionalIncludes
|
|
|
29 |
|
|
|
30 |
//## begin module%41FF0DE8006D.includes preserve=yes
|
|
|
31 |
#include <map>
|
|
|
32 |
#include <string>
|
|
|
33 |
//## end module%41FF0DE8006D.includes
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
class TransactionFieldTemplate;
|
|
|
37 |
|
|
|
38 |
//## begin module%41FF0DE8006D.additionalDeclarations preserve=yes
|
|
|
39 |
//## end module%41FF0DE8006D.additionalDeclarations
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
//## begin TestScenarioTemplate%41FF0DE8006D.preface preserve=yes
|
|
|
43 |
//## end TestScenarioTemplate%41FF0DE8006D.preface
|
|
|
44 |
|
|
|
45 |
//## Class: TestScenarioTemplate%41FF0DE8006D; private
|
|
|
46 |
// A test scenario.
|
|
|
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 TestScenarioTemplate
|
|
|
55 |
{
|
|
|
56 |
//## begin TestScenarioTemplate%41FF0DE8006D.initialDeclarations preserve=yes
|
|
|
57 |
//## end TestScenarioTemplate%41FF0DE8006D.initialDeclarations
|
|
|
58 |
|
|
|
59 |
public:
|
|
|
60 |
//## Constructors (specified)
|
|
|
61 |
//## Operation: TestScenarioTemplate%41FF0F6F0398
|
|
|
62 |
// The only constructor.
|
|
|
63 |
TestScenarioTemplate (const int &scenario);
|
|
|
64 |
|
|
|
65 |
//## Destructor (generated)
|
|
|
66 |
virtual ~TestScenarioTemplate();
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
//## Other Operations (specified)
|
|
|
70 |
//## Operation: findMatch%41FF6BF70156
|
|
|
71 |
// Evaluate to the number of matches to the given XPath. As a side effect, the
|
|
|
72 |
// value is set to the value of the first match found.
|
|
|
73 |
const unsigned findMatch (std::string &value, // The value of the first match found.
|
|
|
74 |
const std::string &xpath // The XPath.
|
|
|
75 |
) const;
|
|
|
76 |
|
|
|
77 |
//## Operation: getField%41FF214B013F
|
|
|
78 |
// Evaluate to the given template field. When the field doesn't already exist,
|
|
|
79 |
// create it.
|
|
|
80 |
TransactionFieldTemplate& getField (const std::string ®ularExpression // The regular expression that defines to which fields the template may be
|
|
|
81 |
// applied.
|
|
|
82 |
);
|
|
|
83 |
|
|
|
84 |
//## Operation: getTemplateCount%41FF409A021F
|
|
|
85 |
// Evaluate to the number of templates for this scenario.
|
|
|
86 |
const unsigned getTemplateCount () const;
|
|
|
87 |
|
|
|
88 |
// Additional Public Declarations
|
|
|
89 |
//## begin TestScenarioTemplate%41FF0DE8006D.public preserve=yes
|
|
|
90 |
//## end TestScenarioTemplate%41FF0DE8006D.public
|
|
|
91 |
|
|
|
92 |
protected:
|
|
|
93 |
// Additional Protected Declarations
|
|
|
94 |
//## begin TestScenarioTemplate%41FF0DE8006D.protected preserve=yes
|
|
|
95 |
//## end TestScenarioTemplate%41FF0DE8006D.protected
|
|
|
96 |
|
|
|
97 |
private:
|
|
|
98 |
//## Constructors (generated)
|
|
|
99 |
TestScenarioTemplate();
|
|
|
100 |
|
|
|
101 |
TestScenarioTemplate(const TestScenarioTemplate &right);
|
|
|
102 |
|
|
|
103 |
//## Assignment Operation (generated)
|
|
|
104 |
TestScenarioTemplate & operator=(const TestScenarioTemplate &right);
|
|
|
105 |
|
|
|
106 |
// Data Members for Class Attributes
|
|
|
107 |
|
|
|
108 |
//## Attribute: scenario%41FF0F5F00D9
|
|
|
109 |
// The transaction specification number of this transaction.
|
|
|
110 |
//## begin TestScenarioTemplate::scenario%41FF0F5F00D9.attr preserve=no private: int {VAC}
|
|
|
111 |
const int m_scenario;
|
|
|
112 |
//## end TestScenarioTemplate::scenario%41FF0F5F00D9.attr
|
|
|
113 |
|
|
|
114 |
// Data Members for Associations
|
|
|
115 |
|
|
|
116 |
//## Association: TransactionTestManager::Transaction Templates::<unnamed>%41FF0BD90286
|
|
|
117 |
//## Role: TestScenarioTemplate::fieldTemplate%41FF0BDA0034
|
|
|
118 |
// The collection of field templates that have been defined for this
|
|
|
119 |
// transaction.
|
|
|
120 |
//## Qualifier: regularExpression%41FF24C5029E; std::string
|
|
|
121 |
// The regular expression that defines to which fields this template applies.
|
|
|
122 |
//## begin TestScenarioTemplate::fieldTemplate%41FF0BDA0034.role preserve=no private: TransactionFieldTemplate {1 -> 1RFHgAN}
|
|
|
123 |
std::map<std::string, TransactionFieldTemplate *> m_fieldTemplate;
|
|
|
124 |
//## end TestScenarioTemplate::fieldTemplate%41FF0BDA0034.role
|
|
|
125 |
|
|
|
126 |
// Additional Private Declarations
|
|
|
127 |
//## begin TestScenarioTemplate%41FF0DE8006D.private preserve=yes
|
|
|
128 |
//## end TestScenarioTemplate%41FF0DE8006D.private
|
|
|
129 |
|
|
|
130 |
private: //## implementation
|
|
|
131 |
// Additional Implementation Declarations
|
|
|
132 |
//## begin TestScenarioTemplate%41FF0DE8006D.implementation preserve=yes
|
|
|
133 |
//## end TestScenarioTemplate%41FF0DE8006D.implementation
|
|
|
134 |
|
|
|
135 |
};
|
|
|
136 |
|
|
|
137 |
//## begin TestScenarioTemplate%41FF0DE8006D.postscript preserve=yes
|
|
|
138 |
//## end TestScenarioTemplate%41FF0DE8006D.postscript
|
|
|
139 |
|
|
|
140 |
// Class TestScenarioTemplate
|
|
|
141 |
|
|
|
142 |
//## begin module%41FF0DE8006D.epilog preserve=yes
|
|
|
143 |
//## end module%41FF0DE8006D.epilog
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
#endif
|