Logo AND Algorithmique Numérique Distribuée

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