MAK RTIspy API Documentation for HLA 1516
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
rtiAssistantApp
nodeIconXmlReader.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2012 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
6
#ifndef nodeIconXmlReader_H_
7
#define nodeIconXmlReader_H_
8
9
#include <mtl/env.h>
10
#include <vlutil/vlString.h>
11
#include <vlutil/vlFilename.h>
12
#include <iosfwd>
13
#include <vector>
14
#include "
assistantEnums.h
"
15
16
struct
DtNodeIconFile
17
{
18
DtNodeIconFile
() :
19
nodeId
(),
20
imageFile
(),
21
fedIdType
(
DtIdentifyByFederateType
) {}
22
MAKRti::DtString
nodeId
;
23
MAKRti::DtFilename
imageFile
;
24
DtFederateIdentifierType
fedIdType
;
25
};
26
28
class
DtNodeIconXmlReader
29
{
30
public
:
32
DtNodeIconXmlReader
(
const
MAKRti::DtFilename& xmlFile );
33
35
virtual
~DtNodeIconXmlReader
();
36
37
public
:
38
40
virtual
const
std::vector< DtNodeIconFile >&
getNodeIconFiles
();
41
43
virtual
void
setNodeIconFiles
(
const
std::vector< DtNodeIconFile >& iconFiles);
44
45
protected
:
46
48
virtual
void
parse
();
49
51
virtual
MAKRti::DtString
fedIdTypeToString
(
DtFederateIdentifierType
idType)
const
;
52
54
virtual
DtFederateIdentifierType
stringToFedIdType
(
const
MAKRti::DtString& str)
const
;
55
56
private
:
58
DtNodeIconXmlReader
(
const
DtNodeIconXmlReader
& copy );
59
DtNodeIconXmlReader
&
operator=
(
const
DtNodeIconXmlReader
& rhs );
60
61
protected
:
62
64
MAKRti::DtEnvironment
myEnvironment
;
65
67
MAKRti::DtFilename
myXmlFile
;
68
70
MAKRti::DtString
myReadFileVersion
;
71
73
bool
myFileWasRead
;
74
76
std::vector< DtNodeIconFile >
myImageFiles
;
77
79
80
static
const
MAKRti::DtString
theVersionString
;
81
static
const
MAKRti::DtString
theRootNodeString
;
82
static
const
MAKRti::DtString
theNodeIconString
;
83
static
const
MAKRti::DtString
theIdentifierString
;
84
static
const
MAKRti::DtString
theIconFileString
;
85
static
const
MAKRti::DtString
theIdTypeString
;
86
static
const
MAKRti::DtString
theFederateTypeString
;
87
static
const
MAKRti::DtString
theFederateNameString
;
88
static
const
MAKRti::DtString
theProcessNameString
;
90
};
91
92
93
#endif
94
Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)