X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3879bc8993c5725fafe2ee5012ca2e3bee48aec2..130f51aeb55bd3bf2706c1f5b09ca59fa291c087:/include/xbt/file.hpp diff --git a/include/xbt/file.hpp b/include/xbt/file.hpp index 5dde47a6d7..afb262290b 100644 --- a/include/xbt/file.hpp +++ b/include/xbt/file.hpp @@ -10,11 +10,13 @@ #include #include -namespace simgrid { -namespace xbt { +namespace simgrid::xbt { -FILE* fopen_path(const std::string& name, const char* mode, const std::vector& path); -std::ifstream* ifsopen_path(const std::string& name, const std::vector& path); +void path_push(std::string const& str); +void path_pop(); +FILE* path_fopen(const std::string& name, const char* mode); +std::ifstream* path_ifsopen(const std::string& name); +std::string path_to_string(); class Path { public: @@ -35,6 +37,6 @@ public: private: std::string path_; }; -}} +} // namespace simgrid::xbt #endif /* XBT_FILE_HPP */