Logo AND Algorithmique Numérique Distribuée

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