cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsTaskFromSignal.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: 2009-12-10
8 
9  (C) Copyright 2009-2011 Johns Hopkins University (JHU), All Rights Reserved.
10 
11 --- begin cisst license - do not edit ---
12 
13 This software is provided "as is" under an open source license, with
14 no warranty. The complete license can be found in license.txt and
15 http://www.cisst.org/cisst/license.txt.
16 
17 --- end cisst license ---
18 */
19 
20 
26 #ifndef _mtsTaskFromSignal_h
27 #define _mtsTaskFromSignal_h
28 
32 
33 // Always include last
35 
41 {
43 
44  protected:
46 
49  void * RunInternal(void * argument);
50 
53  void PostCommandQueuedMethod(void);
54 
57 
58  public:
69  mtsTaskFromSignal(const std::string & name,
70  unsigned int sizeStateTable = 256);
71 
73  virtual ~mtsTaskFromSignal() {}
74 
75  /* documented in base class */
76  void Kill(void);
77 
78  /* documented in base class */
79  mtsInterfaceRequired * AddInterfaceRequiredWithoutSystemEventHandlers(const std::string & interfaceRequiredName,
80  mtsRequiredType required = MTS_REQUIRED);
81 
82  /* documented in base class */
83  mtsInterfaceProvided * AddInterfaceProvidedWithoutSystemEvents(const std::string & newInterfaceName,
85  bool isProxy = false);
86 
87 };
88 
89 
91 
92 
93 #endif // _mtsTaskFromSignal_h
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
mtsInterfaceQueueingPolicy
Definition: mtsForwardDeclarations.h:39
Portability across compilers and operating systems tools.
Definition: mtsForwardDeclarations.h:52
Definition: mtsCallableVoidBase.h:39
Definition: mtsInterfaceRequired.h:85
mtsInterfaceProvided * AddInterfaceProvidedWithoutSystemEvents(const std::string &newInterfaceName, mtsInterfaceQueueingPolicy queueingPolicy=MTS_COMPONENT_POLICY, bool isProxy=false)
Defines a continuously executing task.
Definition: mtsTaskFromSignal.h:40
mtsTaskContinuous BaseType
Definition: mtsTaskFromSignal.h:45
mtsRequiredType
Definition: mtsForwardDeclarations.h:52
Forward declarations and #define for cisstMultiTask.
mtsCallableVoidBase * PostCommandQueuedCallable
Definition: mtsTaskFromSignal.h:56
mtsInterfaceRequired * AddInterfaceRequiredWithoutSystemEventHandlers(const std::string &interfaceRequiredName, mtsRequiredType required=MTS_REQUIRED)
#define CMN_DECLARE_SERVICES(hasDynamicCreation, lod)
Definition: cmnClassRegisterMacros.h:116
virtual void * RunInternal(void *argument)
Definition: mtsInterfaceProvided.h:96
Rules of exporting.
Definition: mtsForwardDeclarations.h:39
Definition: mtsTaskContinuous.h:77
const int CMN_NO_DYNAMIC_CREATION
Definition: cmnClassRegisterMacros.h:328
#define CMN_DECLARE_SERVICES_INSTANTIATION(className)
Definition: cmnClassRegisterMacros.h:202
virtual ~mtsTaskFromSignal()
Definition: mtsTaskFromSignal.h:73
#define CMN_LOG_ALLOW_DEFAULT
Definition: cmnLogLoD.h:76