VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
remoteControlInit.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: remoteControlInit.h,v $ $Revision: 1.4 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef _f18Init_H_
9 #define _f18Init_H_
10 
11 #include <vl/exerciseConnInitializer.h>
12 #include <vlutil/vlString.h>
13 #include <mtl/mtlEnvironment.h>
14 #include <matrix/vlVector.h>
15 
16 class DtMtlEnvironment;
17 
18 //DtRemoteControlInitializer derives from DtVrlApplicationInitializer and
19 //configures command line arguments for the remoteControl application.
20 //DtVrlApplicationInitializer contains
21 //default behavior for protocol specific parameters, while
22 //DtRemoteControlInitializer contains behavior particular to the remoteControl
23 //application.
24 //
25 //parseCmdLine() parses the command line arguments specified in
26 //this class and DtVrlApplicationInitializer. loadMtlFile() can be
27 //called (defined in DtVrlApplicationInitializer) with an MTL file name.
28 //This will parse the MTL file specified and set those variables registered
30 {
31 public:
32  DtRemoteControlInitializer(int argc, char* argv[]);
33 
35 
36  //These are parameters used by the remoteControl app that are defined in the
37  //DIS DtVrlApplicationInitializer, but not the HLA version, so define them
38  //for HLA here
39 #if DtHLA
40  virtual void setApplicationNumber(int num);
41  virtual int applicationNumber() const;
42 
43  virtual void setSiteId(int id);
44  virtual int siteId() const;
45 #endif
46 
47 protected:
48  //Register the MTL/Command Line parameters. Non-virtual
49  //since they are called from the constructor
50  void initMtl();
51  void initCmdLine();
52 
53 protected:
54 #if DtHLA
55  //This is already in the DIS base-class... For the remoteControl app,
56  //make one for HLA
57  DtConfigVariable<int> myApplicationNumber;
58  DtConfigVariable<int> mySiteId;
59 #endif
60 };
61 
62 #endif
63 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)