X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a6aaba20655bd0936e02369871764649b740c04b..b9c27830674f1ed54f9553d4cd517842acc1aab1:/src/cxx/OutOfBoundsException.hpp diff --git a/src/cxx/OutOfBoundsException.hpp b/src/cxx/OutOfBoundsException.hpp index 379c76856a..2b89c7b644 100644 --- a/src/cxx/OutOfBoundsException.hpp +++ b/src/cxx/OutOfBoundsException.hpp @@ -1,71 +1,71 @@ -/* - * OutOfBoundsException.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_OUTOFBOUNDSEXCEPTION_HPP -#define MSG_OUTOFBOUNDSEXCEPTION_HPP - -#ifndef __cplusplus - #error OutOfBoundsException.hpp requires C++ compilation (use a .cxx suffix) -#endif - -#include - -namespace SimGrid -{ - namespace Msg - { - - class SIMGRIDX_EXPORT OutOfBoundsException : public Exception - { - public: - - // Default constructor. - OutOfBoundsException(); - - // Copy constructor. - OutOfBoundsException(const OutOfBoundsException& rOutOfBoundsException); - - // This constructor takes the position in the range. - OutOfBoundsException(int pos); - - OutOfBoundsException(int pos1, int pos2); - - // Destructor. - virtual ~OutOfBoundsException(); - - // Operations. - - // Returns the reason of the exception : - // the message "Out of bounds : `pos'" - const char* toString(void) const; - - // Operators. - - // Assignement. - const OutOfBoundsException& operator = (const OutOfBoundsException& rOutOfBoundsException); - - private : - - // Attributes. - - // A buffer used to build the message returned by the methode toString(). - char* reason; - }; - - - } // namespace Msg - -}// namespace SimGrid - - -#endif // !MSG_MSGEXCEPTION_HPP - +/* + * OutOfBoundsException.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_OUTOFBOUNDSEXCEPTION_HPP +#define MSG_OUTOFBOUNDSEXCEPTION_HPP + +#ifndef __cplusplus + #error OutOfBoundsException.hpp requires C++ compilation (use a .cxx suffix) +#endif + +#include + +namespace SimGrid +{ + namespace Msg + { + + class SIMGRIDX_EXPORT OutOfBoundsException : public Exception + { + public: + + // Default constructor. + OutOfBoundsException(); + + // Copy constructor. + OutOfBoundsException(const OutOfBoundsException& rOutOfBoundsException); + + // This constructor takes the position in the range. + OutOfBoundsException(int pos); + + OutOfBoundsException(int pos1, int pos2); + + // Destructor. + virtual ~OutOfBoundsException(); + + // Operations. + + // Returns the reason of the exception : + // the message "Out of bounds : `pos'" + const char* toString(void) const; + + // Operators. + + // Assignement. + const OutOfBoundsException& operator = (const OutOfBoundsException& rOutOfBoundsException); + + private : + + // Attributes. + + // A buffer used to build the message returned by the methode toString(). + char* reason; + }; + + + } // namespace Msg + +}// namespace SimGrid + + +#endif // !MSG_MSGEXCEPTION_HPP +