1 #ifndef MSG_ENVIRONMENT_HPP
\r
2 #define MSG_ENVIRONMENT_HPP
\r
5 #error Environment.hpp requires C++ compilation (use a .cxx suffix)
\r
8 #include <InvalidParameterException.hpp>
\r
9 #include <LogicException.hpp>
\r
10 #include <MsgException.hpp>
\r
23 Environment(const Environment& rEnvironment);
\r
25 Environment(const char* file)
\r
26 throw(InvalidArgumentException);
\r
28 virtual ~Environment();
\r
33 throw(LogicException);
\r
35 void load(const char* file)
\r
36 throw(InvalidArgumentException, LogicException);
\r
38 bool isLoaded(void) const;
\r
41 void setFile(const char* file)
\r
42 throw(InvalidArgumentException, LogicException);
\r
44 const char* getFile(void) const;
\r
48 const Environment& operator = (const Environment& rEnvironment)
\r
49 throw(LogicException);
\r
55 // the xml file which describe the environment of the simulation.
\r
58 // flag : is true the environment of the simulation is loaded.
\r
63 } // namespace SimGrid
\r
66 #endif // !MSG_ENVIRONMENT_HPP