Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
tend to the google coding standards in all S4U API
[simgrid.git] / src / smpi / SmpiHost.cpp
index 79ea6b199d7e4735dbf4e78fe1798cb4f9d60484..cc9a8148778fc74ab3bb857647533a5ac779fcf1 100644 (file)
@@ -1,6 +1,12 @@
-#include "smpi/smpi_utils.hpp"
+/* Copyright (c) 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. */
+
 #include "src/smpi/SmpiHost.hpp"
-#include <simgrid/s4u/VirtualMachine.hpp>
+#include "simgrid/s4u/VirtualMachine.hpp"
+#include "smpi/smpi_utils.hpp"
+
 #include <string>
 #include <vector>
 
@@ -82,24 +88,24 @@ double SmpiHost::oisend(size_t size)
 
 SmpiHost::SmpiHost(simgrid::s4u::Host *ptr) : host(ptr)
 {
-  if (!SmpiHost::EXTENSION_ID.valid())
+  if (not SmpiHost::EXTENSION_ID.valid())
     SmpiHost::EXTENSION_ID = simgrid::s4u::Host::extension_create<SmpiHost>();
 
-  const char* orecv_string = host->property("smpi/or");
+  const char* orecv_string = host->getProperty("smpi/or");
   if (orecv_string != nullptr) {
     orecv_parsed_values = parse_factor(orecv_string);
   } else {
     orecv_parsed_values = parse_factor(xbt_cfg_get_string("smpi/or"));
   }
 
-  const char* osend_string = host->property("smpi/os");
+  const char* osend_string = host->getProperty("smpi/os");
   if (osend_string != nullptr) {
     osend_parsed_values = parse_factor(osend_string);
   } else {
     osend_parsed_values = parse_factor(xbt_cfg_get_string("smpi/os"));
   }
 
-  const char* oisend_string = host->property("smpi/ois");
+  const char* oisend_string = host->getProperty("smpi/ois");
   if (oisend_string != nullptr) {
     oisend_parsed_values = parse_factor(oisend_string);
   } else {