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 Project Download Mailing lists
|
components/tracermon/events.h00001 /* 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 copy of Orca is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef EVENTS_H 00012 #define EVENTS_H 00013 00014 #include <hydroiceutil/eventqueue.h> 00015 #include <orca/tracer.h> 00016 00017 namespace tracermon 00018 { 00019 00020 enum EventType 00021 { 00022 // user & network 00023 VerbosityLevelsChanged=0, 00024 FocusChanged, 00025 NextField, 00026 PreviousField, 00027 ValueUp, 00028 ValueDown, 00029 Action, 00030 // network 00031 NewTraceMessage, 00032 NewLocalTrace 00033 }; 00034 /* 00035 enum VerbosityType 00036 { 00037 ErrorType, 00038 WarningType, 00039 InfoType, 00040 DebugType, 00041 NumberOfVerbosityTypes 00042 }; 00043 */ 00044 class VerbosityLevelsChangedEvent : public hydroiceutil::Event 00045 { 00046 public: 00047 VerbosityLevelsChangedEvent( int error, int warn, int info, int debug ) : 00048 Event( VerbosityLevelsChanged ), 00049 error_(error), 00050 warn_(warn), 00051 info_(info), 00052 debug_(debug) {}; 00053 00054 int error_; 00055 int warn_; 00056 int info_; 00057 int debug_; 00058 }; 00059 typedef IceUtil::Handle<VerbosityLevelsChangedEvent> VerbosityLevelsChangedEventPtr; 00060 00061 class FocusChangedEvent : public hydroiceutil::Event 00062 { 00063 public: 00064 FocusChangedEvent( int focus ) : 00065 Event( FocusChanged ), 00066 focus_(focus) {}; 00067 00068 int focus_; 00069 }; 00070 typedef IceUtil::Handle<FocusChangedEvent> FocusChangedEventPtr; 00071 00072 class NewTraceMessageEvent : public hydroiceutil::Event 00073 { 00074 public: 00075 NewTraceMessageEvent( const orca::TracerData & data ) : 00076 Event( NewTraceMessage ), 00077 data_(data) {}; 00078 00079 orca::TracerData data_; 00080 }; 00081 typedef IceUtil::Handle<NewTraceMessageEvent> NewTraceMessageEventPtr; 00082 00083 class NewLocalTraceEvent : public hydroiceutil::Event 00084 { 00085 public: 00086 NewLocalTraceEvent( const std::string& msg ) : 00087 Event( NewLocalTrace ), 00088 msg_(msg) {}; 00089 00090 std::string msg_; 00091 }; 00092 typedef IceUtil::Handle<NewLocalTraceEvent> NewLocalTraceEventPtr; 00093 00094 class PreviousFieldEvent : public hydroiceutil::Event 00095 { 00096 public: 00097 PreviousFieldEvent() : 00098 Event( PreviousField ) {}; 00099 }; 00100 00101 class NextFieldEvent : public hydroiceutil::Event 00102 { 00103 public: 00104 NextFieldEvent() : 00105 Event( NextField ) {}; 00106 }; 00107 00108 class ValueUpEvent : public hydroiceutil::Event 00109 { 00110 public: 00111 ValueUpEvent() : 00112 Event( ValueUp ) {}; 00113 }; 00114 00115 class ValueDownEvent : public hydroiceutil::Event 00116 { 00117 public: 00118 ValueDownEvent() : 00119 Event( ValueDown ) {}; 00120 }; 00121 00122 class ActionEvent : public hydroiceutil::Event 00123 { 00124 public: 00125 ActionEvent() : 00126 Event( Action ) {}; 00127 }; 00128 00129 } // namespace 00130 00131 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)