MAK RTIspy API Documentation for HLA Evolved
assistantConfig.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #ifndef DtAssistantConfig_H_
10 #define DtAssistantConfig_H_
11 
12 #include <baseConfig.h>
13 
14 #define DtDECLARE_UINT_PARAMETER(accessor, mutator) \
15  public: \
16  virtual unsigned int accessor(); \
17  virtual void mutator( unsigned int val ); \
18  protected: \
19  MAKRti::DtEnvValueSP my##accessor##Val;
20 
21 #define DtDECLARE_BOOL_PARAMETER(accessor, mutator) \
22  public: \
23  virtual bool accessor(); \
24  virtual void mutator( bool val ); \
25  protected: \
26  MAKRti::DtEnvValueSP my##accessor##Val;
27 
28 #define DtDECLARE_FLOAT_PARAMETER(accessor, mutator) \
29  public: \
30  virtual float accessor(); \
31  virtual void mutator( float val ); \
32  protected: \
33  MAKRti::DtEnvValueSP my##accessor##Val;
34 
39 {
40 public:
41 
46  DtAssistantConfig( const MAKRti::DtFilename& xmlFile );
47 
49  virtual ~DtAssistantConfig();
50 
51  DtDECLARE_UINT_PARAMETER(logUpdateInterval, setLogUpdateInterval)
53  DtDECLARE_UINT_PARAMETER(latencyTestInteractionPeriodMs, setLatencyTestInteractionPeriodMs)
55  DtDECLARE_UINT_PARAMETER(latencyTestPayloadBytes, setLatencyTestPayloadBytes)
56  DtDECLARE_BOOL_PARAMETER(displayPopupsAsNotifications, setDisplayPopupsAsNotifications)
57  DtDECLARE_BOOL_PARAMETER(enableNotifications, setEnableNotifications)
59  DtDECLARE_UINT_PARAMETER(assistantUpdateIntervalSec, setAssistantUpdateIntervalSec)
60  DtDECLARE_UINT_PARAMETER(lrcNetStatsUpdateIntervalSec, setLrcNetStatsUpdateIntervalSec)
61  DtDECLARE_FLOAT_PARAMETER(defunctFederateRemovalTimeSec, setDefunctFederateRemovalTimeSec)
63  DtDECLARE_BOOL_PARAMETER(acceptRemoteCommands, setAcceptRemoteCommands)
65  DtDECLARE_BOOL_PARAMETER(defaultToUnlicensed, setDefaultToUnlicensed)
66  DtDECLARE_FLOAT_PARAMETER(warningTickInterval, setWarningTickInterval)
67  DtDECLARE_BOOL_PARAMETER(displayRemoteNotifications, setDisplayRemoteNotifications)
68  DtDECLARE_BOOL_PARAMETER(displayFederationColors, setDisplayFederationColors)
69  DtDECLARE_UINT_PARAMETER(federateIdentifier, setFederateIdentifier)
70 
71 protected:
72 
74  virtual void setDefaultConfig(){};
75 
76 private:
77 
81 
82 };
83 
84 inline std::ostream& operator<<( std::ostream& ostr, const DtAssistantConfig& config )
85 {
86  return config.print( ostr );
87 }
88 
89 #endif // DtAssistantConfig_H_

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)