MAK RTIspy API Documentation for HLA 1.3
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
rtiAssistantApp
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
20
class
DtRtiConnectionInfo
;
21
class
DtRtiConnectionConfigurationInfo
;
22
25
class
DtAssistantComponentInfo
26
{
27
public
:
28
29
DtAssistantComponentInfo
() :
30
myCompId
( -1 ),
31
myName
(),
32
myProcessName
(),
33
myProcessId
(
'\0'
),
34
myCommandArgs
(),
35
myType
(
DtAssistantNoComponentType
),
36
myLogFilename
(),
37
myNotifyLevel
( DtNlFatal ),
38
myLicenseServer
(),
39
myRtiConnUsed
(),
40
myAcceptDisplayCmds
(
true
),
41
myIsJoined
(
false
),
42
myHasRtiexec
(
false
),
43
myIsNetStatsEnabled
(
false
) {}
44
45
~DtAssistantComponentInfo
() {}
46
47
void
setCompId
(
int
id
) {
myCompId
= id; }
48
int
compId
()
const
{
return
myCompId
; }
49
50
void
setName
(
const
MAKRti::DtString& compName) {
myName
= compName; }
51
MAKRti::DtString
name
()
const
{
return
myName
; }
52
53
void
setProcessName
(
const
MAKRti::DtString& procName) {
myProcessName
= procName; }
54
MAKRti::DtString
processName
()
const
{
return
myProcessName
; }
55
56
void
setProcessId
(
const
MAKRti::DtString&
id
) {
myProcessId
= id; }
57
MAKRti::DtString
processId
()
const
{
return
myProcessId
; }
58
59
void
setCmndArgs
(
const
MAKRti::DtString& args) {
myCommandArgs
= args; }
60
MAKRti::DtString
cmndArgs
()
const
{
return
myCommandArgs
; }
61
62
void
setCompType
(
DtAssistantComponentType
type) {
myType
= type; }
63
DtAssistantComponentType
compType
()
const
{
return
myType
; }
64
65
void
setLogFileName
(
const
MAKRti::DtString& log) {
myLogFilename
= log; }
66
MAKRti::DtString
logFileName
()
const
{
return
myLogFilename
; }
67
68
void
setNotifyLevel
(MAKRti::DtNotifyLevelType level) {
myNotifyLevel
= level; }
69
MAKRti::DtNotifyLevelType
notifyLevel
()
const
{
return
myNotifyLevel
; }
70
71
void
setLicenseServer
(
const
MAKRti::DtString& licServ) {
myLicenseServer
= licServ; }
72
MAKRti::DtString
licenseServer
()
const
{
return
myLicenseServer
; }
73
74
void
setConnUsed
(DtBoost::shared_ptr<const DtRtiConnectionInfo> conn) {
myRtiConnUsed
= conn; }
75
DtBoost::shared_ptr<const DtRtiConnectionInfo>
connUsed
()
const
{
return
myRtiConnUsed
; }
76
77
void
setConfigUsed
(DtBoost::shared_ptr<const DtRtiConnectionConfigurationInfo> conn) {
myRtiConfigUsed
= conn; }
78
DtBoost::shared_ptr<const DtRtiConnectionConfigurationInfo>
configUsed
()
const
{
return
myRtiConfigUsed
; }
79
80
void
setAcceptDisplayCmds
(
bool
accept) {
myAcceptDisplayCmds
= accept; }
81
int
acceptDisplayCmds
()
const
{
return
myAcceptDisplayCmds
; }
82
83
void
setIsJoined
(
bool
joined) {
myIsJoined
= joined; }
84
bool
isJoined
()
const
{
return
myIsJoined
; }
85
86
void
setHasRtiexec
(
bool
hasRtiexec
) {
myHasRtiexec
=
hasRtiexec
; }
87
bool
hasRtiexec
()
const
{
return
myHasRtiexec
; }
88
89
void
setIsNetStatsEnabled
(
bool
netStatsEnabled) {
myIsNetStatsEnabled
= netStatsEnabled; }
90
bool
isNetStatsEnabled
()
const
{
return
myIsNetStatsEnabled
; }
91
92
protected
:
93
94
int
myCompId
;
95
MAKRti::DtString
myName
;
96
MAKRti::DtString
myProcessName
;
97
MAKRti::DtString
myProcessId
;
98
MAKRti::DtString
myCommandArgs
;
99
DtAssistantComponentType
myType
;
100
MAKRti::DtFilename
myLogFilename
;
101
MAKRti::DtNotifyLevelType
myNotifyLevel
;
102
MAKRti::DtString
myLicenseServer
;
103
DtBoost::shared_ptr<const DtRtiConnectionInfo>
myRtiConnUsed
;
104
DtBoost::shared_ptr<const DtRtiConnectionConfigurationInfo>
myRtiConfigUsed
;
105
bool
myAcceptDisplayCmds
;
106
107
bool
myIsJoined
;
// federates only
108
bool
myHasRtiexec
;
// forwarders only
109
110
bool
myIsNetStatsEnabled
;
// federates only (for now)
111
};
112
113
#endif
Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (
www.mak.com
)