- Aldebaran documentation |
- C++ Libraries |
- index

libqicore-api 2.8.7.4

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
task.hpp
Go to the documentation of this file.
1
7 #ifndef QICORE_TASK_H_
8 # define QICORE_TASK_H_
9
10 #include <qi/signal.hpp>
11 #include <qi/property.hpp>
12
13 namespace qi
14 {
15 class Task
16 {
17 public:
18 Task() { running.set(false); }
19 virtual ~Task() {}
20
26 virtual bool interrupt() = 0;
27
29 Property<bool> running;
30
35 Property<std::string> error;
36 };
37 }
38
39 #define QI_TASK_MEMBERS interrupt, running, error
40
41 #endif
qi::Task::interrupt
virtual bool interrupt()=0
qi::Task::Task
Task()
Definition: task.hpp:18
qi::Task
Definition: task.hpp:15
qi::Task::~Task
virtual ~Task()
Definition: task.hpp:19
qi::Task::running
Property< bool > running
RO, Indicates if the task is currently running.
Definition: task.hpp:29
qi::Task::error
Property< std::string > error
Definition: task.hpp:35