cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsComponentFLTK.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  (C) Copyright 2011 Johns Hopkins University (JHU), All Rights Reserved.
7 
8 --- begin cisst license - do not edit ---
9 
10 This software is provided "as is" under an open source license, with
11 no warranty. The complete license can be found in license.txt and
12 http://www.cisst.org/cisst/license.txt.
13 
14 --- end cisst license ---
15 */
16 
17 #ifndef _mtsComponentFLTK_h
18 #define _mtsComponentFLTK_h
19 
44 #include <FL/Fl.H>
45 
46 template <class BaseClass>
47 class CISST_EXPORT mtsComponentFLTK : public BaseClass {
48 
51 
52 public:
53 
54  mtsComponentFLTK(const std::string &name) : BaseClass(name)
55  {
56  }
57 
59 
60  void Startup(void)
61  {
62  BaseClass::Startup();
63  }
64 
65  void Run(void)
66  {
67  BaseClass::Run();
68  Fl::check();
69  }
70 
71  void Cleanup(void)
72  {
73  BaseClass::Cleanup();
74  }
75 
76  static int StartRunLoop(void)
77  {
78  return Fl::run();
79  }
80 
81 };
82 
83 #endif // _mtsComponentFLTK_h
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
void Run(void)
Definition: mtsComponentFLTK.h:65
Class registration macros.
void Cleanup(void)
Definition: mtsComponentFLTK.h:71
void Startup(void)
Definition: mtsComponentFLTK.h:60
const int CMN_DYNAMIC_CREATION_ONEARG
Definition: cmnClassRegisterMacros.h:333
Definition: mtsComponentFLTK.h:47
static int StartRunLoop(void)
Definition: mtsComponentFLTK.h:76
~mtsComponentFLTK()
Definition: mtsComponentFLTK.h:58
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
mtsComponentFLTK(const std::string &name)
Definition: mtsComponentFLTK.h:54
#define CMN_LOG_ALLOW_ALL
Definition: cmnLogLoD.h:75