MAK RTIspy API Documentation for HLA Evolved
assistantConfig.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2008 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: assistantConfig.h,v $ $Revision: 1.23 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef DtAssistantConfig_H_
00013 #define DtAssistantConfig_H_
00014 
00015 #include <baseConfig.h>
00016 
00017 #define DtDECLARE_UINT_PARAMETER(accessor, mutator)   \
00018    public:                                            \
00019       virtual unsigned int accessor();                \
00020       virtual void mutator( unsigned int val );       \
00021    protected:                                         \
00022       MAKRti::DtEnvValueSP my##accessor##Val;
00023 
00024 #define DtDECLARE_BOOL_PARAMETER(accessor, mutator)   \
00025    public:                                            \
00026       virtual bool accessor();                        \
00027       virtual void mutator( bool val );               \
00028    protected:                                         \
00029       MAKRti::DtEnvValueSP my##accessor##Val;
00030 
00031 #define DtDECLARE_FLOAT_PARAMETER(accessor, mutator)  \
00032    public:                                            \
00033       virtual float accessor();                       \
00034       virtual void mutator( float val );              \
00035    protected:                                         \
00036       MAKRti::DtEnvValueSP my##accessor##Val;
00037 
00041 class DT_DLL_ASSISTANTAPP DtAssistantConfig : public DtBaseConfig
00042 {
00043 public:
00044 
00049    DtAssistantConfig( const MAKRti::DtFilename& xmlFile );
00050 
00052    virtual ~DtAssistantConfig();
00053 
00054    DtDECLARE_UINT_PARAMETER(logUpdateInterval, setLogUpdateInterval)
00055    DtDECLARE_BOOL_PARAMETER(keepAlive, setKeepAlive)
00056    DtDECLARE_BOOL_PARAMETER(showViewLogPrompt, setShowViewLogPrompt)
00057    DtDECLARE_BOOL_PARAMETER(alwaysViewLog, setAlwaysViewLog)
00058    DtDECLARE_UINT_PARAMETER(latencyTestInteractionPeriodMs, setLatencyTestInteractionPeriodMs)
00059    DtDECLARE_UINT_PARAMETER(latencyTestNumInteractions, setLatencyTestNumInteractions)
00060    DtDECLARE_UINT_PARAMETER(latencyTestPayloadBytes, setLatencyTestPayloadBytes)
00061    DtDECLARE_BOOL_PARAMETER(displayPopupsAsNotifications, setDisplayPopupsAsNotifications)
00062    DtDECLARE_BOOL_PARAMETER(enableNotifications, setEnableNotifications)
00063    DtDECLARE_BOOL_PARAMETER(enableLoopbackDevice, setEnableLoopbackDevice)
00064    DtDECLARE_UINT_PARAMETER(lightweightMemorySec, setLightweightMemorySec)
00065    DtDECLARE_UINT_PARAMETER(assistantUpdateIntervalSec, setAssistantUpdateIntervalSec)
00066    DtDECLARE_FLOAT_PARAMETER(defunctFederateRemovalTimeSec, setDefunctFederateRemovalTimeSec)
00067    DtDECLARE_BOOL_PARAMETER(showRtiexecStartupPrompt, setShowRtiexecStartupPrompt)
00068    DtDECLARE_BOOL_PARAMETER(acceptRemoteCommands, setAcceptRemoteCommands)
00069    DtDECLARE_BOOL_PARAMETER(assistantPersistent, setAssistantPersistent)
00070    DtDECLARE_BOOL_PARAMETER(defaultToUnlicensed, setDefaultToUnlicensed)
00071    DtDECLARE_FLOAT_PARAMETER(warningTickInterval, setWarningTickInterval)
00072    DtDECLARE_BOOL_PARAMETER(displayRemoteNotifications, setDisplayRemoteNotifications)
00073 
00074 protected:
00075 
00077    virtual void setDefaultConfig(){};
00078 
00079 private:
00080 
00082    DtAssistantConfig( const DtAssistantConfig& );
00083    DtAssistantConfig& operator=( const DtAssistantConfig& );   
00084 
00085 };
00086 
00087 inline std::ostream& operator<<( std::ostream& ostr, const DtAssistantConfig& config )
00088 {
00089    return config.print( ostr );
00090 }
00091 
00092 #endif // DtAssistantConfig_H_

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)