| 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%4212D05100DB.cm preserve=no
|
|
|
7 |
//## end module%4212D05100DB.cm
|
|
|
8 |
|
|
|
9 |
//## begin module%4212D05100DB.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%4212D05100DB.cp
|
|
|
19 |
|
|
|
20 |
//## Module: MacCallback%4212D05100DB; Pseudo Package specification
|
|
|
21 |
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
|
|
|
22 |
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\MacCallback.h
|
|
|
23 |
|
|
|
24 |
#ifndef MacCallback_h
|
|
|
25 |
#define MacCallback_h 1
|
|
|
26 |
|
|
|
27 |
//## begin module%4212D05100DB.additionalIncludes preserve=no
|
|
|
28 |
//## end module%4212D05100DB.additionalIncludes
|
|
|
29 |
|
|
|
30 |
//## begin module%4212D05100DB.includes preserve=yes
|
|
|
31 |
#include <vcl.h>
|
|
|
32 |
#pragma hdrstop
|
|
|
33 |
//## end module%4212D05100DB.includes
|
|
|
34 |
|
|
|
35 |
// IXmlSchemaWrapperTraversalCallback
|
|
|
36 |
#include "IXmlSchemaWrapperTraversalCallback.h"
|
|
|
37 |
|
|
|
38 |
namespace XMLSchema {
|
|
|
39 |
class IXmlSchemaWrapperString;
|
|
|
40 |
class IXmlSchemaWrapperByteArray;
|
|
|
41 |
} // namespace XMLSchema
|
|
|
42 |
|
|
|
43 |
class IMessageDigest;
|
|
|
44 |
class EvaluationContext;
|
|
|
45 |
|
|
|
46 |
//## begin module%4212D05100DB.additionalDeclarations preserve=yes
|
|
|
47 |
//## end module%4212D05100DB.additionalDeclarations
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
//## begin MacCallback%4212D05100DB.preface preserve=yes
|
|
|
51 |
//## end MacCallback%4212D05100DB.preface
|
|
|
52 |
|
|
|
53 |
//## Class: MacCallback%4212D05100DB; private
|
|
|
54 |
// Instances of this class represent the callback context for traversals of the
|
|
|
55 |
// schema that compute the MAC for structures.
|
|
|
56 |
//## Category: TransactionTestManager::Transaction Generation%4202F8EE0128
|
|
|
57 |
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
|
|
|
58 |
//## Persistence: Transient
|
|
|
59 |
//## Cardinality/Multiplicity: n
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
//## Uses: <unnamed>%4212EFBE011E;XMLSchema::IXmlSchemaWrapperElement { -> }
|
|
|
64 |
//## Uses: <unnamed>%4212F5170132;TransactionSpecification { -> }
|
|
|
65 |
//## Uses: <unnamed>%4212F51D03A3;TestScenario { -> }
|
|
|
66 |
//## Uses: <unnamed>%4212F5240077;Iteration { -> }
|
|
|
67 |
//## Uses: <unnamed>%4212F550013F;XMLSchema::IXmlSchemaWrapperFactory { -> }
|
|
|
68 |
//## Uses: <unnamed>%4213194E027E;TransactionStructure { -> }
|
|
|
69 |
|
|
|
70 |
class MacCallback : virtual public XMLSchema::IXmlSchemaWrapperTraversalCallback //## Inherits: <unnamed>%4212D10F01A7
|
|
|
71 |
{
|
|
|
72 |
//## begin MacCallback%4212D05100DB.initialDeclarations preserve=yes
|
|
|
73 |
//## end MacCallback%4212D05100DB.initialDeclarations
|
|
|
74 |
|
|
|
75 |
public:
|
|
|
76 |
//## Constructors (specified)
|
|
|
77 |
//## Operation: MacCallback%4212D08F0291
|
|
|
78 |
// The only constructor.
|
|
|
79 |
MacCallback (EvaluationContext& evaluationContext, XMLSchema::IXmlSchemaWrapperByteArray &value // The byte array that may be used to read the value of schema elements.
|
|
|
80 |
// While we do not accept ownership over this object, we do assume its
|
|
|
81 |
// validity for the remainder of our lifetime.
|
|
|
82 |
);
|
|
|
83 |
|
|
|
84 |
//## Destructor (generated)
|
|
|
85 |
virtual ~MacCallback();
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
//## Other Operations (specified)
|
|
|
89 |
//## Operation: traverseElement%4212D08F02CF
|
|
|
90 |
// Visiting the given schema element in a traversal. Evaluate to true when the
|
|
|
91 |
// traversal is to continue, and to false otherwise.
|
|
|
92 |
virtual const bool XSW_STDCALL traverseElement (XMLSchema::IXmlSchemaWrapperElement& element // The schema element being visited.
|
|
|
93 |
);
|
|
|
94 |
|
|
|
95 |
// Additional Public Declarations
|
|
|
96 |
//## begin MacCallback%4212D05100DB.public preserve=yes
|
|
|
97 |
//## end MacCallback%4212D05100DB.public
|
|
|
98 |
|
|
|
99 |
protected:
|
|
|
100 |
// Additional Protected Declarations
|
|
|
101 |
//## begin MacCallback%4212D05100DB.protected preserve=yes
|
|
|
102 |
//## end MacCallback%4212D05100DB.protected
|
|
|
103 |
|
|
|
104 |
private:
|
|
|
105 |
//## Constructors (generated)
|
|
|
106 |
MacCallback();
|
|
|
107 |
|
|
|
108 |
MacCallback(const MacCallback &right);
|
|
|
109 |
|
|
|
110 |
//## Assignment Operation (generated)
|
|
|
111 |
MacCallback & operator=(const MacCallback &right);
|
|
|
112 |
|
|
|
113 |
// Data Members for Class Attributes
|
|
|
114 |
|
|
|
115 |
//## Attribute: isInMac%4212F476023C
|
|
|
116 |
// The value that inMac must have for the field to be included in the MAC.
|
|
|
117 |
//## begin MacCallback::isInMac%4212F476023C.attr preserve=no private: static AnsiString {VAC} "true"
|
|
|
118 |
static const AnsiString g_isInMac;
|
|
|
119 |
//## end MacCallback::isInMac%4212F476023C.attr
|
|
|
120 |
|
|
|
121 |
// Data Members for Associations
|
|
|
122 |
|
|
|
123 |
//## Association: TransactionTestManager::Transaction Generation::<unnamed>%4212ECC4032F
|
|
|
124 |
//## Role: MacCallback::digest%4212ECC5036E
|
|
|
125 |
// The digest.
|
|
|
126 |
//## begin MacCallback::digest%4212ECC5036E.role preserve=no private: IMessageDigest {1 -> 1RFHAN}
|
|
|
127 |
IMessageDigest *m_digest;
|
|
|
128 |
//## end MacCallback::digest%4212ECC5036E.role
|
|
|
129 |
|
|
|
130 |
//## Association: TransactionTestManager::Transaction Generation::<unnamed>%4212EE4301F9
|
|
|
131 |
//## Role: MacCallback::value%4212EE44014D
|
|
|
132 |
// The byte array that may be used to read the value of schema elements. While
|
|
|
133 |
// we do not accept ownership over this object, we do assume its validity for
|
|
|
134 |
// the remainder of our lifetime.
|
|
|
135 |
//## begin MacCallback::value%4212EE44014D.role preserve=no private: XMLSchema::IXmlSchemaWrapperByteArray {1 -> 1RFHAN}
|
|
|
136 |
XMLSchema::IXmlSchemaWrapperByteArray *m_value;
|
|
|
137 |
//## end MacCallback::value%4212EE44014D.role
|
|
|
138 |
|
|
|
139 |
//## Association: TransactionTestManager::Transaction Generation::<unnamed>%4212F20600EB
|
|
|
140 |
//## Role: MacCallback::string%4212F206031D
|
|
|
141 |
// The string that we use to read property values.
|
|
|
142 |
//## begin MacCallback::string%4212F206031D.role preserve=no private: XMLSchema::IXmlSchemaWrapperString {1 -> 1RFHgAN}
|
|
|
143 |
XMLSchema::IXmlSchemaWrapperString *m_string;
|
|
|
144 |
//## end MacCallback::string%4212F206031D.role
|
|
|
145 |
|
|
|
146 |
//## Association: TransactionTestManager::Transaction Generation::<unnamed>%4212F38B0038
|
|
|
147 |
//## Role: MacCallback::evaluationContext%4212F38B01CE
|
|
|
148 |
// The context.
|
|
|
149 |
//## begin MacCallback::evaluationContext%4212F38B01CE.role preserve=no private: EvaluationContext {1 -> 1RFHAN}
|
|
|
150 |
EvaluationContext *m_evaluationContext;
|
|
|
151 |
//## end MacCallback::evaluationContext%4212F38B01CE.role
|
|
|
152 |
|
|
|
153 |
// Additional Private Declarations
|
|
|
154 |
//## begin MacCallback%4212D05100DB.private preserve=yes
|
|
|
155 |
//## end MacCallback%4212D05100DB.private
|
|
|
156 |
|
|
|
157 |
private: //## implementation
|
|
|
158 |
// Additional Implementation Declarations
|
|
|
159 |
//## begin MacCallback%4212D05100DB.implementation preserve=yes
|
|
|
160 |
//## end MacCallback%4212D05100DB.implementation
|
|
|
161 |
|
|
|
162 |
};
|
|
|
163 |
|
|
|
164 |
//## begin MacCallback%4212D05100DB.postscript preserve=yes
|
|
|
165 |
//## end MacCallback%4212D05100DB.postscript
|
|
|
166 |
|
|
|
167 |
// Class MacCallback
|
|
|
168 |
|
|
|
169 |
//## begin module%4212D05100DB.epilog preserve=yes
|
|
|
170 |
//## end module%4212D05100DB.epilog
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
#endif
|