X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/846b7de4a868bf8dc1270f76a01c33738576694d..3406010cd31d6455d8ab9f96b312920dac884062:/src/cxx/ProcessNotFoundException.hpp diff --git a/src/cxx/ProcessNotFoundException.hpp b/src/cxx/ProcessNotFoundException.hpp index 9e29e0055f..bdf56752b1 100644 --- a/src/cxx/ProcessNotFoundException.hpp +++ b/src/cxx/ProcessNotFoundException.hpp @@ -1,68 +1,68 @@ -/* - * ProcessNotFoundException.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_PROCESSNOTFOUNDEXCEPTION_HPP -#define MSG_PROCESSNOTFOUNDEXCEPTION_HPP - -#ifndef __cplusplus - #error ProcessNotFoundException.hpp requires C++ compilation (use a .cxx suffix) -#endif - -#include - -namespace SimGrid -{ - namespace Msg - { - - class SIMGRIDX_EXPORT ProcessNotFoundException : public Exception - { - public: - - // Default constructor. - ProcessNotFoundException(); - - // Copy constructor. - ProcessNotFoundException(const ProcessNotFoundException& rProcessNotFoundException); - - // This constructor takes PID of the process. - ProcessNotFoundException(int PID); - - // Destructor. - virtual ~ProcessNotFoundException(); - - // Operations. - - // Returns the reason of the exception : - // the message "Process not found `PID'" - const char* toString(void) const; - - // Operators. - - // Assignement. - const ProcessNotFoundException& operator = (const ProcessNotFoundException& rProcessNotFoundException); - - private : - - // Attributes. - - // A buffer used to build the message returned by the methode toString(). - char* reason; - }; - - - } // namespace Msg - -}// namespace SimGrid - - -#endif // !MSG_PROCESSNOTFOUNDEXCEPTION_HPP +/* + * ProcessNotFoundException.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_PROCESSNOTFOUNDEXCEPTION_HPP +#define MSG_PROCESSNOTFOUNDEXCEPTION_HPP + +#ifndef __cplusplus + #error ProcessNotFoundException.hpp requires C++ compilation (use a .cxx suffix) +#endif + +#include + +namespace SimGrid +{ + namespace Msg + { + + class SIMGRIDX_EXPORT ProcessNotFoundException : public Exception + { + public: + + // Default constructor. + ProcessNotFoundException(); + + // Copy constructor. + ProcessNotFoundException(const ProcessNotFoundException& rProcessNotFoundException); + + // This constructor takes PID of the process. + ProcessNotFoundException(int PID); + + // Destructor. + virtual ~ProcessNotFoundException(); + + // Operations. + + // Returns the reason of the exception : + // the message "Process not found `PID'" + const char* toString(void) const; + + // Operators. + + // Assignement. + const ProcessNotFoundException& operator = (const ProcessNotFoundException& rProcessNotFoundException); + + private : + + // Attributes. + + // A buffer used to build the message returned by the methode toString(). + char* reason; + }; + + + } // namespace Msg + +}// namespace SimGrid + + +#endif // !MSG_PROCESSNOTFOUNDEXCEPTION_HPP