Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Some new classes of CPP version of Msg
[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 #include <Config.hpp>\r
23 \r
24 namespace SimGrid\r
25 {\r
26         namespace Msg\r
27         {\r
28                 class MsgException;\r
29                 class FileNotFoundException;\r
30 \r
31                 // Simulation class declaration.\r
32                 class SIMGRIDX_EXPORT Simulation\r
33                 {\r
34                         public :\r
35                         \r
36                                 Simulation(){};\r
37                                 \r
38                                 Simulation(const Simulation& rSimulation);\r
39                                 \r
40                                 virtual ~Simulation(){};\r
41                                 \r
42                         // Operations.\r
43                         \r
44                                 int execute(int argc, char** argv);\r
45                                 \r
46                         private:\r
47                                 \r
48                                 void run(void)\r
49                                 throw (MsgException);\r
50                                 \r
51                                 \r
52                         // Operators.\r
53                                 const Simulation& operator = (const Simulation& rSimulation);\r
54                 };\r
55                 \r
56         } // namespace Msg\r
57 } // namespace SimGrid\r
58 \r
59 #endif // !MSG_SIMULATION_HPP