Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / Event / Event_Message.h
index 27608b7bf8641a8e42c877a48b91cd1c5ea201d5..e07621af75f692e7045c558d065d88706bbd7164 100644 (file)
@@ -25,7 +25,7 @@ class EVENT_EXPORT Event_ID {
   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;}
 };
@@ -42,14 +42,16 @@ class EVENT_EXPORT Event_Message {
 public:
 
   //! Creates the message
-  Event_Message(const Event_ID theID, const void* theSender = 0);
+  Event_Message(const Event_ID theID, const void* theSender = 0)
+    : myEventId(theID), mySender((void*) theSender) {}
+  //! do nothing in the destructor yet
   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