Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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%4205D0C403E2.cm preserve=no
7
//## end module%4205D0C403E2.cm
8
 
9
//## begin module%4205D0C403E2.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%4205D0C403E2.cp
19
 
20
//## Module: TransactionStructure%4205D0C403E2; Pseudo Package specification
21
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
22
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\TransactionStructure.h
23
 
24
#ifndef TransactionStructure_h
25
#define TransactionStructure_h 1
26
 
27
//## begin module%4205D0C403E2.additionalIncludes preserve=no
28
//## end module%4205D0C403E2.additionalIncludes
29
 
30
//## begin module%4205D0C403E2.includes preserve=yes
31
//## end module%4205D0C403E2.includes
32
 
33
 
34
namespace XMLSchema {
35
class IXmlSchemaWrapperSchema;
36
class IXmlSchemaWrapperElement;
37
class IXmlSchemaWrapperHandle;
38
class IXmlSchemaWrapperFactory;
39
} // namespace XMLSchema
40
 
41
class TransactionStream;
42
 
43
//## begin module%4205D0C403E2.additionalDeclarations preserve=yes
44
#include <string>
45
//## end module%4205D0C403E2.additionalDeclarations
46
 
47
 
48
//## begin TransactionStructure%4205D0C403E2.preface preserve=yes
49
//## end TransactionStructure%4205D0C403E2.preface
50
 
51
//## Class: TransactionStructure%4205D0C403E2; private
52
//	A class that encapsulates a schema structure associated with a transaction.
53
//## Category: TransactionTestManager::Transaction Generation%4202F8EE0128
54
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
55
//## Persistence: Transient
56
//## Cardinality/Multiplicity: n
57
 
58
 
59
 
60
//## Uses: <unnamed>%420820E10380;TransactionStream { -> F}
61
//## Uses: <unnamed>%42085EBA0031;XMLSchema::IXmlSchemaWrapperStream { -> }
62
 
63
class TransactionStructure 
64
{
65
  //## begin TransactionStructure%4205D0C403E2.initialDeclarations preserve=yes
66
  //## end TransactionStructure%4205D0C403E2.initialDeclarations
67
 
68
  public:
69
    //## Constructors (specified)
70
      //## Operation: TransactionStructure%4205D148027B
71
      //	The only constructor.
72
      TransactionStructure (const std::string &name, 	// The name of the structure.
73
      const int &iteration, 	// The iteration.
74
      XMLSchema::IXmlSchemaWrapperFactory &schemaFactory, 	// The factory that we may call on to create and destroy schema artefacts.
75
      	// While we do not accept ownership over this instance, we do assume its
76
      	// validity for the remainder of our lifetime.
77
      XMLSchema::IXmlSchemaWrapperSchema &schema, 	// The schema.
78
      const bool &isHeader	// Of value true when this structure is a header, and of value false otherwise.
79
      );
80
 
81
    //## Destructor (generated)
82
      virtual ~TransactionStructure();
83
 
84
 
85
    //## Other Operations (specified)
86
      //## Operation: getName%4205D7B602F0
87
      //	Evaluate to the name of this structure.
88
      const std::string & getName () const;
89
 
90
      //## Operation: getSchemaElement%4206D93203BB
91
      //	Evaluate to the schema element of this structure.
92
      XMLSchema::IXmlSchemaWrapperElement & getSchemaElement ();
93
 
94
      //## Operation: isHeader%4207123A020C
95
      //	Evaluate to true when this structure is a header, and to false otherwise.
96
      const bool isHeader () const;
97
 
98
      //## Operation: write%4207140A0268
99
      //	Write this structure into the given stream.
100
      const bool write (TransactionStream& stream	// The stream into which to write.
101
      );
102
 
103
      //## Operation: write%4236929B00A3
104
      //	Write this structure into the given stream qualified using the given
105
      //	qualification object.
106
      const bool write (XMLSchema::IXmlSchemaWrapperStream& stream, 	// The stream into which to write.
107
      XMLSchema::IXmlSchemaWrapperQualification &qualifier	// The qualifier.
108
      );
109
 
110
    // Additional Public Declarations
111
      //## begin TransactionStructure%4205D0C403E2.public preserve=yes
112
      //## end TransactionStructure%4205D0C403E2.public
113
 
114
  protected:
115
    // Additional Protected Declarations
116
      //## begin TransactionStructure%4205D0C403E2.protected preserve=yes
117
      //## end TransactionStructure%4205D0C403E2.protected
118
 
119
  private:
120
    //## Constructors (generated)
121
      TransactionStructure();
122
 
123
      TransactionStructure(const TransactionStructure &right);
124
 
125
    //## Assignment Operation (generated)
126
      TransactionStructure & operator=(const TransactionStructure &right);
127
 
128
    // Data Members for Class Attributes
129
 
130
      //## Attribute: structureName%4205D786008E
131
      //	The name of the structure.
132
      //## begin TransactionStructure::structureName%4205D786008E.attr preserve=no  private: std::string {VAC} name
133
      const std::string m_structureName;
134
      //## end TransactionStructure::structureName%4205D786008E.attr
135
 
136
      //## Attribute: isHeader%420711C80160
137
      //	Of value true when this structure is a header, and of value false otherwise.
138
      //## begin TransactionStructure::isHeader%420711C80160.attr preserve=no  private: bool {VAC} isHeader
139
      const bool m_isHeader;
140
      //## end TransactionStructure::isHeader%420711C80160.attr
141
 
142
    // Data Members for Associations
143
 
144
      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%420442520246
145
      //## Role: TransactionStructure::structureHandle%420442530294
146
      //	The handle of structure that describes this transaction.  We need to keep
147
      //	theis, because we cannot get the handle from the structure, and we need the
148
      //	handle to destroy the structure in the schema.
149
      //## begin TransactionStructure::structureHandle%420442530294.role preserve=no  private: XMLSchema::IXmlSchemaWrapperHandle {1 -> 1RFHgAN}
150
      XMLSchema::IXmlSchemaWrapperHandle *m_structureHandle;
151
      //## end TransactionStructure::structureHandle%420442530294.role
152
 
153
      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%42047F220227
154
      //## Role: TransactionStructure::structure%42047F2302D3
155
      //	The structure that describes this transaction.
156
      //## begin TransactionStructure::structure%42047F2302D3.role preserve=no  private: XMLSchema::IXmlSchemaWrapperElement {1 -> 1RFHgAN}
157
      XMLSchema::IXmlSchemaWrapperElement *m_structure;
158
      //## end TransactionStructure::structure%42047F2302D3.role
159
 
160
      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%4205D3160343
161
      //## Role: TransactionStructure::schemaFactory%4205D3190101
162
      //	The factory that we may call on to create and destroy schema artefacts.
163
      //	While we do not accept ownership over this instance, we do assume its
164
      //	validity for the remainder of our lifetime.
165
      //## begin TransactionStructure::schemaFactory%4205D3190101.role preserve=no  private: XMLSchema::IXmlSchemaWrapperFactory {1 -> 1RFHAN}
166
      XMLSchema::IXmlSchemaWrapperFactory *m_schemaFactory;
167
      //## end TransactionStructure::schemaFactory%4205D3190101.role
168
 
169
      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%4205D3A500B3
170
      //## Role: TransactionStructure::schema%4205D3A60130
171
      //	The schema.  While we do not accept ownership over this instance, we do
172
      //	assume its validity for the remainder of our lifetime.
173
      //## begin TransactionStructure::schema%4205D3A60130.role preserve=no  private: XMLSchema::IXmlSchemaWrapperSchema {1 -> 1RFHAN}
174
      XMLSchema::IXmlSchemaWrapperSchema *m_schema;
175
      //## end TransactionStructure::schema%4205D3A60130.role
176
 
177
    // Additional Private Declarations
178
      //## begin TransactionStructure%4205D0C403E2.private preserve=yes
179
      //## end TransactionStructure%4205D0C403E2.private
180
 
181
  private: //## implementation
182
    // Additional Implementation Declarations
183
      //## begin TransactionStructure%4205D0C403E2.implementation preserve=yes
184
      //## end TransactionStructure%4205D0C403E2.implementation
185
 
186
};
187
 
188
//## begin TransactionStructure%4205D0C403E2.postscript preserve=yes
189
//## end TransactionStructure%4205D0C403E2.postscript
190
 
191
// Class TransactionStructure 
192
 
193
//## begin module%4205D0C403E2.epilog preserve=yes
194
//## end module%4205D0C403E2.epilog
195
 
196
 
197
#endif