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) 2025 MAK Technologies, Inc.
3  * All rights reserved.
4  ******************************************************************************/
5 
6 #pragma once
7 
8 #include <vl/exerciseConnInitializer.h>
9 #include <vlutil/vlString.h>
10 #include <mtl/mtlEnvironment.h>
11 #include <matrix/vlVector.h>
12 
13 class DtMtlEnvironment;
14 
15 // DtRemoteControlInitializer derives from DtVrlApplicationInitializer and
16 // configures command line arguments for the remoteControl application.
17 // DtVrlApplicationInitializer contains
18 // default behavior for protocol specific parameters, while
19 // DtRemoteControlInitializer contains behavior particular to the remoteControl
20 // application.
21 //
22 // parseCmdLine() parses the command line arguments specified in
23 // this class and DtVrlApplicationInitializer. loadMtlFile() can be
24 // called (defined in DtVrlApplicationInitializer) with an MTL file name.
25 // This will parse the MTL file specified and set those variables registered
27 {
28 public:
29  DtRemoteControlInitializer(int argc, char* argv[], const DtString& appName, const DtString& defaultConfigFilePath);
30 
31  virtual ~DtRemoteControlInitializer() override;
32 
33  virtual void setSessionId(int);
34  virtual int sessionId() const;
35 
36 protected:
37  // Register the MTL/Command Line parameters. Non-virtual
38  // since they are called from the constructor
39  void initMtl();
40  void initCmdLine();
41 
42 protected:
43  DtConfigVariable<int> mySessionId;
44 };
DtRemoteControlInitializer(int argc, char *argv[], const DtString &defaultConfigFilePath)
virtual int sessionId() const
virtual ~DtRemoteControlInitializer() override
DtConfigVariable< int > mySessionId
Definition: remoteControlInit.h:43
virtual void setSessionId(int)
Definition: remoteControlInit.h:26

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)