VR-Exchange 2.9 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
portalApp.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2015 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portalApp/dllExport.h>
13 #include <vlutil/vlNetTypes.h>
14 
15 class DtString;
16 class QApplication;
17 
18 namespace MAKVrExchange
19 {
20 
21  class DtQueueManager;
22  class DtPortalAppGui;
23  class DtPortalAppInitializer;
24 
30  {
31  public:
32 
33  typedef DtQueueManager* (*DtQueueManagerCreator)(
34  DtU32 numberOfBucketsInQueue ,
35  DtU32 payloadSizePerBucket,
36  int port,
37  DtU16 theBroker,
38  const DtString& objectQueueName,
39  const DtString& interactionQueueName,
40  const DtString& controlQueueName);
41 
42  public:
43 
46 
48  virtual ~DtPortalApp();
49 
51  virtual void initialize();
52 
54  virtual void initFileLogging( const DtPortalAppInitializer& init );
55 
58  virtual int run();
59 
62  virtual DtPortalAppGui* portalAppGui();
63 
65  static void setQueueManagerCreator( DtQueueManagerCreator func );
66 
67  private:
68 
70  DtPortalApp( const DtPortalApp& orig );
71 
73  DtPortalApp& operator = ( const DtPortalApp& orig );
74 
75  protected:
76 
77  static DtQueueManagerCreator theQueueManagerCreator;
78 
82  int myArgc;
83  QApplication* myQtApp;
86 
87  };
88 
89 }
The DtPortalApp is the main class for the Portal application.
Definition: portalApp.h:29
int myArgc
Definition: portalApp.h:82
bool myOkToShutdownFlag
Definition: portalApp.h:81
DtPortalAppInitializer instances are used to parse the mtl file/command line arguments, and store the parameters.
Definition: portalAppInitializer.h:31
static DtQueueManagerCreator theQueueManagerCreator
Definition: portalApp.h:77
DtPortalAppGui - This is the main class for the GUI version of the portal.
Definition: portalAppGui.h:51
DtQueueManager * myQueueManager
Definition: portalApp.h:79
#define DT_DLL_LIBPORTALAPP
Definition: include/portalApp/dllExport.h:20
bool myUseGuiFlag
Definition: portalApp.h:80
QApplication * myQtApp
a fix for qt problem
Definition: portalApp.h:83
A DtQueueManager is responsible for creating and deleting all Shared memory Queues used by the portal...
Definition: queueManager.h:40
DtPortalAppGui * myMainWindow
Definition: portalApp.h:84
DtPortalAppInitializer & myInitializer
Definition: portalApp.h:85

Document ID: Generated on Tue Jun 25 16:45:35 EDT 2024 from SVN revision 267383
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)