X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/846b7de4a868bf8dc1270f76a01c33738576694d..fccf53a380a9a6de6c8bd9eafb182a91d79e1d3c:/src/cxx/Exception.cxx diff --git a/src/cxx/Exception.cxx b/src/cxx/Exception.cxx index 94ae26e881..c314f13f7c 100644 --- a/src/cxx/Exception.cxx +++ b/src/cxx/Exception.cxx @@ -1,64 +1,64 @@ -/* - * Exception.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. - * - */ - - /* Exception member functions implementation. - * The base class of all the types of exceptions of SimGrid::Msg. - */ - -#include - -namespace SimGrid -{ - namespace Msg - { - - Exception::Exception() - { - reason = "Unknown reason"; - } - - - Exception::Exception(const Exception& rException) - { - this->reason = rException.toString(); - } - - - Exception::Exception(const char* reason) - { - this->reason = reason; - } - - - Exception::~Exception() - { - // NOTHING TODO - } - - const char* Exception::toString(void) const - { - return this->reason; - } - - - const Exception& Exception::operator = (const Exception& rException) - { - this->reason = rException.toString(); - return *this; - } - - } // namespace Msg - -}// namespace SimGrid - - - +/* + * Exception.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. + * + */ + + /* Exception member functions implementation. + * The base class of all the types of exceptions of SimGrid::Msg. + */ + +#include + +namespace SimGrid +{ + namespace Msg + { + + Exception::Exception() + { + reason = "Unknown reason"; + } + + + Exception::Exception(const Exception& rException) + { + this->reason = rException.toString(); + } + + + Exception::Exception(const char* reason) + { + this->reason = reason; + } + + + Exception::~Exception() + { + // NOTHING TODO + } + + const char* Exception::toString(void) const + { + return this->reason; + } + + + const Exception& Exception::operator = (const Exception& rException) + { + this->reason = rException.toString(); + return *this; + } + + } // namespace Msg + +}// namespace SimGrid + + +