Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Code refactoring on CPP
[simgrid.git] / src / cxx / Simulation.hpp
1 /*\r
2  * Simulation.hpp\r
3  *\r
4  * This file contains the declaration of the wrapper class of the native MSG task type.\r
5  *\r
6  * Copyright 2006,2007 Martin Quinson, Malek Cherier           \r
7  * All right reserved. \r
8  *\r
9  * This program is free software; you can redistribute \r
10  * it and/or modify it under the terms of the license \r
11  *(GNU LGPL) which comes with this package. \r
12  *\r
13  */  \r
14  \r
15 #ifndef MSG_SIMULATION_HPP\r
16 #define MSG_SIMULATION_HPP\r
17 \r
18 #ifndef __cplusplus\r
19         #error Sumulation.hpp requires C++ compilation (use a .cxx suffix)\r
20 #endif\r
21 \r
22 namespace SimGrid\r
23 {\r
24         namespace Msg\r
25         {\r
26                 // Simulation class declaration.\r
27                 class Simulation\r
28                 {\r
29                         public :\r
30                         \r
31                                 Simulation();\r
32                                 \r
33                                 Simulation(const Simulation& rSimulation);\r
34                                 \r
35                                 virtual ~Simulation();\r
36                                 \r
37                         // Operations.\r
38                         \r
39                                 int execute(int argc, char** argv);\r
40                                 \r
41                         private:\r
42                                 \r
43                                 void run(void)\r
44                                 throw (MsgException);\r
45                                 \r
46                                 \r
47                         // Operators.\r
48                                 const Simulation& operator = (const Simulation& rSimulation);\r
49                 };\r
50                 \r
51         } // namespace Msg\r
52 } // namespace SimGrid\r
53 \r
54 #endif // !MSG_SIMULATION_HPP