VR-Forces Developer's Guide
 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  virtual void setSessionId(int);
37  virtual int sessionId() const;
38 
39  //These are parameters used by the remoteControl app that are defined in the
40  //DIS DtVrlApplicationInitializer, but not the HLA version, so define them
41  //for HLA here
42 #if DtHLA
43  virtual void setApplicationNumber(int num);
44  virtual int applicationNumber() const;
45 
46  virtual void setSiteId(int id);
47  virtual int siteId() const;
48 #endif
49 
50 protected:
51  //Register the MTL/Command Line parameters. Non-virtual
52  //since they are called from the constructor
53  void initMtl();
54  void initCmdLine();
55 
56 protected:
57  DtConfigVariable<int> mySessionId;
58 
59 #if DtHLA
60  //This is already in the DIS base-class... For the remoteControl app,
61  //make one for HLA
62  DtConfigVariable<int> myApplicationNumber;
63  DtConfigVariable<int> mySiteId;
64 #endif
65 };
66 
67 #endif
68 
virtual void setApplicationNumber(int num)
DtConfigVariable< int > myApplicationNumber
Definition: remoteControlInit.h:57
virtual int sessionId() const
DtRemoteControlInitializer(int argc, char *argv[])
virtual ~DtRemoteControlInitializer()
DtConfigVariable< int > mySiteId
Definition: remoteControlInit.h:58
virtual void setSiteId(int id)
virtual int siteId() const
DtConfigVariable< int > mySessionId
Definition: remoteControlInit.h:57
virtual void setSessionId(int)
virtual int applicationNumber() const
Definition: remoteControlInit.h:29

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)