Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
the is_not_found field is defined for WIN32 only
[simgrid.git] / src / cxx / Simulation.hpp
index a0a4e6b..c2eeefb 100644 (file)
@@ -1,38 +1,61 @@
-#ifndef MSG_ENVIRONMENT_HPP\r
-#define MSG_ENVIRONMENT_HPP\r
-\r
-#ifndef __cplusplus\r
-       #error Sumulation.hpp requires C++ compilation (use a .cxx suffix)\r
-#endif\r
-\r
-namespace SimGrid\r
-{\r
-       namespace Msg\r
-       {\r
-               class Simulation\r
-               {\r
-                       public :\r
-                       \r
-                               Simulation();\r
-                               \r
-                               Simulation(const Simulation& rSimulation);\r
-                               \r
-                               virtual ~Simulation();\r
-                               \r
-                       // Operations.\r
-                       \r
-                               int execute(int argc, char** argv);\r
-                               \r
-                               \r
-                       // Operators.\r
-                       \r
-                               const Simulation& operator = (const Simulation& rSimulation);\r
-                       \r
-                       \r
-               };\r
-               \r
-       } // namespace Msg\r
-} // namespace SimGrid\r
-\r
-\r
-#endif // !MSG_ENVIRONMENT_HPP
\ No newline at end of file
+/*
+ * Simulation.hpp
+ *
+ * This file contains the declaration of the wrapper class of the native MSG task type.
+ *
+ * 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_SIMULATION_HPP
+#define MSG_SIMULATION_HPP
+
+#ifndef __cplusplus
+       #error Sumulation.hpp requires C++ compilation (use a .cxx suffix)
+#endif
+
+#include <MsgException.hpp>
+#include <FileNotFoundException.hpp>
+
+namespace SimGrid
+{
+       namespace Msg
+       {
+               class MsgException;
+               class FileNotFoundException;
+
+               // Simulation class declaration.
+               class SIMGRIDX_EXPORT Simulation
+               {
+                       public :
+                       
+                               Simulation(){};
+                               
+                               Simulation(const Simulation& rSimulation);
+                               
+                               virtual ~Simulation(){};
+                               
+                       // Operations.
+                       
+                               int execute(int argc, char** argv);
+                               
+                       private:
+                               
+                               void run(void)
+                               throw (MsgException);
+                               
+                               
+                       // Operators.
+                               const Simulation& operator = (const Simulation& rSimulation);
+               };
+               
+       } // namespace Msg
+} // namespace SimGrid
+
+#endif // !MSG_SIMULATION_HPP
+