Salome HOME
Sources formated according to the codeing standards
[modules/shaper.git] / src / Events / Events_Error.h
1 /*
2  * Events_Error.h
3  *
4  *  Created on: Apr 28, 2014
5  *      Author: sbh
6  */
7
8 #ifndef EVENTS_ERROR_H_
9 #define EVENTS_ERROR_H_
10
11 #include <Events.h>
12 #include <Events_Message.h>
13
14 #include <string>
15
16 class EVENTS_EXPORT Events_Error : public Events_Message
17 {
18   char* myDescription;  ///< pointer to the description of the error
19
20  public:
21   virtual ~Events_Error();
22
23   static Events_ID errorID();
24   char* description() const;
25   static void send(char* theDescription, const void* theSender = 0);
26   static void send(std::string theDescription, const void* theSender = 0);
27
28  protected:
29   Events_Error(char* theDescription, const void* theSender = 0);
30 };
31
32 #endif /* EVENTS_ERROR_H_ */