]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Event/Event_Message.hxx
Salome HOME
Auto-formatting according to the defined code standard.
[modules/shaper.git] / src / Event / Event_Message.hxx
index bb700a75da44696946d1da76e996d0b9103c93bf..66346be3a816d5859a3bd280cfb75cf13b5a0420 100644 (file)
  * used as an identifier (this is usefull for debugging of the events
  * with log files and in debugger).
  */
-class EVENT_EXPORT 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,7 +45,8 @@ public:
  * \brief Message for communication between sender and listener of event.
  * Normally it is inherited by the higher-level 
  */
-class EVENT_EXPORT Event_Message {
+class EVENT_EXPORT Event_Message
+{
   Event_ID myEventId; ///< identifier of the event
   void* mySender; ///< the sender object
 
@@ -43,13 +54,21 @@ public:
 
   //! Creates the message
   Event_Message(const Event_ID theID, const void* theSender = 0);
-  virtual ~Event_Message() {}
+  virtual ~Event_Message()
+  {
+  }
 
   //! Returns identifier of the message
-  const Event_ID& EventID() const {return myEventId;}
+  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