Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Code refactoring on CPP
[simgrid.git] / src / cxx / Simulation.hpp
index 9ad9163..00f4ab1 100644 (file)
@@ -1,5 +1,19 @@
-#ifndef MSG_ENVIRONMENT_HPP\r
-#define MSG_ENVIRONMENT_HPP\r
+/*\r
+ * Simulation.hpp\r
+ *\r
+ * This file contains the declaration of the wrapper class of the native MSG task type.\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_SIMULATION_HPP\r
+#define MSG_SIMULATION_HPP\r
 \r
 #ifndef __cplusplus\r
        #error Sumulation.hpp requires C++ compilation (use a .cxx suffix)\r
@@ -9,6 +23,7 @@ namespace SimGrid
 {\r
        namespace Msg\r
        {\r
+               // Simulation class declaration.\r
                class Simulation\r
                {\r
                        public :\r
@@ -23,19 +38,17 @@ namespace SimGrid
                        \r
                                int execute(int argc, char** argv);\r
                                \r
-                               void run(const Environment& rEnvironment, const Application& rApplication)\r
+                       private:\r
+                               \r
+                               void run(void)\r
                                throw (MsgException);\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
+#endif // !MSG_SIMULATION_HPP
\ No newline at end of file