ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
ccdm
Ccd0ExpImp.h
Go to the documentation of this file.
1
//Siemens Product Lifecycle Management Software Inc.
2
//All Rights Reserved.
3
//==================================================
4
//Copyright 2012 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.
5
16
#ifndef CCDM__CCD0EXPIMP_H
17
#define CCDM__CCD0EXPIMP_H
18
19
#include <map>
20
#include <string>
21
#include <vector>
22
#include <fstream>
23
24
#include <ccdm/libccdm_exports.h>
25
#include <
unidefs.h
>
26
28
typedef
std::map< std::string, std::vector< std::string > >
StringArrayMap
;
29
34
typedef
struct
ValueAddress
35
{
36
tag_t
valueObjectTag
;
37
std::vector<std::string>
computedValue
;
38
std::string
computedAddress
;
39
tag_t
parmMemoryRecordTag
;
41
}
ValueAddressS
;
42
46
typedef
struct
MemoryLayoutExportData
47
{
48
tag_t
memoryLayoutTag
;
49
std::vector<ValueAddress>
valueAddress
;
51
}
MemoryLayoutExportDataS
;
52
56
typedef
struct
ParmFlashGenerationExpData
57
{
58
59
std::vector<MemoryLayoutExportData >
memoryLayoutExportData
;
60
StringArrayMap
attributesMap
;
62
}
ParmFlashGenerationExpDataS
;
63
67
typedef
struct
ParmValueDetails
68
{
69
tag_t
parmDefinitionRevTag
;
70
tag_t
parmValTag
;
71
tag_t
variantExpTag
;
73
}
ParmValueDetailsS
;
74
78
typedef
struct
ParmValueSharingExpData
79
{
80
std::vector<ParmValueDetails>
parmValDetails
;
81
StringArrayMap
attributesMap
;
82
}
ParmValueSharingExpDataS
;
83
87
typedef
struct
GroupParmDetails
88
{
89
tag_t
parmGroupTag
;
90
std::vector<tag_t>
parmDefinitionRevTag
;
91
}
GroupParmDetailsS
;
92
96
typedef
struct
ParmDictionaySharingExpData
97
{
98
std::vector<GroupParmDetails>
groupParmDetails
;
99
StringArrayMap
attributesMap
;
101
}
ParmDictionaySharingExpDataS
;
102
106
typedef
struct
ExportFileData
107
{
108
std::string
absFilePath
;
109
std::vector<tag_t>
objectTags
;
111
}
ExportFileDataS
;
112
118
typedef
struct
ErrorInfo
119
{
120
int
ifail
;
121
int
severity
;
123
std::string
s1
;
124
std::string
s2
;
125
std::string
s3
;
126
std::string
s4
;
127
std::string
s5
;
128
std::string
s6
;
129
std::string
s7
;
131
}
ErrorInfoS
;
132
137
typedef
struct
ObjectErrorInfo
138
{
139
tag_t
objectTag
;
140
std::vector<ErrorInfoS>
errorInfo
;
142
}
ObjectErrorInfoS
;
143
148
typedef
struct
ExportFileOutput
149
{
150
std::vector<ExportFileDataS>
exportFileData
;
151
std::vector<ObjectErrorInfoS>
objErrorInfos
;
153
}
ExportFileOutputS
;
154
158
typedef
struct
Blocks
159
{
160
std::string
startAddressOffset
;
161
std::string
blockName
;
162
Blocks
*
parentBlock
;
164
}
BlocksS
;
165
169
typedef
struct
Records
170
{
171
std::string
recAddressOffset
;
172
std::string
parameterName
;
173
Blocks
*
parentBlock
;
175
}
RecordsS
;
176
180
typedef
struct
MemoryLayoutDetails
181
{
182
std::string
name
;
183
std::string
startAddress
;
184
std::vector<BlocksS>
blocks
;
185
std::vector<RecordsS>
records
;
187
}
MemoryLayoutDetailsS
;
188
192
typedef
struct
AlgebraicFormula
193
{
194
std::string
name
;
196
int
numberOfConstNames
;
197
char
**
constNames
;
199
int
numberOfVariableNames
;
200
char
**
variableNames
;
202
std::string
expresssion
;
203
std::string
invExpression
;
204
std::string
asteExpression
;
205
std::string
invAsteExpression
;
207
}
AlgebraicFormulaS
;
208
212
typedef
struct
FormulaConversion
213
{
214
int
numberOfFormulaConstValues
;
215
char
**
formulaConvConstVals
;
217
AlgebraicFormulaS
algebraicFormula
;
219
}
FormulaConversionS
;
220
224
typedef
struct
ValueConversion
225
{
226
std::string
inputValue
;
228
}
ValueConversionS
;
229
233
typedef
struct
RangeConversion
234
{
235
std::string
minValue
;
236
std::string
maxValue
;
238
}
RangeConversionS
;
239
243
typedef
struct
RecordConversion
244
{
245
std::string
outputValue
;
246
ValueConversionS
*
valueConversion
;
247
RangeConversionS
*
rangeConversion
;
249
}
RecordConversionS
;
250
256
typedef
struct
RecordColConversion
257
{
258
std::string
defaultValue
;
260
std::vector<RecordConversionS>
vecRecordConversion
;
262
bool
withInterpolation
;
266
}
RecordColConversionS
;
267
271
typedef
struct
ConversionRuleDetails
272
{
273
std::string
ruleName
;
274
std::string
ruleDesc
;
276
FormulaConversionS
*
formulaConversion
;
277
RecordColConversionS
*
recordColConversion
;
279
}
ConversionRuleDetailsS
;
280
284
typedef
struct
TableCellValueType
{
285
std::string
type
;
286
std::string
strVal
;
287
date_t
dateVal
;
288
double
dblVal
;
289
int
intVal
;
290
bool
boolVal
;
291
}
TableCellValueTypeS
;
292
296
typedef
struct
TableCell
{
297
int
row
;
298
int
col
;
299
std::string
desc
;
300
TableCellValueTypeS
value
;
301
}
TableCellS
;
302
306
typedef
struct
TableDef
{
307
int
rows
;
308
int
cols
;
310
std::vector<std::string>
rowLabels
;
311
std::vector<std::string>
colLabels
;
313
}
TableDefS
;
314
318
typedef
struct
Table
{
319
TableDefS
*
tableDefInfo
;
320
std::vector<TableCellS>
tableCells
;
321
//Table():tableDefInfo(), tableCells(){}
322
//Table(TableDefS *tableDefInfo1, std::vector<TableCellS>& tableCells1):tableDefInfo(tableDefInfo1), tableCells(tableCells1){}
323
}
TableS
;
324
328
typedef
struct
BitDefinitionData
{
329
int
byteNum
;
330
int
bitNum
;
331
std::string
name
;
332
333
std::string
meaningOf0
;
334
std::string
meaningOf1
;
335
}
BitDefinitionDataS
;
336
340
typedef
struct
ParmDefinitionRevDetails
341
{
342
std::string
parmDefRevComment
;
343
std::string
parmDefControlEngr
;
344
int
parmDefSize
;
345
std::string
parmDefSizeUnits
;
346
TableDefS
tableDefinition
;
347
bool
parmDefIsSigned
;
348
int
parmDefResoNumerator
;
349
int
parmDefResoDenominator
;
350
double
parmDefTolerance
;
351
double
parmDefPrecision
;
353
ConversionRuleDetailsS
parmDefConversionRule
;
354
TableS
parmDefMinValues
;
355
TableS
parmDefMaxValues
;
356
TableS
parmDefInitialValues
;
357
TableS
parmDefValidValues
;
358
std::vector<BitDefinitionDataS>
vecBitDefInfo
;
360
}
ParmDefinitionRevDetailsS
;
361
365
typedef
struct
ParmGroupDetails
366
{
367
std::string
parmGrpName
;
368
std::string
parmGrpDescriptor
;
369
std::string
parmGrpComment
;
370
std::string
parmGrpRepresents
;
371
std::string
parmGrpControlEngr
;
372
std::string
parmGrpspecialistUser
;
373
ParmGroupDetails
*
parentGroup
;
375
}
ParmGroupDetailsS
;
376
380
typedef
struct
ParmDefinitionDetails
381
{
382
int
findNumber
;
383
std::string
parmDefType
;
384
std::string
parmDefParmType
;
385
std::string
parmDefComment
;
386
std::string
parmDefName
;
387
ParmDefinitionRevDetailsS
parmDefRevDetails
;
388
std::string
parmDefDescriptor
;
389
ParmGroupDetailsS
*
parentGroup
;
391
}
ParmDefinitionDetailsS
;
392
396
typedef
struct
ParmDictionaryUpdateData
397
{
398
tag_t
selectedObject
;
399
std::vector<MemoryLayoutDetailsS>
vecMemLayoutDetails
;
400
std::vector<ParmGroupDetailsS>
vecParmGroupDetails
;
401
std::vector<ParmDefinitionDetailsS>
vecParmDefDetails
;
404
}
ParmDictionaryUpdateDataS
;
405
409
typedef
struct
DictionaryParseOutput
410
{
411
ParmDictionaryUpdateData
importData
;
412
std::vector<ObjectErrorInfo>
vecParseErrorData
;
414
}
DictionaryParseOutputS
;
415
416
#include <ccdm/libccdm_undef.h>
417
#endif // CCDM__CCD0EXPIMP_H