Line |
Branch |
Exec |
Source |
1 |
|
|
/* |
2 |
|
|
* Copyright 2010, |
3 |
|
|
* François Bleibel, |
4 |
|
|
* Olivier Stasse, |
5 |
|
|
* |
6 |
|
|
* CNRS/AIST |
7 |
|
|
* |
8 |
|
|
*/ |
9 |
|
|
|
10 |
|
|
#ifndef __SOT_FEATURE_TASK_HH__ |
11 |
|
|
#define __SOT_FEATURE_TASK_HH__ |
12 |
|
|
|
13 |
|
|
/* --------------------------------------------------------------------- */ |
14 |
|
|
/* --- INCLUDE --------------------------------------------------------- */ |
15 |
|
|
/* --------------------------------------------------------------------- */ |
16 |
|
|
|
17 |
|
|
/* SOT */ |
18 |
|
|
#include <sot/core/exception-task.hh> |
19 |
|
|
#include <sot/core/feature-generic.hh> |
20 |
|
|
#include <sot/core/task-abstract.hh> |
21 |
|
|
|
22 |
|
|
/* --------------------------------------------------------------------- */ |
23 |
|
|
/* --- API ------------------------------------------------------------- */ |
24 |
|
|
/* --------------------------------------------------------------------- */ |
25 |
|
|
|
26 |
|
|
#if defined(WIN32) |
27 |
|
|
#if defined(feature_task_EXPORTS) |
28 |
|
|
#define SOTFEATURETASK_EXPORT __declspec(dllexport) |
29 |
|
|
#else |
30 |
|
|
#define SOTFEATURETASK_EXPORT __declspec(dllimport) |
31 |
|
|
#endif |
32 |
|
|
#else |
33 |
|
|
#define SOTFEATURETASK_EXPORT |
34 |
|
|
#endif |
35 |
|
|
|
36 |
|
|
/* --------------------------------------------------------------------- */ |
37 |
|
|
/* --- CLASS ----------------------------------------------------------- */ |
38 |
|
|
/* --------------------------------------------------------------------- */ |
39 |
|
|
|
40 |
|
|
namespace dynamicgraph { |
41 |
|
|
namespace sot { |
42 |
|
|
|
43 |
|
|
class SOTFEATURETASK_EXPORT FeatureTask : public FeatureGeneric { |
44 |
|
|
public: |
45 |
|
|
/*! Field storing the class name. */ |
46 |
|
|
static const std::string CLASS_NAME; |
47 |
|
|
/*! Returns the name of the class. */ |
48 |
|
✗ |
virtual const std::string &getClassName(void) const { return CLASS_NAME; } |
49 |
|
|
|
50 |
|
|
protected: |
51 |
|
|
TaskAbstract *taskPtr; |
52 |
|
|
|
53 |
|
|
/* --- SIGNALS ------------------------------------------------------------ */ |
54 |
|
|
public: |
55 |
|
|
public: |
56 |
|
|
/*! \brief Default constructor */ |
57 |
|
|
FeatureTask(const std::string &name); |
58 |
|
|
|
59 |
|
|
/*! \brief Default destructor */ |
60 |
|
✗ |
virtual ~FeatureTask(void) {} |
61 |
|
|
|
62 |
|
|
/*! \brief Display the information related to this task implementation. */ |
63 |
|
|
virtual void display(std::ostream &os) const; |
64 |
|
|
}; |
65 |
|
|
|
66 |
|
|
} /* namespace sot */ |
67 |
|
|
} /* namespace dynamicgraph */ |
68 |
|
|
|
69 |
|
|
#endif // #ifndef __SOT_FEATURE_TASK_HH__ |
70 |
|
|
|
71 |
|
|
/* |
72 |
|
|
* Local variables: |
73 |
|
|
* c-basic-offset: 2 |
74 |
|
|
* End: |
75 |
|
|
*/ |
76 |
|
|
|