- char* myDescription; ///< pointer to the description of the error
-
- public:
- virtual ~Events_Error();
-
- static Events_ID errorID();
- char* description() const;
- static void send(char* theDescription, const void* theSender = 0);
- static void send(std::string theDescription, const void* theSender = 0);
-
- protected:
- Events_Error(char* theDescription, const void* theSender = 0);
+ std::string myDescription; ///< the description of the error
+
+public:
+ /// default destructor
+ EVENTS_EXPORT virtual ~Events_Error();
+
+ /// Identifier of this event (one for all errors)
+ EVENTS_EXPORT static Events_ID errorID();
+ /// Specific error string
+ EVENTS_EXPORT const char* description() const;
+ /// Allows to send an error quickly: it creates and sends the error object automatically
+ EVENTS_EXPORT static void send(const std::string& theDescription, const void* theSender = 0);
+
+protected:
+ /// Default constructor. Use "send" message for generation an error.
+ EVENTS_EXPORT Events_Error(const std::string& theDescription, const void* theSender = 0);