Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A string utility class and a new Exception (used to throw out of band exception)
[simgrid.git] / src / cxx / HostNotFoundException.hpp
index 25d3330..a810d04 100644 (file)
 #ifndef MSG_HOSTNOTFOUNDEXCEPTION_HPP\r
 #define MSG_HOSTNOTFOUNDEXCEPTION_HPP\r
 \r
-#include "Exception.hpp"\r
+#ifndef __cplusplus\r
+       #error HostNotFoundException.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 HostNotFoundException : public Exception\r
+               class SIMGRIDX_EXPORT HostNotFoundException : public Exception\r
                {\r
                        public:\r
                        \r
@@ -62,3 +66,5 @@ namespace SimGrid
 \r
 \r
 #endif // !MSG_HOSTNOTFOUNDEXCEPTION_HPP\r
+\r
+\r