Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
woops
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 24 Feb 2017 14:21:18 +0000 (15:21 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 24 Feb 2017 14:21:18 +0000 (15:21 +0100)
src/kernel/routing/DragonflyZone.cpp
src/kernel/routing/FatTreeZone.cpp
src/surf/sg_platf.cpp
src/surf/xml/surfxml_sax_cb.cpp

index a85ce05..3e68e8e 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <boost/algorithm/string/classification.hpp>
 #include <boost/algorithm/string/split.hpp>
 
 #include <boost/algorithm/string/classification.hpp>
 #include <boost/algorithm/string/split.hpp>
+#include <string>
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_cluster_dragonfly, surf_route_cluster, "Dragonfly Routing part of surf");
 
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_cluster_dragonfly, surf_route_cluster, "Dragonfly Routing part of surf");
 
index cb69eef..b74a6cb 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <fstream>
 #include <sstream>
 
 #include <fstream>
 #include <sstream>
+#include <string>
 
 #include "src/kernel/routing/FatTreeZone.hpp"
 #include "src/kernel/routing/NetPoint.hpp"
 
 #include "src/kernel/routing/FatTreeZone.hpp"
 #include "src/kernel/routing/NetPoint.hpp"
index 9cb4e2c..33d727a 100644 (file)
@@ -24,7 +24,7 @@
 #include "src/kernel/routing/NetZoneImpl.hpp"
 #include "src/kernel/routing/TorusZone.hpp"
 #include "src/kernel/routing/VivaldiZone.hpp"
 #include "src/kernel/routing/NetZoneImpl.hpp"
 #include "src/kernel/routing/TorusZone.hpp"
 #include "src/kernel/routing/VivaldiZone.hpp"
-
+#include <string>
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_parse);
 
 XBT_PRIVATE xbt_dynar_t mount_list = nullptr;
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_parse);
 
 XBT_PRIVATE xbt_dynar_t mount_list = nullptr;
index 2f6bc1d..274a939 100644 (file)
@@ -19,6 +19,7 @@
 #include "xbt/log.h"
 #include "xbt/misc.h"
 #include "xbt/str.h"
 #include "xbt/log.h"
 #include "xbt/misc.h"
 #include "xbt/str.h"
+#include <string>
 
 #include "src/surf/xml/platf_private.hpp"
 
 
 #include "src/surf/xml/platf_private.hpp"
 
@@ -657,7 +658,7 @@ void ETag_surfxml_link(){
   link.properties          = current_property_set;
   current_property_set     = nullptr;
 
   link.properties          = current_property_set;
   current_property_set     = nullptr;
 
-  link.id                  = A_surfxml_link_id;
+  link.id                  = std::string(A_surfxml_link_id);
   link.bandwidth           = surf_parse_get_bandwidth(A_surfxml_link_bandwidth, "bandwidth of link", link.id.c_str());
   link.bandwidth_trace     = A_surfxml_link_bandwidth___file[0] ? tmgr_trace_new_from_file(A_surfxml_link_bandwidth___file) : nullptr;
   link.latency             = surf_parse_get_time(A_surfxml_link_latency, "latency of link", link.id.c_str());
   link.bandwidth           = surf_parse_get_bandwidth(A_surfxml_link_bandwidth, "bandwidth of link", link.id.c_str());
   link.bandwidth_trace     = A_surfxml_link_bandwidth___file[0] ? tmgr_trace_new_from_file(A_surfxml_link_bandwidth___file) : nullptr;
   link.latency             = surf_parse_get_time(A_surfxml_link_latency, "latency of link", link.id.c_str());
@@ -714,7 +715,7 @@ void ETag_surfxml_backbone(){
   memset(&link,0,sizeof(link));
 
   link.properties = nullptr;
   memset(&link,0,sizeof(link));
 
   link.properties = nullptr;
-  link.id = A_surfxml_backbone_id;
+  link.id = std::string(A_surfxml_backbone_id);
   link.bandwidth = surf_parse_get_bandwidth(A_surfxml_backbone_bandwidth, "bandwidth of backbone", link.id.c_str());
   link.latency = surf_parse_get_time(A_surfxml_backbone_latency, "latency of backbone", link.id.c_str());
   link.policy = SURF_LINK_SHARED;
   link.bandwidth = surf_parse_get_bandwidth(A_surfxml_backbone_bandwidth, "bandwidth of backbone", link.id.c_str());
   link.latency = surf_parse_get_time(A_surfxml_backbone_latency, "latency of backbone", link.id.c_str());
   link.policy = SURF_LINK_SHARED;