| 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%4209C5FB02C3.cm preserve=no
|
|
|
7 |
//## end module%4209C5FB02C3.cm
|
|
|
8 |
|
|
|
9 |
//## begin module%4209C5FB02C3.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%4209C5FB02C3.cp
|
|
|
19 |
|
|
|
20 |
//## Module: DefinedVariableTable%4209C5FB02C3; Pseudo Package specification
|
|
|
21 |
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
|
|
|
22 |
//## Source file: Z:\MASS_Dev\Tools\TxnTestManager\src\DefinedVariableTable.h
|
|
|
23 |
|
|
|
24 |
#ifndef DefinedVariableTable_h
|
|
|
25 |
#define DefinedVariableTable_h 1
|
|
|
26 |
|
|
|
27 |
//## begin module%4209C5FB02C3.additionalIncludes preserve=no
|
|
|
28 |
//## end module%4209C5FB02C3.additionalIncludes
|
|
|
29 |
|
|
|
30 |
//## begin module%4209C5FB02C3.includes preserve=yes
|
|
|
31 |
#include <map>
|
|
|
32 |
#include <string>
|
|
|
33 |
//## end module%4209C5FB02C3.includes
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
class DefinedVariable;
|
|
|
37 |
|
|
|
38 |
//## begin module%4209C5FB02C3.additionalDeclarations preserve=yes
|
|
|
39 |
//## end module%4209C5FB02C3.additionalDeclarations
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
//## begin DefinedVariableTable%4209C5FB02C3.preface preserve=yes
|
|
|
43 |
//## end DefinedVariableTable%4209C5FB02C3.preface
|
|
|
44 |
|
|
|
45 |
//## Class: DefinedVariableTable%4209C5FB02C3
|
|
|
46 |
// The table of defined variables and their values.
|
|
|
47 |
//## Category: TransactionTestManager::Symbol Table%4209C5C30033
|
|
|
48 |
//## Subsystem: MASS::Dev::Tools::TxnTestManager::src%41F5A79001E4
|
|
|
49 |
//## Persistence: Transient
|
|
|
50 |
//## Cardinality/Multiplicity: n
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
class DefinedVariableTable
|
|
|
55 |
{
|
|
|
56 |
//## begin DefinedVariableTable%4209C5FB02C3.initialDeclarations preserve=yes
|
|
|
57 |
//## end DefinedVariableTable%4209C5FB02C3.initialDeclarations
|
|
|
58 |
|
|
|
59 |
public:
|
|
|
60 |
//## Constructors (generated)
|
|
|
61 |
DefinedVariableTable();
|
|
|
62 |
|
|
|
63 |
//## Destructor (generated)
|
|
|
64 |
virtual ~DefinedVariableTable();
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
//## Other Operations (specified)
|
|
|
68 |
//## Operation: clear%4209C916032F
|
|
|
69 |
// Clear the table.
|
|
|
70 |
void clear ();
|
|
|
71 |
|
|
|
72 |
//## Operation: getDefinedVariable%4209C7770264
|
|
|
73 |
// Evaluate to the given variable. When the variable doesn't already exist,
|
|
|
74 |
// create it.
|
|
|
75 |
DefinedVariable& getDefinedVariable (const std::string &variableName // The name of the variable.
|
|
|
76 |
);
|
|
|
77 |
|
|
|
78 |
//## Operation: isVariable%420ACFBB01CE
|
|
|
79 |
// Evaluate to true when the given symbol is a variable, otherwise evaluate to
|
|
|
80 |
// false.
|
|
|
81 |
const bool isVariable (const std::string &symbol // The symbol.
|
|
|
82 |
) const;
|
|
|
83 |
|
|
|
84 |
// Additional Public Declarations
|
|
|
85 |
//## begin DefinedVariableTable%4209C5FB02C3.public preserve=yes
|
|
|
86 |
//## end DefinedVariableTable%4209C5FB02C3.public
|
|
|
87 |
|
|
|
88 |
protected:
|
|
|
89 |
// Additional Protected Declarations
|
|
|
90 |
//## begin DefinedVariableTable%4209C5FB02C3.protected preserve=yes
|
|
|
91 |
//## end DefinedVariableTable%4209C5FB02C3.protected
|
|
|
92 |
|
|
|
93 |
private:
|
|
|
94 |
//## Constructors (generated)
|
|
|
95 |
DefinedVariableTable(const DefinedVariableTable &right);
|
|
|
96 |
|
|
|
97 |
//## Assignment Operation (generated)
|
|
|
98 |
DefinedVariableTable & operator=(const DefinedVariableTable &right);
|
|
|
99 |
|
|
|
100 |
// Data Members for Associations
|
|
|
101 |
|
|
|
102 |
//## Association: TransactionTestManager::Symbol Table::<unnamed>%4209C65E02D3
|
|
|
103 |
//## Role: DefinedVariableTable::variable%4209C65F0013
|
|
|
104 |
// The collection of defined variables.
|
|
|
105 |
//## Qualifier: variableName%4209C66701AA; std::string
|
|
|
106 |
// The name of the variable.
|
|
|
107 |
//## begin DefinedVariableTable::variable%4209C65F0013.role preserve=no private: DefinedVariable {1 -> 1RFHgAN}
|
|
|
108 |
std::map<std::string, DefinedVariable *> m_variable;
|
|
|
109 |
//## end DefinedVariableTable::variable%4209C65F0013.role
|
|
|
110 |
|
|
|
111 |
// Additional Private Declarations
|
|
|
112 |
//## begin DefinedVariableTable%4209C5FB02C3.private preserve=yes
|
|
|
113 |
//## end DefinedVariableTable%4209C5FB02C3.private
|
|
|
114 |
|
|
|
115 |
private: //## implementation
|
|
|
116 |
// Additional Implementation Declarations
|
|
|
117 |
//## begin DefinedVariableTable%4209C5FB02C3.implementation preserve=yes
|
|
|
118 |
//## end DefinedVariableTable%4209C5FB02C3.implementation
|
|
|
119 |
|
|
|
120 |
};
|
|
|
121 |
|
|
|
122 |
//## begin DefinedVariableTable%4209C5FB02C3.postscript preserve=yes
|
|
|
123 |
//## end DefinedVariableTable%4209C5FB02C3.postscript
|
|
|
124 |
|
|
|
125 |
// Class DefinedVariableTable
|
|
|
126 |
|
|
|
127 |
//## begin module%4209C5FB02C3.epilog preserve=yes
|
|
|
128 |
//## end module%4209C5FB02C3.epilog
|
|
|
129 |
|
|
|
130 |
|
|
|
131 |
#endif
|