]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Remove inline methods
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 16 Jun 2016 12:24:01 +0000 (15:24 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 16 Jun 2016 12:24:01 +0000 (15:24 +0300)
src/Events/CMakeLists.txt
src/Events/Events_InfoMessage.cpp [new file with mode: 0644]
src/Events/Events_InfoMessage.h

index 9b3f7773f480309e679b8cb9e0f6d6d2c53df201..5982c15de2d533f490583cab92b85e71c90b60e7 100644 (file)
@@ -21,6 +21,7 @@ SET(PROJECT_SOURCES
     Events_Listener.cpp
     Events_Loop.cpp
     Events_LongOp.cpp
+       Events_InfoMessage.cpp
 )
 
 ADD_DEFINITIONS(-DEVENTS_EXPORTS)
diff --git a/src/Events/Events_InfoMessage.cpp b/src/Events/Events_InfoMessage.cpp
new file mode 100644 (file)
index 0000000..18d38a9
--- /dev/null
@@ -0,0 +1,30 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File:       Events_InfoMessage.cpp
+// Created:    16 June 2016
+// Author:     Vitaly SMETANNIKOV
+
+#include "Events_InfoMessage.h"
+
+
+void Events_InfoMessage::addParameter(double theParam) 
+{ 
+  char aBuf[50];
+  int n = sprintf(aBuf, "%g", theParam);
+  std::string aStr(aBuf);
+  myParameters.push_back(aStr); 
+}
+
+void Events_InfoMessage::addParameter(int theParam) 
+{ 
+  char aBuf[50];
+  int n = sprintf(aBuf, "%d", theParam);
+  std::string aStr(aBuf);
+  myParameters.push_back(aStr); 
+}
+
+void Events_InfoMessage::send() 
+{ 
+  std::shared_ptr<Events_Message> aMsg(new Events_InfoMessage(*this));
+  Events_Loop::loop()->send(aMsg); 
+}
index 556c1db27858dea971f63d00dee14a352e7776ad..959001c43283f6841cfc4a1ed96ba4f1a4f4c5c6 100644 (file)
@@ -63,23 +63,11 @@ public:
 
   /// Add parameter for message string of double type
   /// \param theParam the parameter
-  void addParameter(double theParam) 
-  { 
-    char aBuf[50];
-    int n = sprintf(aBuf, "%g", theParam);
-    std::string aStr(aBuf);
-    myParameters.push_back(aStr); 
-  }
+  EVENTS_EXPORT void addParameter(double theParam);
 
   /// Add parameter for message string of integer type
   /// \param theParam the parameter
-  void addParameter(int theParam) 
-  { 
-    char aBuf[50];
-    int n = sprintf(aBuf, "%d", theParam);
-    std::string aStr(aBuf);
-    myParameters.push_back(aStr); 
-  }
+  EVENTS_EXPORT void addParameter(int theParam);
 
   /// Returns list of parameters
   std::list<std::string> parameters() const { return myParameters; }
@@ -96,10 +84,8 @@ public:
   /// \param theParam the parameter
   Events_InfoMessage& arg(double theParam) { addParameter(theParam); return *this; }
 
-  void send() { 
-    std::shared_ptr<Events_Message> aMsg(new Events_InfoMessage(*this));
-    Events_Loop::loop()->send(aMsg); 
-  }
+  /// Send the message
+  EVENTS_EXPORT void send();
 
 private: