Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Big move of all SMPI files in subfolders because it was a mess.
[simgrid.git] / src / smpi / include / smpi_status.hpp
diff --git a/src/smpi/include/smpi_status.hpp b/src/smpi/include/smpi_status.hpp
new file mode 100644 (file)
index 0000000..8ac700b
--- /dev/null
@@ -0,0 +1,26 @@
+/* Copyright (c) 2009-2010, 2012-2017. The SimGrid Team.
+ * All rights 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 SMPI_STATUS_HPP
+#define SMPI_STATUS_HPP
+
+#include "smpi/smpi.h"
+
+namespace simgrid{
+namespace smpi{
+
+//Status has to stay in C, as its fields are public.
+//So status class only defines static methods to handle the C struct.
+class Status{
+public:
+static void empty(MPI_Status * status);
+static int get_count(MPI_Status * status, MPI_Datatype datatype);
+};
+
+
+}
+}
+#endif