Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove bindings CXX from Simgrid
[simgrid.git] / src / cxx / MsgException.cxx
diff --git a/src/cxx/MsgException.cxx b/src/cxx/MsgException.cxx
deleted file mode 100644 (file)
index 5b9bd46..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-#include "MsgException.hpp"\r
-\r
-#include <string.h>\r
-#include <stdlib.h>\r
-#include <stdio.h>\r
-\r
-using namespace std;\r
-\r
-namespace SimGrid\r
-{\r
-       namespace Msg\r
-       {\r
-               \r
-                       MsgException::MsgException()\r
-                       {\r
-                               this->reason = (char*) calloc(strlen("Internal exception : unknown reason") + 1, sizeof(char));\r
-                               strcpy(this->reason, "Internal exception : unknown reason");\r
-                       }\r
-               \r
-               \r
-                       MsgException::MsgException(const MsgException& rMsgException)\r
-                       {\r
-                               const char* reason = rMsgException.toString();\r
-                               this->reason = (char*) calloc(strlen(reason) + 1, sizeof(char));\r
-                               strcpy(this->reason, reason);\r
-                               \r
-                       }\r
-               \r
-                       MsgException::MsgException(const char* reason)\r
-                       {\r
-                               this->reason = (char*) calloc(strlen("Internal exception : ") + strlen(reason) + 1, sizeof(char));\r
-                               sprintf(this->reason, "Invalid exception : %s", reason);\r
-                       }\r
-               \r
-               \r
-                       MsgException::~MsgException()\r
-                       {\r
-                               if(this->reason)\r
-                                       free(this->reason);\r
-                       }\r
-                               \r
-                       const char* MsgException::toString(void) const\r
-                       {\r
-                               return (const char*)(this->reason);     \r
-                       }\r
-               \r
-               \r
-                       const MsgException& MsgException::operator = (const MsgException& rMsgException)\r
-                       {\r
-                               const char* reason = rMsgException.toString();\r
-                               this->reason = (char*) calloc(strlen(reason) + 1, sizeof(char));\r
-                               \r
-                               return *this;\r
-                       }\r
-               \r
-       } // namespace Msg      \r
-\r
-}// namespace SimGrid\r
-\r
-\r
-\r