Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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%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 IXmlSchemaWrapperElement;
36
class IXmlSchemaWrapperHandle;
37
class IXmlSchemaWrapperFactory;
38
class IXmlSchemaWrapperSchema;
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
    // Additional Public Declarations
104
      //## begin TransactionStructure%4205D0C403E2.public preserve=yes
105
      //## end TransactionStructure%4205D0C403E2.public
106
 
107
  protected:
108
    // Additional Protected Declarations
109
      //## begin TransactionStructure%4205D0C403E2.protected preserve=yes
110
      //## end TransactionStructure%4205D0C403E2.protected
111
 
112
  private:
113
    //## Constructors (generated)
114
      TransactionStructure();
115
 
116
      TransactionStructure(const TransactionStructure &right);
117
 
118
    //## Assignment Operation (generated)
119
      TransactionStructure & operator=(const TransactionStructure &right);
120
 
121
    // Data Members for Class Attributes
122
 
123
      //## Attribute: structureName%4205D786008E
124
      //	The name of the structure.
125
      //## begin TransactionStructure::structureName%4205D786008E.attr preserve=no  private: std::string {VAC} name
126
      const std::string m_structureName;
127
      //## end TransactionStructure::structureName%4205D786008E.attr
128
 
129
      //## Attribute: isHeader%420711C80160
130
      //	Of value true when this structure is a header, and of value false otherwise.
131
      //## begin TransactionStructure::isHeader%420711C80160.attr preserve=no  private: bool {VAC} isHeader
132
      const bool m_isHeader;
133
      //## end TransactionStructure::isHeader%420711C80160.attr
134
 
135
    // Data Members for Associations
136
 
137
      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%420442520246
138
      //## Role: TransactionStructure::structureHandle%420442530294
139
      //	The handle of structure that describes this transaction.  We need to keep
140
      //	theis, because we cannot get the handle from the structure, and we need the
141
      //	handle to destroy the structure in the schema.
142
      //## begin TransactionStructure::structureHandle%420442530294.role preserve=no  private: XMLSchema::IXmlSchemaWrapperHandle {1 -> 1RFHgAN}
143
      XMLSchema::IXmlSchemaWrapperHandle *m_structureHandle;
144
      //## end TransactionStructure::structureHandle%420442530294.role
145
 
146
      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%42047F220227
147
      //## Role: TransactionStructure::structure%42047F2302D3
148
      //	The structure that describes this transaction.
149
      //## begin TransactionStructure::structure%42047F2302D3.role preserve=no  private: XMLSchema::IXmlSchemaWrapperElement {1 -> 1RFHgAN}
150
      XMLSchema::IXmlSchemaWrapperElement *m_structure;
151
      //## end TransactionStructure::structure%42047F2302D3.role
152
 
153
      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%4205D3160343
154
      //## Role: TransactionStructure::schemaFactory%4205D3190101
155
      //	The factory that we may call on to create and destroy schema artefacts.
156
      //	While we do not accept ownership over this instance, we do assume its
157
      //	validity for the remainder of our lifetime.
158
      //## begin TransactionStructure::schemaFactory%4205D3190101.role preserve=no  private: XMLSchema::IXmlSchemaWrapperFactory {1 -> 1RFHAN}
159
      XMLSchema::IXmlSchemaWrapperFactory *m_schemaFactory;
160
      //## end TransactionStructure::schemaFactory%4205D3190101.role
161
 
162
      //## Association: TransactionTestManager::Transaction Generation::<unnamed>%4205D3A500B3
163
      //## Role: TransactionStructure::schema%4205D3A60130
164
      //	The schema.  While we do not accept ownership over this instance, we do
165
      //	assume its validity for the remainder of our lifetime.
166
      //## begin TransactionStructure::schema%4205D3A60130.role preserve=no  private: XMLSchema::IXmlSchemaWrapperSchema {1 -> 1RFHAN}
167
      XMLSchema::IXmlSchemaWrapperSchema *m_schema;
168
      //## end TransactionStructure::schema%4205D3A60130.role
169
 
170
    // Additional Private Declarations
171
      //## begin TransactionStructure%4205D0C403E2.private preserve=yes
172
      //## end TransactionStructure%4205D0C403E2.private
173
 
174
  private: //## implementation
175
    // Additional Implementation Declarations
176
      //## begin TransactionStructure%4205D0C403E2.implementation preserve=yes
177
      //## end TransactionStructure%4205D0C403E2.implementation
178
 
179
};
180
 
181
//## begin TransactionStructure%4205D0C403E2.postscript preserve=yes
182
//## end TransactionStructure%4205D0C403E2.postscript
183
 
184
// Class TransactionStructure 
185
 
186
//## begin module%4205D0C403E2.epilog preserve=yes
187
//## end module%4205D0C403E2.epilog
188
 
189
 
190
#endif