00001
00020 #ifndef RTC_OPENHRPEXECUTIONCONTEXT_H
00021 #define RTC_OPENHRPEXECUTIONCONTEXT_H
00022
00023 #include <rtm/RTC.h>
00024
00025 #include <coil/Task.h>
00026
00027 #include <rtm/Manager.h>
00028 #include <rtm/PeriodicExecutionContext.h>
00029
00030
00031 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
00032 # define DLL_EXPORT __declspec(dllexport)
00033 #else
00034 # define DLL_EXPORT
00035 #endif
00036
00037 #ifdef WIN32
00038 #pragma warning( disable : 4290 )
00039 #endif
00040
00041 namespace RTC
00042 {
00056 class OpenHRPExecutionContext
00057 : public virtual PeriodicExecutionContext
00058 {
00059 public:
00067 OpenHRPExecutionContext();
00075 virtual ~OpenHRPExecutionContext(void);
00089 virtual void tick(void)
00090 throw (CORBA::SystemException);
00098 virtual int svc(void);
00099
00100 private:
00101 };
00102 };
00103
00104 #ifdef WIN32
00105 #pragma warning( default : 4290 )
00106 #endif
00107
00108
00109 extern "C"
00110 {
00111 DLL_EXPORT void OpenHRPExecutionContextInit(RTC::Manager* manager);
00112 };
00113
00114 #endif // RTC_OPENHRPEXECUTIONCONTEXT_H
00115