Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Examples of CPP versions of Msg
[simgrid.git] / examples / cxx / basic / Master.hpp
diff --git a/examples/cxx/basic/Master.hpp b/examples/cxx/basic/Master.hpp
new file mode 100644 (file)
index 0000000..dc08c6d
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef MASTER_HPP\r
+#define MASTER_HPP\r
+\r
+#include <Process.hpp>\r
+using namespace SimGrid::Msg;\r
+\r
+class Master : public Process\r
+{\r
+       MSG_DECLARE_DYNAMIC(Master);\r
+\r
+       public:\r
+       \r
+       // Default constructor.\r
+       Master(){}\r
+       \r
+       // Destructor.\r
+       virtual ~Master(){}\r
+       \r
+       int main(int argc, char** argv);\r
+               \r
+};\r
+\r
+#endif // !MASTER_HPP
\ No newline at end of file