Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
"new ruby host method"
[simgrid.git] / src / cxx / ProcessNotFoundException.hpp
index 6e8bc6e..bdf5675 100644 (file)
@@ -1,64 +1,68 @@
-/*\r
- * ProcessNotFoundException.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_PROCESSNOTFOUNDEXCEPTION_HPP\r
-#define MSG_PROCESSNOTFOUNDEXCEPTION_HPP\r
-\r
-#include <Exception.hpp>\r
-\r
-namespace SimGrid\r
-{\r
-       namespace Msg\r
-       {\r
-               \r
-               class SIMGRIDX_EXPORT ProcessNotFoundException : public Exception\r
-               {\r
-                       public:\r
-                       \r
-                       // Default constructor.\r
-                               ProcessNotFoundException();\r
-                       \r
-                       // Copy constructor.\r
-                               ProcessNotFoundException(const ProcessNotFoundException& rProcessNotFoundException);\r
-                       \r
-                       // This constructor takes PID of the process.\r
-                               ProcessNotFoundException(int PID);\r
-                       \r
-                       // Destructor.\r
-                               virtual ~ProcessNotFoundException();\r
-                               \r
-                       // Operations.\r
-                                       \r
-                                       // Returns the reason of the exception :\r
-                                       // the message "Process not found `PID'"\r
-                                       const char* toString(void) const;\r
-                       \r
-                       // Operators.\r
-                               \r
-                               // Assignement.\r
-                               const ProcessNotFoundException& operator = (const ProcessNotFoundException& rProcessNotFoundException);\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_PROCESSNOTFOUNDEXCEPTION_HPP\r
+/*
+ * 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 <Exception.hpp>
+
+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