![]() |
MAK RTIspy API Documentation for HLA 1516
|
00001 /********************************************************************* 00002 ** Copyright (c) 2010 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: componentInfo.h,v $ $Revision: $ $State: $ 00007 *******************************************************************************/ 00008 00009 #ifndef componentInfo_H_ 00010 #define componentInfo_H_ 00011 00015 00016 #include <rtiAssistantClient.h> 00017 #include <vlutil/vlString.h> 00018 #include <vlutil/vlSmartPointers.h> 00019 00020 class DtRtiConnectionInfo; 00021 00024 class DtAssistantComponentInfo 00025 { 00026 public: 00027 00028 DtAssistantComponentInfo() : 00029 myCompId( -1 ), 00030 myName(), 00031 myProcessName(), 00032 myProcessId('\0'), 00033 myCommandArgs(), 00034 myType( DtAssistantNoComponentType ), 00035 myLogFilename(), 00036 myNotifyLevel( DtNlFatal ), 00037 myLicenseServer(), 00038 myRtiConnUsed(), 00039 myAcceptDisplayCmds( true ), 00040 myIsJoined( false ), 00041 myWebSpyAddr(), 00042 myWebSpyHttpPort(0), 00043 myWebSpyRtiPort(0), 00044 myWebSpyId(0), 00045 myHasRtiexec( false ) {} 00046 00047 ~DtAssistantComponentInfo() {} 00048 00049 void setCompId(int id) { myCompId = id; } 00050 int compId() const { return myCompId; } 00051 00052 void setName(const MAKRti::DtString& compName) { myName = compName; } 00053 MAKRti::DtString name() const { return myName; } 00054 00055 void setProcessName(const MAKRti::DtString& procName) { myProcessName = procName; } 00056 MAKRti::DtString processName() const { return myProcessName; } 00057 00058 void setProcessId(const MAKRti::DtString& id) { myProcessId = id; } 00059 MAKRti::DtString processId() const { return myProcessId; } 00060 00061 void setCmndArgs(const MAKRti::DtString& args) { myCommandArgs = args; } 00062 MAKRti::DtString cmndArgs() const { return myCommandArgs; } 00063 00064 void setCompType(DtAssistantComponentType type) { myType = type; } 00065 DtAssistantComponentType compType() const { return myType; } 00066 00067 void setLogFileName(const MAKRti::DtString& log) { myLogFilename = log; } 00068 MAKRti::DtString logFileName() const { return myLogFilename; } 00069 00070 void setNotifyLevel(MAKRti::DtNotifyLevelType level) { myNotifyLevel = level; } 00071 MAKRti::DtNotifyLevelType notifyLevel() const { return myNotifyLevel; } 00072 00073 void setLicenseServer(const MAKRti::DtString& licServ) { myLicenseServer = licServ; } 00074 MAKRti::DtString licenseServer() const { return myLicenseServer; } 00075 00076 void setWebSpyAddr(const MAKRti::DtInetAddr& addr) { myWebSpyAddr = addr; } 00077 MAKRti::DtInetAddr webSpyAddr() const { return myWebSpyAddr; } 00078 00079 void setWebSpyHttpPort(int port) { myWebSpyHttpPort = port; } 00080 int webSpyHttpPort() const { return myWebSpyHttpPort; } 00081 00082 void setWebSpyRtiPort(int port) { myWebSpyRtiPort = port; } 00083 int webSpyRtiPort() const { return myWebSpyRtiPort; } 00084 00085 void setWebSpyId(int id) { myWebSpyId = id; } 00086 int webSpyId() const { return myWebSpyId; } 00087 00088 void setConnUsed(DtBoost::shared_ptr<const DtRtiConnectionInfo> conn) { myRtiConnUsed = conn; } 00089 DtBoost::shared_ptr<const DtRtiConnectionInfo> connUsed() const { return myRtiConnUsed; } 00090 00091 void setConfigUsed(DtBoost::shared_ptr<const DtRtiConnectionConfigurationInfo> conn) { myRtiConfigUsed = conn; } 00092 DtBoost::shared_ptr<const DtRtiConnectionConfigurationInfo> configUsed() const { return myRtiConfigUsed; } 00093 00094 void setAcceptDisplayCmds(bool accept) { myAcceptDisplayCmds = accept; } 00095 int acceptDisplayCmds() const { return myAcceptDisplayCmds; } 00096 00097 void setIsJoined(bool joined) { myIsJoined = joined; } 00098 bool isJoined() const { return myIsJoined; } 00099 00100 void setHasRtiexec(bool hasRtiexec) { myHasRtiexec = hasRtiexec; } 00101 bool hasRtiexec() const { return myHasRtiexec; } 00102 00103 protected: 00104 00105 int myCompId; 00106 MAKRti::DtString myName; 00107 MAKRti::DtString myProcessName; 00108 MAKRti::DtString myProcessId; 00109 MAKRti::DtString myCommandArgs; 00110 DtAssistantComponentType myType; 00111 MAKRti::DtFilename myLogFilename; 00112 MAKRti::DtNotifyLevelType myNotifyLevel; 00113 MAKRti::DtString myLicenseServer; 00114 DtBoost::shared_ptr<const DtRtiConnectionInfo> myRtiConnUsed; 00115 DtBoost::shared_ptr<const DtRtiConnectionConfigurationInfo> myRtiConfigUsed; 00116 bool myAcceptDisplayCmds; 00117 00118 // Web server info 00119 MAKRti::DtInetAddr myWebSpyAddr; 00120 int myWebSpyHttpPort; 00121 int myWebSpyRtiPort; 00122 int myWebSpyId; 00123 00124 bool myIsJoined; // federates only 00125 bool myHasRtiexec; // forwarders only 00126 }; 00127 00128 #endif