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%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 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%4209BA4C03B8.cp
19
 
20
//## Module: UdFileManifest%4209BA4C03B8; Pseudo Package specification
21
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
22
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\UdFileManifest.h
23
 
24
#ifndef UdFileManifest_h
25
#define UdFileManifest_h 1
26
 
27
//## begin module%4209BA4C03B8.additionalIncludes preserve=no
28
//## end module%4209BA4C03B8.additionalIncludes
29
 
30
//## begin module%4209BA4C03B8.includes preserve=yes
31
//## end module%4209BA4C03B8.includes
32
 
33
//## begin module%4209BA4C03B8.additionalDeclarations preserve=yes
34
#include <fstream>
35
#include <string>
36
//## end module%4209BA4C03B8.additionalDeclarations
37
 
38
 
39
//## begin UdFileManifest%4209BA4C03B8.preface preserve=yes
40
//## end UdFileManifest%4209BA4C03B8.preface
41
 
42
//## Class: UdFileManifest%4209BA4C03B8
43
//	A manifest of UD files.
44
//## Category: TransactionTestManager::Transaction Generation%4202F8EE0128
45
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
46
//## Persistence: Transient
47
//## Cardinality/Multiplicity: n
48
 
49
 
50
 
51
//## Uses: <unnamed>%4209BBCD00AD;TransactionStream { -> }
52
 
53
class UdFileManifest 
54
{
55
  //## begin UdFileManifest%4209BA4C03B8.initialDeclarations preserve=yes
56
  //## end UdFileManifest%4209BA4C03B8.initialDeclarations
57
 
58
  public:
59
    //## Constructors (specified)
60
      //## Operation: UdFileManifest%4209BAA8031C
61
      //	The only constructor.
62
      UdFileManifest (const std::string &folder, 	// The folder in the file-system into which to write the transaction stream.
63
      const std::string &prefix = "udMan", 	// The prefix given to manifest filenames opened by this instance.
64
      const std::string &suffix = ".txt"	// The suffix given to manifest filenames opened by this instance.
65
      );
66
 
67
    //## Destructor (generated)
68
      virtual ~UdFileManifest();
69
 
70
 
71
    //## Other Operations (specified)
72
      //## Operation: addUdFile%4209BAC703E7
73
      //	Add the given file to this manifest.
74
      void addUdFile (const std::string &file	// The file to add.
75
      );
76
 
77
    // Additional Public Declarations
78
      //## begin UdFileManifest%4209BA4C03B8.public preserve=yes
79
      //## end UdFileManifest%4209BA4C03B8.public
80
 
81
  protected:
82
    // Additional Protected Declarations
83
      //## begin UdFileManifest%4209BA4C03B8.protected preserve=yes
84
      //## end UdFileManifest%4209BA4C03B8.protected
85
 
86
  private:
87
    //## Constructors (generated)
88
      UdFileManifest();
89
 
90
      UdFileManifest(const UdFileManifest &right);
91
 
92
    //## Assignment Operation (generated)
93
      UdFileManifest & operator=(const UdFileManifest &right);
94
 
95
 
96
    //## Other Operations (specified)
97
      //## Operation: close%4209BAC10389
98
      //	Close the transaction stream.
99
      void close ();
100
 
101
      //## Operation: open%4209BAC10399
102
      //	Open the transaction stream.
103
      const bool open ();
104
 
105
    // Data Members for Class Attributes
106
 
107
      //## Attribute: count%4209BCEE02B0
108
      //	The number of files contained in this manifest.
109
      //## begin UdFileManifest::count%4209BCEE02B0.attr preserve=no  private: unsigned {VA} 0
110
      unsigned m_count;
111
      //## end UdFileManifest::count%4209BCEE02B0.attr
112
 
113
      //## Attribute: folder%4209BB3403E7
114
      //	The folder in the file-system to which we write the transaction stream.
115
      //## begin UdFileManifest::folder%4209BB3403E7.attr preserve=no  private: std::string {VA} folder
116
      std::string m_folder;
117
      //## end UdFileManifest::folder%4209BB3403E7.attr
118
 
119
      //## Attribute: prefix%4209BB35000E
120
      //	The prefix given to manifest filenames opened by this instance.
121
      //## begin UdFileManifest::prefix%4209BB35000E.attr preserve=no  private: std::string {VA} prefix
122
      std::string m_prefix;
123
      //## end UdFileManifest::prefix%4209BB35000E.attr
124
 
125
      //## Attribute: stream%4209BB35002E
126
      //	The underlying stream currently open for writing.
127
      //## begin UdFileManifest::stream%4209BB35002E.attr preserve=no  private: std::ofstream {RA} 0
128
      std::ofstream *m_stream;
129
      //## end UdFileManifest::stream%4209BB35002E.attr
130
 
131
      //## Attribute: suffix%4209BB35001E
132
      //	The suffix given to manifest filenames opened by this instance.
133
      //## begin UdFileManifest::suffix%4209BB35001E.attr preserve=no  private: std::string {VA} suffix
134
      std::string m_suffix;
135
      //## end UdFileManifest::suffix%4209BB35001E.attr
136
 
137
    // Additional Private Declarations
138
      //## begin UdFileManifest%4209BA4C03B8.private preserve=yes
139
      //## end UdFileManifest%4209BA4C03B8.private
140
 
141
  private: //## implementation
142
    // Additional Implementation Declarations
143
      //## begin UdFileManifest%4209BA4C03B8.implementation preserve=yes
144
      //## end UdFileManifest%4209BA4C03B8.implementation
145
 
146
};
147
 
148
//## begin UdFileManifest%4209BA4C03B8.postscript preserve=yes
149
//## end UdFileManifest%4209BA4C03B8.postscript
150
 
151
// Class UdFileManifest 
152
 
153
//## begin module%4209BA4C03B8.epilog preserve=yes
154
//## end module%4209BA4C03B8.epilog
155
 
156
 
157
#endif