![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2005 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: remoteControlInit.h,v $ $Revision: 1.4 $ $State: Exp $ 00007 *******************************************************************************/ 00008 #ifndef _f18Init_H_ 00009 #define _f18Init_H_ 00010 00011 #include <vl/exConnInit.h> 00012 #include <vlutil/vlString.h> 00013 #include <mtl/lispEnv.h> 00014 #include <matrix/vlVector.h> 00015 00016 class DtMtlEnvironment; 00017 00018 //DtRemoteControlInitializer derives from DtVrlApplicationInitializer and 00019 //configures command line arguments for the remoteControl application. 00020 //DtVrlApplicationInitializer contains 00021 //default behavior for protocol specific parameters, while 00022 //DtRemoteControlInitializer contains behavior particular to the remoteControl 00023 //application. 00024 // 00025 //parseCmdLine() parses the command line arguments specified in 00026 //this class and DtVrlApplicationInitializer. loadMtlFile() can be 00027 //called (defined in DtVrlApplicationInitializer) with an MTL file name. 00028 //This will parse the MTL file specified and set those variables registered 00029 class DtRemoteControlInitializer : public DtVrlApplicationInitializer 00030 { 00031 public: 00032 DtRemoteControlInitializer(int argc, char* argv[]); 00033 00034 virtual ~DtRemoteControlInitializer(); 00035 00036 //These are parameters used by the remoteControl app that are defined in the 00037 //DIS DtVrlApplicationInitializer, but not the HLA version, so define them 00038 //for HLA here 00039 #if DtHLA 00040 virtual void setApplicationNumber(int num); 00041 virtual int applicationNumber() const; 00042 00043 virtual void setSiteId(int id); 00044 virtual int siteId() const; 00045 #endif 00046 00047 protected: 00048 //Register the MTL/Command Line parameters. Non-virtual 00049 //since they are called from the constructor 00050 void initMtl(); 00051 void initCmdLine(); 00052 00053 protected: 00054 #if DtHLA 00055 //This is already in the DIS base-class... For the remoteControl app, 00056 //make one for HLA 00057 DtConfigVariable<int> myApplicationNumber; 00058 DtConfigVariable<int> mySiteId; 00059 #endif 00060 }; 00061 00062 #endif 00063