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%4209BA4C03B8.cm preserve=no
7
//## end module%4209BA4C03B8.cm
8
 
9
//## begin module%4209BA4C03B8.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
12
//	disclosed in whole
13
//	or in part to any third party nor used in any manner
14
//	whatsoever other
15
//	than for the purposes expressly consented to by ERG in
16
//	writing.
17
//
18
//	This material is also copyright and may not be
19
//	reproduced, stored in a
20
//	retrieval system or transmitted in any form or by any
21
//	means in whole or
22
//	in part without the express written consent of ERG.
23
//## end module%4209BA4C03B8.cp
24
 
25
//## Module: UdFileManifest%4209BA4C03B8; Pseudo Package specification
26
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
27
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\UdFileManifest.h
28
 
29
#ifndef UdFileManifest_h
30
#define UdFileManifest_h 1
31
 
32
//## begin module%4209BA4C03B8.additionalIncludes preserve=no
33
//## end module%4209BA4C03B8.additionalIncludes
34
 
35
//## begin module%4209BA4C03B8.includes preserve=yes
36
//## end module%4209BA4C03B8.includes
37
 
38
//## begin module%4209BA4C03B8.additionalDeclarations preserve=yes
39
#include <fstream>
40
#include <string>
41
//## end module%4209BA4C03B8.additionalDeclarations
42
 
43
 
44
//## begin UdFileManifest%4209BA4C03B8.preface preserve=yes
45
//## end UdFileManifest%4209BA4C03B8.preface
46
 
47
//## Class: UdFileManifest%4209BA4C03B8
48
//	A manifest of UD files.
49
//## Category: TransactionTestManager::Transaction Generation%4202F8EE0128
50
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
51
//## Persistence: Transient
52
//## Cardinality/Multiplicity: n
53
 
54
 
55
 
56
//## Uses: <unnamed>%4209BBCD00AD;TransactionStream { -> }
57
 
58
class UdFileManifest 
59
{
60
  //## begin UdFileManifest%4209BA4C03B8.initialDeclarations preserve=yes
61
  //## end UdFileManifest%4209BA4C03B8.initialDeclarations
62
 
63
  public:
64
    //## Constructors (specified)
65
      //## Operation: UdFileManifest%4209BAA8031C
66
      //	The only constructor.
67
      UdFileManifest (const std::string &folder, 	// The folder in the file-system into which to write the
68
      	// transaction stream.
69
      const std::string &prefix = "udMan", 	// The prefix given to manifest filenames opened by this
70
      	// instance.
71
      const std::string &suffix = ".txt", 	// The suffix given to manifest filenames opened by this
72
      	// instance.
73
      const std::string &pathmapTarget = ""	// The folder in the file-system that shall contain the
74
      	// drain file.
75
      );
76
 
77
    //## Destructor (generated)
78
      virtual ~UdFileManifest();
79
 
80
 
81
    //## Other Operations (specified)
82
      //## Operation: addUdFile%4209BAC703E7
83
      //	Add the given file to this manifest.
84
      void addUdFile (const std::string &file	// The file to add.
85
 
86
      );
87
 
88
      void UdFileManifest::addTestDetails (const std::string &testDetails // the testdetails to add
89
      );
90
 
91
    // Additional Public Declarations
92
      //## begin UdFileManifest%4209BA4C03B8.public preserve=yes
93
      //## end UdFileManifest%4209BA4C03B8.public
94
 
95
  protected:
96
    // Additional Protected Declarations
97
      //## begin UdFileManifest%4209BA4C03B8.protected preserve=yes
98
      //## end UdFileManifest%4209BA4C03B8.protected
99
 
100
  private:
101
    //## Constructors (generated)
102
      UdFileManifest();
103
 
104
      UdFileManifest(const UdFileManifest &right);
105
 
106
    //## Assignment Operation (generated)
107
      UdFileManifest & operator=(const UdFileManifest &right);
108
 
109
 
110
    //## Other Operations (specified)
111
      //## Operation: close%4209BAC10389
112
      //	Close the transaction stream.
113
      void close ();
114
 
115
      //## Operation: open%4209BAC10399
116
      //	Open the transaction stream.
117
      const bool open ();
118
 
119
    //## Get and Set Operations for Class Attributes (generated)
120
 
121
      //## Attribute: count%4209BCEE02B0
122
      //	The number of files contained in this manifest.
123
      const unsigned getCount () const;
124
      void setCount (unsigned value);
125
 
126
      //## Attribute: folder%4209BB3403E7
127
      //	The folder in the file-system to which we write the
128
      //	transaction stream.
129
      const std::string getFolder () const;
130
      void setFolder (std::string value);
131
 
132
      //## Attribute: pathmapTarget%425F352E0302
133
      //	The folder in the file-system that shall contain the
134
      //	drain file.
135
      const std::string getPathmapTarget () const;
136
      void setPathmapTarget (std::string value);
137
 
138
      //## Attribute: prefix%4209BB35000E
139
      //	The prefix given to manifest filenames opened by this
140
      //	instance.
141
      const std::string getPrefix () const;
142
      void setPrefix (std::string value);
143
 
144
      //## Attribute: stream%4209BB35002E
145
      //	The underlying stream currently open for writing.
146
      const std::ofstream getStream () const;
147
      void setStream (std::ofstream value);
148
 
149
      //## Attribute: suffix%4209BB35001E
150
      //	The suffix given to manifest filenames opened by this
151
      //	instance.
152
      const std::string getSuffix () const;
153
      void setSuffix (std::string value);
154
 
155
    // Additional Private Declarations
156
      //## begin UdFileManifest%4209BA4C03B8.private preserve=yes
157
      //## end UdFileManifest%4209BA4C03B8.private
158
 
159
  private: //## implementation
160
    // Data Members for Class Attributes
161
 
162
      //## begin UdFileManifest::count%4209BCEE02B0.attr preserve=no  private: unsigned {V} 0
163
      unsigned m_count;
164
      //## end UdFileManifest::count%4209BCEE02B0.attr
165
 
166
      //## begin UdFileManifest::folder%4209BB3403E7.attr preserve=no  private: std::string {V} folder
167
      std::string m_folder;
168
      //## end UdFileManifest::folder%4209BB3403E7.attr
169
 
170
      //## begin UdFileManifest::pathmapTarget%425F352E0302.attr preserve=no  private: std::string {V} pathmapTarget
171
      std::string m_pathmapTarget;
172
      //## end UdFileManifest::pathmapTarget%425F352E0302.attr
173
 
174
      //## begin UdFileManifest::prefix%4209BB35000E.attr preserve=no  private: std::string {V} prefix
175
      std::string m_prefix;
176
      //## end UdFileManifest::prefix%4209BB35000E.attr
177
 
178
      //## begin UdFileManifest::stream%4209BB35002E.attr preserve=no  private: std::ofstream {R} 0
179
      std::ofstream *m_stream;
180
      //## end UdFileManifest::stream%4209BB35002E.attr
181
 
182
      //## begin UdFileManifest::suffix%4209BB35001E.attr preserve=no  private: std::string {V} suffix
183
      std::string m_suffix;
184
      //## end UdFileManifest::suffix%4209BB35001E.attr
185
 
186
    // Additional Implementation Declarations
187
      //## begin UdFileManifest%4209BA4C03B8.implementation preserve=yes
188
      //## end UdFileManifest%4209BA4C03B8.implementation
189
 
190
};
191
 
192
//## begin UdFileManifest%4209BA4C03B8.postscript preserve=yes
193
//## end UdFileManifest%4209BA4C03B8.postscript
194
 
195
// Class UdFileManifest 
196
 
197
//## Get and Set Operations for Class Attributes (inline)
198
 
199
inline const unsigned UdFileManifest::getCount () const
200
{
201
  //## begin UdFileManifest::getCount%4209BCEE02B0.get preserve=no
202
  return m_count;
203
  //## end UdFileManifest::getCount%4209BCEE02B0.get
204
}
205
 
206
inline void UdFileManifest::setCount (unsigned value)
207
{
208
  //## begin UdFileManifest::setCount%4209BCEE02B0.set preserve=no
209
  m_count = value;
210
  //## end UdFileManifest::setCount%4209BCEE02B0.set
211
}
212
 
213
inline const std::string UdFileManifest::getFolder () const
214
{
215
  //## begin UdFileManifest::getFolder%4209BB3403E7.get preserve=no
216
  return m_folder;
217
  //## end UdFileManifest::getFolder%4209BB3403E7.get
218
}
219
 
220
inline void UdFileManifest::setFolder (std::string value)
221
{
222
  //## begin UdFileManifest::setFolder%4209BB3403E7.set preserve=no
223
  m_folder = value;
224
  //## end UdFileManifest::setFolder%4209BB3403E7.set
225
}
226
 
227
inline const std::string UdFileManifest::getPathmapTarget () const
228
{
229
  //## begin UdFileManifest::getPathmapTarget%425F352E0302.get preserve=no
230
  return m_pathmapTarget;
231
  //## end UdFileManifest::getPathmapTarget%425F352E0302.get
232
}
233
 
234
inline void UdFileManifest::setPathmapTarget (std::string value)
235
{
236
  //## begin UdFileManifest::setPathmapTarget%425F352E0302.set preserve=no
237
  m_pathmapTarget = value;
238
  //## end UdFileManifest::setPathmapTarget%425F352E0302.set
239
}
240
 
241
inline const std::string UdFileManifest::getPrefix () const
242
{
243
  //## begin UdFileManifest::getPrefix%4209BB35000E.get preserve=no
244
  return m_prefix;
245
  //## end UdFileManifest::getPrefix%4209BB35000E.get
246
}
247
 
248
inline void UdFileManifest::setPrefix (std::string value)
249
{
250
  //## begin UdFileManifest::setPrefix%4209BB35000E.set preserve=no
251
  m_prefix = value;
252
  //## end UdFileManifest::setPrefix%4209BB35000E.set
253
}
254
 
255
inline const std::ofstream UdFileManifest::getStream () const
256
{
257
  //## begin UdFileManifest::getStream%4209BB35002E.get preserve=no
258
  return *m_stream;
259
  //## end UdFileManifest::getStream%4209BB35002E.get
260
}
261
 
262
inline void UdFileManifest::setStream (std::ofstream value)
263
{
264
  //## begin UdFileManifest::setStream%4209BB35002E.set preserve=no
265
  *m_stream = value;
266
  //## end UdFileManifest::setStream%4209BB35002E.set
267
}
268
 
269
inline const std::string UdFileManifest::getSuffix () const
270
{
271
  //## begin UdFileManifest::getSuffix%4209BB35001E.get preserve=no
272
  return m_suffix;
273
  //## end UdFileManifest::getSuffix%4209BB35001E.get
274
}
275
 
276
inline void UdFileManifest::setSuffix (std::string value)
277
{
278
  //## begin UdFileManifest::setSuffix%4209BB35001E.set preserve=no
279
  m_suffix = value;
280
  //## end UdFileManifest::setSuffix%4209BB35001E.set
281
}
282
 
283
//## begin module%4209BA4C03B8.epilog preserve=yes
284
//## end module%4209BA4C03B8.epilog
285
 
286
 
287
#endif