A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get rid of dependency on boost::filesystem.
[simgrid.git]
/
examples
/
smpi
/
replay_multiple_manual_deploy
/
replay_multiple_manual.cpp
diff --git
a/examples/smpi/replay_multiple_manual_deploy/replay_multiple_manual.cpp
b/examples/smpi/replay_multiple_manual_deploy/replay_multiple_manual.cpp
index
1b7330e
..
59550d3
100644
(file)
--- a/
examples/smpi/replay_multiple_manual_deploy/replay_multiple_manual.cpp
+++ b/
examples/smpi/replay_multiple_manual_deploy/replay_multiple_manual.cpp
@@
-26,12
+26,12
@@
#include <vector>
#include <boost/algorithm/string.hpp>
#include <vector>
#include <boost/algorithm/string.hpp>
-#include <boost/filesystem.hpp>
#include <boost/regex.hpp>
#include <simgrid/msg.h>
#include <simgrid/s4u.hpp>
#include <smpi/smpi.h>
#include <boost/regex.hpp>
#include <simgrid/msg.h>
#include <simgrid/s4u.hpp>
#include <smpi/smpi.h>
+#include <xbt/file.hpp>
XBT_LOG_NEW_DEFAULT_CATEGORY(replay_multiple_manual, "Messages specific for this example");
XBT_LOG_NEW_DEFAULT_CATEGORY(replay_multiple_manual, "Messages specific for this example");
@@
-174,8
+174,8
@@
static std::vector<Job*> all_jobs(const std::string& workload_file)
xbt_assert(f.is_open(), "Cannot open file '%s'.", workload_file.c_str());
std::vector<Job*> jobs;
xbt_assert(f.is_open(), "Cannot open file '%s'.", workload_file.c_str());
std::vector<Job*> jobs;
-
boost::filesystem::p
ath path(workload_file);
- std::string dir = path.
parent_path().nativ
e();
+
simgrid::xbt::P
ath path(workload_file);
+ std::string dir = path.
get_dir_nam
e();
boost::regex r(R"(^\s*(\S+)\s+(\S+\.txt)\s+(\d+)\s+(\d+)\s+(\d+(?:,\d+)*).*$)");
std::string line;
boost::regex r(R"(^\s*(\S+)\s+(\S+\.txt)\s+(\d+)\s+(\d+)\s+(\d+(?:,\d+)*).*$)");
std::string line;