MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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/environment.h>
10 #include <vlutil/vlString.h>
11 #include <vlutil/vlFilename.h>
12 #include <iosfwd>
13 #include <vector>
14 #include "assistantEnums.h"
15 
17 {
19  nodeId(),
20  imageFile(),
22  MAKRti::DtString nodeId;
23  MAKRti::DtFilename imageFile;
25 };
26 
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:
60 
61 protected:
62 
64  MAKRti::DtEnvironment myEnvironment;
65 
67  MAKRti::DtFilename myXmlFile;
68 
70  MAKRti::DtString myReadFileVersion;
71 
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 
DtFederateIdentifierType fedIdType
Definition: nodeIconXmlReader.h:24
static const MAKRti::DtString theFederateNameString
String constants for parsing the xml file.
Definition: nodeIconXmlReader.h:87
static const MAKRti::DtString theIdTypeString
String constants for parsing the xml file.
Definition: nodeIconXmlReader.h:85
virtual MAKRti::DtString fedIdTypeToString(DtFederateIdentifierType idType) const
Convert a DtFederateIdentifierType to a string for the xml file.
DtNodeIconFile()
Definition: nodeIconXmlReader.h:18
bool myFileWasRead
Indicates whether a cache file was found and read.
Definition: nodeIconXmlReader.h:73
virtual void parse()
Parse the file.
std::vector< DtNodeIconFile > myImageFiles
Vector that holds the simple image file information.
Definition: nodeIconXmlReader.h:76
static const MAKRti::DtString theIdentifierString
String constants for parsing the xml file.
Definition: nodeIconXmlReader.h:83
static const MAKRti::DtString theFederateTypeString
String constants for parsing the xml file.
Definition: nodeIconXmlReader.h:86
MAKRti::DtEnvironment myEnvironment
the cached environment
Definition: nodeIconXmlReader.h:64
virtual void setNodeIconFiles(const std::vector< DtNodeIconFile > &iconFiles)
Set the currently used file names and save to disk.
DtNodeIconXmlReader(const MAKRti::DtFilename &xmlFile)
Constructor.
virtual DtFederateIdentifierType stringToFedIdType(const MAKRti::DtString &str) const
Convert an xml string to a DtFederateIdentifierType.
Non copyable.
Definition: nodeIconXmlReader.h:28
static const MAKRti::DtString theVersionString
String constants for parsing the xml file.
Definition: nodeIconXmlReader.h:80
static const MAKRti::DtString theProcessNameString
String constants for parsing the xml file.
Definition: nodeIconXmlReader.h:88
static const MAKRti::DtString theNodeIconString
String constants for parsing the xml file.
Definition: nodeIconXmlReader.h:82
Definition: nodeIconXmlReader.h:16
virtual const std::vector< DtNodeIconFile > & getNodeIconFiles()
Return the loaded file names.
MAKRti::DtString nodeId
Definition: nodeIconXmlReader.h:22
DtFederateIdentifierType
Definition: assistantEnums.h:10
static const MAKRti::DtString theIconFileString
String constants for parsing the xml file.
Definition: nodeIconXmlReader.h:84
virtual ~DtNodeIconXmlReader()
Destructor.
DtNodeIconXmlReader & operator=(const DtNodeIconXmlReader &rhs)
MAKRti::DtFilename imageFile
Definition: nodeIconXmlReader.h:23
MAKRti::DtString myReadFileVersion
The version of the file that was read.
Definition: nodeIconXmlReader.h:70
static const MAKRti::DtString theRootNodeString
String constants for parsing the xml file.
Definition: nodeIconXmlReader.h:81
Definition: assistantEnums.h:12
MAKRti::DtFilename myXmlFile
the name of the default xml file to read from
Definition: nodeIconXmlReader.h:67

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)