MAK RTIspy API Documentation for HLA 1516
compInfo.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: componentInfo.h,v $ $Revision: $ $State: $
7 *******************************************************************************/
8 
9 #ifndef componentInfo_H_
10 #define componentInfo_H_
11 
15 
16 #include <rtiAssistantClient.h>
17 #include <vlutil/vlString.h>
18 #include <vlutil/vlSmartPointers.h>
19 
22 
26 {
27 public:
28 
30  myCompId( -1 ),
31  myName(),
32  myProcessName(),
33  myProcessId('\0'),
34  myCommandArgs(),
36  myLogFilename(),
37  myNotifyLevel( DtNlFatal ),
39  myRtiConnUsed(),
41  myIsJoined( false ),
42  myWebSpyAddr(),
44  myWebSpyRtiPort(0),
45  myWebSpyId(0),
48 
50 
51  void setCompId(int id) { myCompId = id; }
52  int compId() const { return myCompId; }
53 
54  void setName(const MAKRti::DtString& compName) { myName = compName; }
55  MAKRti::DtString name() const { return myName; }
56 
57  void setProcessName(const MAKRti::DtString& procName) { myProcessName = procName; }
58  MAKRti::DtString processName() const { return myProcessName; }
59 
60  void setProcessId(const MAKRti::DtString& id) { myProcessId = id; }
61  MAKRti::DtString processId() const { return myProcessId; }
62 
63  void setCmndArgs(const MAKRti::DtString& args) { myCommandArgs = args; }
64  MAKRti::DtString cmndArgs() const { return myCommandArgs; }
65 
68 
69  void setLogFileName(const MAKRti::DtString& log) { myLogFilename = log; }
70  MAKRti::DtString logFileName() const { return myLogFilename; }
71 
72  void setNotifyLevel(MAKRti::DtNotifyLevelType level) { myNotifyLevel = level; }
73  MAKRti::DtNotifyLevelType notifyLevel() const { return myNotifyLevel; }
74 
75  void setLicenseServer(const MAKRti::DtString& licServ) { myLicenseServer = licServ; }
76  MAKRti::DtString licenseServer() const { return myLicenseServer; }
77 
78  void setWebSpyAddr(const MAKRti::DtInetAddr& addr) { myWebSpyAddr = addr; }
79  MAKRti::DtInetAddr webSpyAddr() const { return myWebSpyAddr; }
80 
81  void setWebSpyHttpPort(int port) { myWebSpyHttpPort = port; }
82  int webSpyHttpPort() const { return myWebSpyHttpPort; }
83 
84  void setWebSpyRtiPort(int port) { myWebSpyRtiPort = port; }
85  int webSpyRtiPort() const { return myWebSpyRtiPort; }
86 
87  void setWebSpyId(int id) { myWebSpyId = id; }
88  int webSpyId() const { return myWebSpyId; }
89 
90  void setConnUsed(DtBoost::shared_ptr<const DtRtiConnectionInfo> conn) { myRtiConnUsed = conn; }
91  DtBoost::shared_ptr<const DtRtiConnectionInfo> connUsed() const { return myRtiConnUsed; }
92 
93  void setConfigUsed(DtBoost::shared_ptr<const DtRtiConnectionConfigurationInfo> conn) { myRtiConfigUsed = conn; }
94  DtBoost::shared_ptr<const DtRtiConnectionConfigurationInfo> configUsed() const { return myRtiConfigUsed; }
95 
96  void setAcceptDisplayCmds(bool accept) { myAcceptDisplayCmds = accept; }
97  int acceptDisplayCmds() const { return myAcceptDisplayCmds; }
98 
99  void setIsJoined(bool joined) { myIsJoined = joined; }
100  bool isJoined() const { return myIsJoined; }
101 
103  bool hasRtiexec() const { return myHasRtiexec; }
104 
105  void setIsNetStatsEnabled(bool netStatsEnabled) { myIsNetStatsEnabled = netStatsEnabled; }
106  bool isNetStatsEnabled() const { return myIsNetStatsEnabled; }
107 
108 protected:
109 
110  int myCompId;
111  MAKRti::DtString myName;
112  MAKRti::DtString myProcessName;
113  MAKRti::DtString myProcessId;
114  MAKRti::DtString myCommandArgs;
116  MAKRti::DtFilename myLogFilename;
117  MAKRti::DtNotifyLevelType myNotifyLevel;
118  MAKRti::DtString myLicenseServer;
119  DtBoost::shared_ptr<const DtRtiConnectionInfo> myRtiConnUsed;
120  DtBoost::shared_ptr<const DtRtiConnectionConfigurationInfo> myRtiConfigUsed;
122 
123  // Web server info
124  MAKRti::DtInetAddr myWebSpyAddr;
128 
129  bool myIsJoined; // federates only
130  bool myHasRtiexec; // forwarders only
131 
132  bool myIsNetStatsEnabled; // federates only (for now)
133 };
134 
135 #endif

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)