X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/331a25db7c5afa9a51e7c15b84dd9c5e99960450..ffd3399be33c589c5a5e720958f6351fdf9b0706:/src/cxx/MsgSimulation.hpp diff --git a/src/cxx/MsgSimulation.hpp b/src/cxx/MsgSimulation.hpp new file mode 100644 index 0000000000..c2eeefbc61 --- /dev/null +++ b/src/cxx/MsgSimulation.hpp @@ -0,0 +1,61 @@ +/* + * Simulation.hpp + * + * This file contains the declaration of the wrapper class of the native MSG task type. + * + * Copyright 2006,2007 Martin Quinson, Malek Cherier + * All right reserved. + * + * This program is free software; you can redistribute + * it and/or modify it under the terms of the license + *(GNU LGPL) which comes with this package. + * + */ + +#ifndef MSG_SIMULATION_HPP +#define MSG_SIMULATION_HPP + +#ifndef __cplusplus + #error Sumulation.hpp requires C++ compilation (use a .cxx suffix) +#endif + +#include +#include + +namespace SimGrid +{ + namespace Msg + { + class MsgException; + class FileNotFoundException; + + // Simulation class declaration. + class SIMGRIDX_EXPORT Simulation + { + public : + + Simulation(){}; + + Simulation(const Simulation& rSimulation); + + virtual ~Simulation(){}; + + // Operations. + + int execute(int argc, char** argv); + + private: + + void run(void) + throw (MsgException); + + + // Operators. + const Simulation& operator = (const Simulation& rSimulation); + }; + + } // namespace Msg +} // namespace SimGrid + +#endif // !MSG_SIMULATION_HPP +