X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/75d29f0fa7f6c7c590075dd654d8ee70c80ff24a..1bd1bbd35034c2e93a030a676dc244ad2cf74c70:/src/surf/FileImpl.hpp?ds=sidebyside diff --git a/src/surf/FileImpl.hpp b/src/surf/FileImpl.hpp index 6b2f9cce25..b7acf366a4 100644 --- a/src/surf/FileImpl.hpp +++ b/src/surf/FileImpl.hpp @@ -7,7 +7,7 @@ #ifndef SRC_SURF_FILEIMPL_HPP_ #define SRC_SURF_FILEIMPL_HPP_ -#include "surf/surf.h" +#include "surf/surf.hpp" #include namespace simgrid { @@ -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; } @@ -29,8 +29,6 @@ public: int seek(sg_offset_t offset, int origin); int unlink(); void move(std::string fullpath); - Action* read(sg_size_t size); - Action* write(sg_size_t size); private: StorageImpl* location_;