X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e133a950865071b1c006387e915d39989a53c8cd..4caba889d33e3969d85d057db072075bda358753:/src/cxx/FileNotFoundException.hpp diff --git a/src/cxx/FileNotFoundException.hpp b/src/cxx/FileNotFoundException.hpp index 639accd7ee..53a6247282 100644 --- a/src/cxx/FileNotFoundException.hpp +++ b/src/cxx/FileNotFoundException.hpp @@ -1,64 +1,69 @@ -/* - * FileNotFoundException.hpp - * - * 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. - * - */ - -#ifndef MSG_FILENOTFOUND_HPP -#define MSG_FILENOTFOUND_HPP - -#include - -namespace SimGrid -{ - namespace Msg - { - - class SIMGRIDX_EXPORT FileNotFoundException : public Exception - { - public: - - // Default constructor. - FileNotFoundException(); - - // Copy constructor. - FileNotFoundException(const FileNotFoundException& rFileNotFoundException); - - // This constructor takes the name of the file. - FileNotFoundException(const char* file); - - // Destructor. - virtual ~FileNotFoundException(); - - // Operations. - - // Returns the reason of the exception : - // the message "File not found : `object name'" - const char* toString(void) const; - - // Operators. - - // Assignement. - const FileNotFoundException& operator = (const FileNotFoundException& rFileNotFoundException); - - private : - - // Attributes. - - // A buffer used to build the message returned by the methode toString(). - char* reason; - }; - - - } // namespace Msg - -}// namespace SimGrid - - -#endif // !MSG_MSGEXCEPTION_HPP +/* + * FileNotFoundException.hpp + * + * 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. + * + */ + +#ifndef MSG_FILENOTFOUND_HPP +#define MSG_FILENOTFOUND_HPP + +#ifndef __cplusplus + #error FileNotFoundException.hpp requires C++ compilation (use a .cxx suffix) +#endif + +#include + +namespace SimGrid +{ + namespace Msg + { + + class SIMGRIDX_EXPORT FileNotFoundException : public Exception + { + public: + + // Default constructor. + FileNotFoundException(); + + // Copy constructor. + FileNotFoundException(const FileNotFoundException& rFileNotFoundException); + + // This constructor takes the name of the file. + FileNotFoundException(const char* file); + + // Destructor. + virtual ~FileNotFoundException(); + + // Operations. + + // Returns the reason of the exception : + // the message "File not found : `object name'" + const char* toString(void) const; + + // Operators. + + // Assignement. + const FileNotFoundException& operator = (const FileNotFoundException& rFileNotFoundException); + + private : + + // Attributes. + + // A buffer used to build the message returned by the methode toString(). + char* reason; + }; + + + } // namespace Msg + +}// namespace SimGrid + + +#endif // !MSG_MSGEXCEPTION_HPP +