| 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%41FDA5210143.cm preserve=no
|
|
|
7 |
//## end module%41FDA5210143.cm
|
|
|
8 |
|
|
|
9 |
//## begin module%41FDA5210143.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%41FDA5210143.cp
|
|
|
19 |
|
|
|
20 |
//## Module: TransactionFieldTemplate%41FDA5210143; Pseudo Package specification
|
|
|
21 |
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
|
|
|
22 |
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\TransactionFieldTemplate.h
|
|
|
23 |
|
|
|
24 |
#ifndef TransactionFieldTemplate_h
|
|
|
25 |
#define TransactionFieldTemplate_h 1
|
|
|
26 |
|
|
|
27 |
//## begin module%41FDA5210143.additionalIncludes preserve=no
|
|
|
28 |
//## end module%41FDA5210143.additionalIncludes
|
|
|
29 |
|
|
|
30 |
//## begin module%41FDA5210143.includes preserve=yes
|
|
|
31 |
#include <pcreposix.h>
|
|
|
32 |
#include <string>
|
|
|
33 |
//## end module%41FDA5210143.includes
|
|
|
34 |
|
|
|
35 |
//## begin module%41FDA5210143.additionalDeclarations preserve=yes
|
|
|
36 |
//## end module%41FDA5210143.additionalDeclarations
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
//## begin TransactionFieldTemplate%41FDA5210143.preface preserve=yes
|
|
|
40 |
//## end TransactionFieldTemplate%41FDA5210143.preface
|
|
|
41 |
|
|
|
42 |
//## Class: TransactionFieldTemplate%41FDA5210143; private
|
|
|
43 |
// This class represents a transaction field template. Values for fields may
|
|
|
44 |
// be specified as constant values, variables or functions.
|
|
|
45 |
//## Category: TransactionTestManager::Transaction Templates%41FDA12000E7
|
|
|
46 |
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
|
|
|
47 |
//## Persistence: Transient
|
|
|
48 |
//## Cardinality/Multiplicity: n
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
|
52 |
class TransactionFieldTemplate
|
|
|
53 |
{
|
|
|
54 |
//## begin TransactionFieldTemplate%41FDA5210143.initialDeclarations preserve=yes
|
|
|
55 |
//## end TransactionFieldTemplate%41FDA5210143.initialDeclarations
|
|
|
56 |
|
|
|
57 |
public:
|
|
|
58 |
//## Constructors (specified)
|
|
|
59 |
//## Operation: TransactionFieldTemplate%41FF0D770177
|
|
|
60 |
// This constructor takes values for all attributes.
|
|
|
61 |
TransactionFieldTemplate (const std::string ®ularExpression // The regular expression that defines to which fields this template may be
|
|
|
62 |
// applied.
|
|
|
63 |
);
|
|
|
64 |
|
|
|
65 |
//## Operation: TransactionFieldTemplate%41FF272F013A
|
|
|
66 |
// This constructor creates a null instance, with only the key elaborated.
|
|
|
67 |
TransactionFieldTemplate (const std::string ®ularExpression, // The regular expression that defines to which fields this template may be
|
|
|
68 |
// applied.
|
|
|
69 |
const std::string &value // The value of this field template.
|
|
|
70 |
);
|
|
|
71 |
|
|
|
72 |
//## Destructor (generated)
|
|
|
73 |
virtual ~TransactionFieldTemplate();
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
//## Other Operations (specified)
|
|
|
77 |
//## Operation: getValue%41FF21A6017E
|
|
|
78 |
// Evaluate to the value of this field.
|
|
|
79 |
const std::string & getValue () const;
|
|
|
80 |
|
|
|
81 |
//## Operation: isMatch%41FF654E035B
|
|
|
82 |
// Evaluate to true when the given XPath is a match for this template, and to
|
|
|
83 |
// false otherwise.
|
|
|
84 |
const bool isMatch (const std::string &xpath // The XPath.
|
|
|
85 |
) const;
|
|
|
86 |
|
|
|
87 |
//## Operation: setValue%41FF2F7C003C
|
|
|
88 |
// Set the value of this field to the given value and evaluate to it.
|
|
|
89 |
const std::string & setValue (const std::string &value // The value.
|
|
|
90 |
);
|
|
|
91 |
|
|
|
92 |
// Additional Public Declarations
|
|
|
93 |
//## begin TransactionFieldTemplate%41FDA5210143.public preserve=yes
|
|
|
94 |
//## end TransactionFieldTemplate%41FDA5210143.public
|
|
|
95 |
|
|
|
96 |
protected:
|
|
|
97 |
// Additional Protected Declarations
|
|
|
98 |
//## begin TransactionFieldTemplate%41FDA5210143.protected preserve=yes
|
|
|
99 |
//## end TransactionFieldTemplate%41FDA5210143.protected
|
|
|
100 |
|
|
|
101 |
private:
|
|
|
102 |
//## Constructors (generated)
|
|
|
103 |
TransactionFieldTemplate();
|
|
|
104 |
|
|
|
105 |
TransactionFieldTemplate(const TransactionFieldTemplate &right);
|
|
|
106 |
|
|
|
107 |
//## Assignment Operation (generated)
|
|
|
108 |
TransactionFieldTemplate & operator=(const TransactionFieldTemplate &right);
|
|
|
109 |
|
|
|
110 |
// Data Members for Class Attributes
|
|
|
111 |
|
|
|
112 |
//## Attribute: compiledRegularExpression%41FF604A0339
|
|
|
113 |
// The compiled regular expression.
|
|
|
114 |
//## begin TransactionFieldTemplate::compiledRegularExpression%41FF604A0339.attr preserve=no private: regex_t {RAM} 0
|
|
|
115 |
mutable regex_t *m_compiledRegularExpression;
|
|
|
116 |
//## end TransactionFieldTemplate::compiledRegularExpression%41FF604A0339.attr
|
|
|
117 |
|
|
|
118 |
//## Attribute: regularExpression%41FF0CA9009C
|
|
|
119 |
// The regular expression that defines to which fields this template may be
|
|
|
120 |
// applied.
|
|
|
121 |
//## begin TransactionFieldTemplate::regularExpression%41FF0CA9009C.attr preserve=no private: std::string {VAC}
|
|
|
122 |
const std::string m_regularExpression;
|
|
|
123 |
//## end TransactionFieldTemplate::regularExpression%41FF0CA9009C.attr
|
|
|
124 |
|
|
|
125 |
//## Attribute: value%41FF0CDF01D5
|
|
|
126 |
// The value of this field template.
|
|
|
127 |
//## begin TransactionFieldTemplate::value%41FF0CDF01D5.attr preserve=no private: std::string {VA}
|
|
|
128 |
std::string m_value;
|
|
|
129 |
//## end TransactionFieldTemplate::value%41FF0CDF01D5.attr
|
|
|
130 |
|
|
|
131 |
// Additional Private Declarations
|
|
|
132 |
//## begin TransactionFieldTemplate%41FDA5210143.private preserve=yes
|
|
|
133 |
//## end TransactionFieldTemplate%41FDA5210143.private
|
|
|
134 |
|
|
|
135 |
private: //## implementation
|
|
|
136 |
// Additional Implementation Declarations
|
|
|
137 |
//## begin TransactionFieldTemplate%41FDA5210143.implementation preserve=yes
|
|
|
138 |
//## end TransactionFieldTemplate%41FDA5210143.implementation
|
|
|
139 |
|
|
|
140 |
};
|
|
|
141 |
|
|
|
142 |
//## begin TransactionFieldTemplate%41FDA5210143.postscript preserve=yes
|
|
|
143 |
//## end TransactionFieldTemplate%41FDA5210143.postscript
|
|
|
144 |
|
|
|
145 |
// Class TransactionFieldTemplate
|
|
|
146 |
|
|
|
147 |
//## begin module%41FDA5210143.epilog preserve=yes
|
|
|
148 |
//## end module%41FDA5210143.epilog
|
|
|
149 |
|
|
|
150 |
|
|
|
151 |
#endif
|