VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ddsBrokerDialog.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2015 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <ddsBroker/dllExport.h>
13 #include <widgets/brokerDialog.h>
14 #include <deque>
15 #include <map>
16 
17 namespace MAKVrExchange
18 {
19 
20  namespace DtDdsBroker
21  {
22 
23  class DtDdsBroker;
24  class DtDdsBrokerInitializer;
25 
29  { Q_OBJECT;
30  protected:
31 
32  // The columns in the Object Dialog
33  enum {
34  ThrottleRateCol = 4,
35  TickRateCol = 5
36  };
37 
38  public:
39 
43  static DtBrokerDialog* create( DtBroker* broker,
44  DtBrokerInitializer* init, QWidget* parent );
45 
46  protected:
47 
50  QWidget* parent = 0, size_t tickCollectionSize = 10 );
51 
52  public:
53 
55  virtual ~DtDdsBrokerDialog();
56 
58  virtual DtDdsBrokerInitializer* ddsInitializer();
59 
60  protected:
61 
64 
66  virtual DtConnectionSettingsWidget* instantiateConnectionSettingsWidget();
67 
69  virtual DtGeneralSettingsWidget* instantiateGeneralSettingsWidget();
70 
72  virtual void initObjectListViewHeaders();
73 
75 
77  virtual void updateObjectText( const DtBrokerObject* brokerObject,
78  QTreeWidgetItem* item, const QString& status );
79 
81  virtual DtTime averageTickTime( const DtBrokerObject* brokerObject, DtTime time );
82 
83  private:
84 
86  DtDdsBrokerDialog( const DtDdsBrokerDialog& other );
87 
89  DtDdsBrokerDialog& operator = ( const DtDdsBrokerDialog& other );
90 
91  protected:
92 
93  typedef std::deque<DtTime> TimeSamples;
94  typedef std::map<const DtBrokerObject*,TimeSamples> BrokerObjectTimeContainer;
95 
96  const size_t mySampleSize;
98 
100 
101  };
102 
103  }
104 }

Document ID: Generated on Wed Dec 21 15:05:11 EST 2016 from SVN revision 171891
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)