X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ab2f258eb5e0f714e4219125e51c118d958bb66d..dd89cc2577e61b4b86b1ae7bc58dfa2ad00747e6:/src/surf/FileImpl.hpp diff --git a/src/surf/FileImpl.hpp b/src/surf/FileImpl.hpp index 0478ea1097..94337fed3a 100644 --- a/src/surf/FileImpl.hpp +++ b/src/surf/FileImpl.hpp @@ -18,8 +18,8 @@ public: FileImpl(sg_storage_t st, std::string path, std::string mount); ~FileImpl() = default; - std::string name() { return path_; } - const char* cname() { return path_.c_str(); } + const std::string& getName() const { return path_; } + const char* getCname() const { return path_.c_str(); } const char* mount() { return mount_point_.c_str(); } sg_size_t size() { return size_; } void setSize(sg_size_t size) { size_ = size; } @@ -28,7 +28,7 @@ public: sg_size_t tell() { return current_position_; } int seek(sg_offset_t offset, int origin); int unlink(); - void move(const char* fullpath); + void move(std::string fullpath); Action* read(sg_size_t size); Action* write(sg_size_t size);