Salome HOME
Auto-formatting according to the defined code standard.
[modules/shaper.git] / src / Event / Event_Message.hxx
index b9abe11ce2cf0bfbf90a58acc867b4ecc15198d3..66346be3a816d5859a3bd280cfb75cf13b5a0420 100644 (file)
  * used as an identifier (this is usefull for debugging of the events
  * with log files and in debugger).
  */
-EVENT_EXPORT class Event_ID {
+class EVENT_EXPORT Event_ID
+{
   char* myID; ///< pointer to the text-identifier of the event, unique pointer for all events of such type
 
-  Event_ID(char* theID) {myID = theID;}
+  Event_ID(char* theID)
+  {
+    myID = theID;
+  }
 
   friend class Event_Loop;
 public:
   /// Returns the text-identifier of the event (for debugging reasons)
-  char* EventText() const {return myID;}
+  char* EventText() const
+  {
+    return myID;
+  }
   /// Allows to compare identifiers
-  bool operator==(const Event_ID& theID) const {return myID == theID.myID;}
+  bool operator==(const Event_ID& theID) const
+  {
+    return myID == theID.myID;
+  }
 };
 
 /**\class Event_Message
@@ -35,20 +45,30 @@ public:
  * \brief Message for communication between sender and listener of event.
  * Normally it is inherited by the higher-level 
  */
-EVENT_EXPORT class Event_Message {
-  Event_ID myID; ///< identifier of the event
+class EVENT_EXPORT Event_Message
+{
+  Event_ID myEventId; ///< identifier of the event
   void* mySender; ///< the sender object
 
 public:
 
   //! Creates the message
   Event_Message(const Event_ID theID, const void* theSender = 0);
+  virtual ~Event_Message()
+  {
+  }
 
   //! Returns identifier of the message
-  const Event_ID& ID() const {return myID;}
+  const Event_ID& EventID() const
+  {
+    return myEventId;
+  }
 
   //! Returns sender of the message or NULL if it is anonymous message
-  void* Sender() {return mySender;}
+  void* Sender()
+  {
+    return mySender;
+  }
 };
 
 #endif