00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CEYLAN_EVENT_H_
00028 #define CEYLAN_EVENT_H_
00029
00030
00031 #include "CeylanException.h"
00032 #include "CeylanTextDisplayable.h"
00033
00034 #include <string>
00035
00036
00037
00038 namespace Ceylan
00039 {
00040
00041
00047 class CEYLAN_DLL EventException: public Ceylan::Exception
00048 {
00049
00050 public:
00051
00052 explicit EventException( const std::string & reason ) ;
00053
00054 virtual ~EventException() throw() ;
00055
00056 } ;
00057
00058
00059
00060
00061 class EventSource ;
00062
00063
00064
00075 class CEYLAN_DLL Event : public TextDisplayable
00076 {
00077
00078
00079 public:
00080
00081
00089 explicit Event( EventSource & source ) ;
00090
00091
00092
00094 virtual ~Event() throw() ;
00095
00096
00097
00108 virtual const std::string toString(
00109 Ceylan::VerbosityLevels level = Ceylan::high ) const ;
00110
00111
00112
00113 protected:
00114
00115
00120 EventSource * _source ;
00121
00122
00123
00124 private:
00125
00126
00135 Event( const Event & source ) ;
00136
00137
00146 Event & operator = ( const Event & source ) ;
00147
00148
00149 } ;
00150
00151 }
00152
00153
00154
00155 #endif // CEYLAN_EVENT_H_
00156