VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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  StatusCol = 0,
35  NameCol = 1,
36  MarkingTextCol = 2,
37  ThrottleRateCol = 3,
38  TickRateCol = 4
39  };
40 
41  public:
42 
46  static DtBrokerDialog* create( DtBroker* broker,
47  DtBrokerInitializer* init, QWidget* parent );
48 
49  protected:
50 
53  QWidget* parent = 0, size_t tickCollectionSize = 10 );
54 
55  public:
56 
58  virtual ~DtDdsBrokerDialog();
59 
61  virtual DtDdsBrokerInitializer* ddsInitializer();
62 
63  protected:
64 
67 
69  virtual DtConnectionSettingsWidget* instantiateConnectionSettingsWidget();
70 
72  virtual DtGeneralSettingsWidget* instantiateGeneralSettingsWidget();
73 
75  virtual void initObjectListViewHeaders();
76 
78 
80  virtual void updateObjectText( const DtBrokerObject* brokerObject,
81  QTreeWidgetItem* item, const QString& status );
82 
84  virtual DtTime averageTickTime( const DtBrokerObject* brokerObject, DtTime time );
85 
86  private:
87 
89  DtDdsBrokerDialog( const DtDdsBrokerDialog& other );
90 
92  DtDdsBrokerDialog& operator = ( const DtDdsBrokerDialog& other );
93 
94  protected:
95 
96  typedef std::deque<DtTime> TimeSamples;
97  typedef std::map<const DtBrokerObject*,TimeSamples> BrokerObjectTimeContainer;
98 
99  const size_t mySampleSize;
101 
103 
104  };
105 
106  }
107 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)