-/*\r
- * Exception.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_EXCEPTION_HPP\r
-#define MSG_EXCEPTION_HPP\r
-\r
-namespace SimGrid\r
-{\r
- namespace Msg\r
- {\r
- \r
- class Exception\r
- {\r
- public:\r
- \r
- // Default constructor.\r
- Exception();\r
- \r
- // Copy constructor.\r
- Exception(const Exception& rException);\r
- \r
- // This constructor takes the reason of the exception.\r
- Exception(const char* reason);\r
- \r
- // Destructor.\r
- virtual ~Exception();\r
- \r
- // Operations.\r
- \r
- // Returns the reason of the exception.\r
- const char* toString(void) const;\r
- \r
- // Operators.\r
- \r
- // Assignement.\r
- const Exception& operator = (const Exception& rException);\r
- \r
- private :\r
- \r
- // Attributes.\r
- \r
- // The reason of the exceptions.\r
- const char* reason;\r
- };\r
- \r
- \r
- } // namespace Msg \r
-\r
-}// namespace SimGrid\r
-\r
-\r
-#endif // !MSG_EXCEPTION_HPP\r
+/*
+ * Exception.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_EXCEPTION_HPP
+#define MSG_EXCEPTION_HPP
+
+#ifndef __cplusplus
+ #error Exception.hpp requires C++ compilation (use a .cxx suffix)
+#endif
+
+#include <Config.hpp>
+
+namespace SimGrid
+{
+ namespace Msg
+ {
+
+ class SIMGRIDX_EXPORT Exception
+ {
+ public:
+
+ // Default constructor.
+ Exception();
+
+ // Copy constructor.
+ Exception(const Exception& rException);
+
+ // This constructor takes the reason of the exception.
+ Exception(const char* reason);
+
+ // Destructor.
+ virtual ~Exception();
+
+ // Operations.
+
+ // Returns the reason of the exception.
+ const char* toString(void) const;
+
+ // Operators.
+
+ // Assignement.
+ const Exception& operator = (const Exception& rException);
+
+ private :
+
+ // Attributes.
+
+ // The reason of the exceptions.
+ const char* reason;
+ };
+
+
+ } // namespace Msg
+
+}// namespace SimGrid
+
+
+#endif // !MSG_EXCEPTION_HPP
+