Logo AND Algorithmique Numérique Distribuée

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