1 /* Copyright (c) 2017. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
18 explicit Path(const char* path): path_(path) {}
19 explicit Path(std::string path): path_(std::move(path)) {}
21 /** @brief Returns the full path name */
22 std::string getName() { return path_; }
23 /** @brief Returns the directory component of a path (reimplementation of POSIX dirname) */
24 std::string getDirname();
25 /** @brief Returns the file component of a path (reimplementation of POSIX basename) */
26 std::string getBasename();
33 #endif /* XBT_FILE_HPP */