cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsCollectorQtFactory.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Anton Deguet
7  Created on: 2014-03-03
8 
9  (C) Copyright 2014 Johns Hopkins University (JHU), All Rights
10  Reserved.
11 
12 --- begin cisst license - do not edit ---
13 
14 This software is provided "as is" under an open source license, with
15 no warranty. The complete license can be found in license.txt and
16 http://www.cisst.org/cisst/license.txt.
17 
18 --- end cisst license ---
19 
20 */
21 
22 #ifndef _mtsCollectorQtFactory_h
23 #define _mtsCollectorQtFactory_h
24 
26 
27 #include <string>
28 #include <list>
29 
30 class QWidget;
31 
32 // Always include last
34 
43 {
45  public:
47  mtsCollectorQtFactory(const std::string & componentName);
49 
50  void Run(void);
51  void Cleanup(void);
52 
60  void SetFactory(const std::string & factoryName);
61 
65  void Connect(void) const;
66 
70  void ConnectToWidget(QWidget * widget) const;
71 
72  protected:
73  typedef std::pair<std::string, std::string> CollectorQtComponent;
74  typedef std::map<std::string, std::string> CollectorQtComponents;
76 };
77 
79 
80 #endif // _mtsCollectorQtFactory_h
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
CollectorQtComponents mQtComponents
Definition: mtsCollectorQtFactory.h:75
std::map< std::string, std::string > CollectorQtComponents
Definition: mtsCollectorQtFactory.h:74
Defines a task with a Run method trigger by signals (any queued command or event).
Definition: mtsTaskFromSignal.h:40
Definition: mtsCollectorQtFactory.h:42
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
std::pair< std::string, std::string > CollectorQtComponent
Definition: mtsCollectorQtFactory.h:73
virtual void Run(void)=0
~mtsCollectorQtFactory()
Definition: mtsCollectorQtFactory.h:48
const int CMN_NO_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:328
Rules of exporting.
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition: cmnClassRegisterMacros.h:202
virtual void Cleanup(void)
Definition: mtsComponent.h:267
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76