X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/40c50e73054c04f97b5e5a618f1676eb5c3c9658..5d37103da397672aff379d7dc01186068bfc1498:/src/cxx/FileNotFoundException.cxx diff --git a/src/cxx/FileNotFoundException.cxx b/src/cxx/FileNotFoundException.cxx deleted file mode 100644 index 3ceec071a2..0000000000 --- a/src/cxx/FileNotFoundException.cxx +++ /dev/null @@ -1,75 +0,0 @@ -/* - * FileNotFoundException.cxx - * - * Copyright 2006,2007 Martin Quinson, Malek Cherier - * All right reserved. - * - * This program is free software; you can redistribute - * it and/or modify it under the terms of the license - *(GNU LGPL) which comes with this package. - * - */ - - /* FileNotFoundException member functions implementation. - */ - -#include - -#include -#include -#include - - -namespace SimGrid -{ - namespace Msg - { - - FileNotFoundException::FileNotFoundException() - { - this->reason = (char*) calloc(strlen("File not found") + 1, sizeof(char)); - strcpy(this->reason, "File not found"); - } - - - FileNotFoundException::FileNotFoundException(const FileNotFoundException& rFileNotFoundException) - { - const char* reason = rFileNotFoundException.toString(); - this->reason = (char*) calloc(strlen(reason) + 1, sizeof(char)); - strcpy(this->reason, reason); - - } - - FileNotFoundException::FileNotFoundException(const char* file) - { - this->reason = (char*) calloc(strlen("File not found ") + strlen(file) + 1, sizeof(char)); - sprintf(this->reason, "File not found %s", file); - } - - - FileNotFoundException::~FileNotFoundException() - { - if(this->reason) - free(this->reason); - } - - const char* FileNotFoundException::toString(void) const - { - return (const char*)(this->reason); - } - - - const FileNotFoundException& FileNotFoundException::operator = (const FileNotFoundException& rFileNotFoundException) - { - const char* reason = rFileNotFoundException.toString(); - this->reason = (char*) calloc(strlen(reason) + 1, sizeof(char)); - - return *this; - } - - } // namespace Msg - -}// namespace SimGrid - - -