MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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)
52  DtDECLARE_BOOL_PARAMETER(keepAlive, setKeepAlive)
53  DtDECLARE_BOOL_PARAMETER(sendForeignQuery, setSendForeignQuery)
54  DtDECLARE_UINT_PARAMETER(latencyTestInteractionPeriodMs, setLatencyTestInteractionPeriodMs)
55  DtDECLARE_UINT_PARAMETER(latencyTestNumInteractions, setLatencyTestNumInteractions)
56  DtDECLARE_UINT_PARAMETER(latencyTestPayloadBytes, setLatencyTestPayloadBytes)
57  DtDECLARE_BOOL_PARAMETER(displayPopupsAsNotifications, setDisplayPopupsAsNotifications)
58  DtDECLARE_BOOL_PARAMETER(enableNotifications, setEnableNotifications)
59  DtDECLARE_UINT_PARAMETER(lightweightMemorySec, setLightweightMemorySec)
60  DtDECLARE_UINT_PARAMETER(assistantUpdateIntervalSec, setAssistantUpdateIntervalSec)
61  DtDECLARE_UINT_PARAMETER(lrcNetStatsUpdateIntervalSec, setLrcNetStatsUpdateIntervalSec)
62  DtDECLARE_FLOAT_PARAMETER(defunctFederateRemovalTimeSec, setDefunctFederateRemovalTimeSec)
63  DtDECLARE_BOOL_PARAMETER(showRtiexecStartupPrompt, setShowRtiexecStartupPrompt)
64  DtDECLARE_BOOL_PARAMETER(acceptRemoteCommands, setAcceptRemoteCommands)
65  DtDECLARE_BOOL_PARAMETER(assistantPersistent, setAssistantPersistent)
66  DtDECLARE_BOOL_PARAMETER(defaultToUnlicensed, setDefaultToUnlicensed)
67  DtDECLARE_FLOAT_PARAMETER(warningTickInterval, setWarningTickInterval)
68  DtDECLARE_BOOL_PARAMETER(displayRemoteNotifications, setDisplayRemoteNotifications)
69  DtDECLARE_BOOL_PARAMETER(displayFederationColors, setDisplayFederationColors)
70  DtDECLARE_UINT_PARAMETER(federateIdentifier, setFederateIdentifier)
71 
72 protected:
73 
75  virtual void setDefaultConfig(){};
76 
77 private:
78 
82 
83 };
84 
85 inline std::ostream& operator<<( std::ostream& ostr, const DtAssistantConfig& config )
86 {
87  return config.print( ostr );
88 }
89 
90 #endif // DtAssistantConfig_H_
virtual std::ostream & print(std::ostream &ostr) const
Prints the configuration to the given output stream.
std::ostream & operator<<(std::ostream &ostr, const DtAssistantConfig &config)
Definition: assistantConfig.h:85
Stores the Assistant configuration information and handles saving and loading this information from a...
Definition: assistantConfig.h:38
#define DtDECLARE_UINT_PARAMETER(accessor, mutator)
Definition: assistantConfig.h:14
DtBaseConfig & operator=(const DtBaseConfig &)
#define DtDECLARE_FLOAT_PARAMETER(accessor, mutator)
Definition: assistantConfig.h:28
Stores the base configuration information and handles saving and loading this information from an XML...
Definition: baseConfig.h:26
#define DtDECLARE_BOOL_PARAMETER(accessor, mutator)
Definition: assistantConfig.h:21
#define DT_DLL_ASSISTANTAPP
Definition: rtiMsConfig.h:151
virtual void setDefaultConfig()
Sets the default configuration.
Definition: assistantConfig.h:75

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)