INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

eventjob.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://!orca-robotics.sf.net/
00004  * Copyright (c) 2004-2009 Alex Brooks, Alexei Makarenko, Tobias Kaupp
00005  *
00006  * This distribution is licensed to you under the terms described in
00007  * the LICENSE file included in this distribution.
00008  *
00009  */
00010 
00011 #ifndef HYDROICEUTIL_EVENT_JOB_H
00012 #define HYDROICEUTIL_EVENT_JOB_H
00013 
00014 #include <hydroiceutil/event.h>
00015 #include <hydroiceutil/jobqueue.h>
00016 
00017 namespace hydroiceutil {
00018 
00023 class EventJob : public Job
00024 {
00025 public:
00029     EventJob( EventReceiver& receiver, const EventPtr &event, const std::string& signature="" );
00030 
00032     EventJob( EventReceiver& receiver, int type );
00033 
00036     void execute();
00037 
00039     virtual std::string toString() const;
00040 
00042     virtual int expectedDuration() const { return 2; };
00043 
00047     static int _warnDurationUs;
00048 
00049 private:
00050 
00051     EventReceiver& receiver_;
00052     EventPtr       event_;
00053     std::string signature_;
00054 };
00056 typedef IceUtil::Handle<EventJob> EventJobPtr;
00057 
00058 } // namespace
00059 
00060 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5