Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove bindings CXX from Simgrid
[simgrid.git] / src / cxx / FileNotFoundException.cxx
diff --git a/src/cxx/FileNotFoundException.cxx b/src/cxx/FileNotFoundException.cxx
deleted file mode 100644 (file)
index 297d60c..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-/*\r
- * FileNotFoundException.cxx\r
- *\r
- * Copyright 2006,2007 Martin Quinson, Malek Cherier           \r
- * All right reserved. \r
- *\r
- * This program is free software; you can redistribute \r
- * it and/or modify it under the terms of the license \r
- *(GNU LGPL) which comes with this package. \r
- *\r
- */\r
\r
- /* FileNotFoundException member functions implementation.\r
-  */  \r
-\r
-#include <FileNotFoundException.hpp>\r
-\r
-#include <string.h>\r
-#include <stdlib.h>\r
-#include <stdio.h>\r
-\r
-\r
-namespace SimGrid\r
-{\r
-       namespace Msg\r
-       {\r
-               \r
-                       FileNotFoundException::FileNotFoundException()\r
-                       {\r
-                               this->reason = (char*) calloc(strlen("File not found") + 1, sizeof(char));\r
-                               strcpy(this->reason, "File not found");\r
-                       }\r
-               \r
-               \r
-                       FileNotFoundException::FileNotFoundException(const FileNotFoundException& rFileNotFoundException)\r
-                       {\r
-                               const char* reason = rFileNotFoundException.toString();\r
-                               this->reason = (char*) calloc(strlen(reason) + 1, sizeof(char));\r
-                               strcpy(this->reason, reason);\r
-                               \r
-                       }\r
-               \r
-                       FileNotFoundException::FileNotFoundException(const char* file)\r
-                       {\r
-                               this->reason = (char*) calloc(strlen("File not found ") + strlen(file) + 1, sizeof(char));\r
-                               sprintf(this->reason, "File not found %s", file);\r
-                       }\r
-               \r
-               \r
-                       FileNotFoundException::~FileNotFoundException()\r
-                       {\r
-                               if(this->reason)\r
-                                       free(this->reason);\r
-                       }\r
-                               \r
-                       const char* FileNotFoundException::toString(void) const\r
-                       {\r
-                               return (const char*)(this->reason);     \r
-                       }\r
-               \r
-               \r
-                       const FileNotFoundException& FileNotFoundException::operator = (const FileNotFoundException& rFileNotFoundException)\r
-                       {\r
-                               const char* reason = rFileNotFoundException.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