Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
last change of cpp wrappers for msg
[simgrid.git] / src / cxx / OutOfBoundsException.hpp
index 379c768..2b89c7b 100644 (file)
@@ -1,71 +1,71 @@
-/*\r
- * OutOfBoundsException.hpp\r
- *\r
- * Copyright 2006,2007 Martin Quinson, Malek Cherier           \r
- * All right reserved. \r
- *\r
- * This program is free software; you can redistribute \r
- * it and/or modify it under the terms of the license \r
- *(GNU LGPL) which comes with this package. \r
- *\r
- */  \r
\r
-#ifndef MSG_OUTOFBOUNDSEXCEPTION_HPP\r
-#define MSG_OUTOFBOUNDSEXCEPTION_HPP\r
-\r
-#ifndef __cplusplus\r
-       #error OutOfBoundsException.hpp requires C++ compilation (use a .cxx suffix)\r
-#endif\r
-\r
-#include <Exception.hpp>\r
-\r
-namespace SimGrid\r
-{\r
-       namespace Msg\r
-       {\r
-               \r
-               class SIMGRIDX_EXPORT OutOfBoundsException : public Exception\r
-               {\r
-                       public:\r
-                       \r
-                       // Default constructor.\r
-                               OutOfBoundsException();\r
-                       \r
-                       // Copy constructor.\r
-                               OutOfBoundsException(const OutOfBoundsException& rOutOfBoundsException);\r
-                       \r
-                       // This constructor takes the position in the range.\r
-                               OutOfBoundsException(int pos);\r
-\r
-                               OutOfBoundsException(int pos1, int pos2);\r
-                       \r
-                       // Destructor.\r
-                               virtual ~OutOfBoundsException();\r
-                               \r
-                       // Operations.\r
-                                       \r
-                                       // Returns the reason of the exception :\r
-                                       // the message "Out of bounds : `pos'"\r
-                                       const char* toString(void) const;\r
-                       \r
-                       // Operators.\r
-                               \r
-                               // Assignement.\r
-                               const OutOfBoundsException& operator = (const OutOfBoundsException& rOutOfBoundsException);\r
-                               \r
-                       private :\r
-                       \r
-                       // Attributes.\r
-                               \r
-                               // A buffer used to build the message returned by the methode toString().\r
-                               char* reason;\r
-               };\r
-               \r
-               \r
-       } // namespace Msg      \r
-\r
-}// namespace SimGrid\r
-\r
-\r
-#endif // !MSG_MSGEXCEPTION_HPP\r
-\r
+/*
+ * 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 <Exception.hpp>
+
+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
+