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
stringify a bit
[simgrid.git]
/
src
/
surf
/
FileImpl.hpp
diff --git
a/src/surf/FileImpl.hpp
b/src/surf/FileImpl.hpp
index
e8ae85b
..
6b2f9cc
100644
(file)
--- a/
src/surf/FileImpl.hpp
+++ b/
src/surf/FileImpl.hpp
@@
-15,7
+15,7
@@
namespace surf {
class FileImpl {
public:
class FileImpl {
public:
- FileImpl(
const char* path, const char* mount, sg_size_t size) : path_(path), mount_point_(mount), size_(size) {}
+ FileImpl(
sg_storage_t st, std::string path, std::string mount);
~FileImpl() = default;
std::string name() { return path_; }
~FileImpl() = default;
std::string name() { return path_; }
@@
-26,11
+26,18
@@
public:
void setPosition(sg_size_t size) { current_position_ = size; }
void incrPosition(sg_size_t incr) { current_position_ += incr; }
sg_size_t tell() { return current_position_; }
void setPosition(sg_size_t size) { current_position_ = size; }
void incrPosition(sg_size_t incr) { current_position_ += incr; }
sg_size_t tell() { return current_position_; }
+ 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:
private:
+ StorageImpl* location_;
std::string path_;
std::string mount_point_;
sg_size_t size_;
std::string path_;
std::string mount_point_;
sg_size_t size_;
- sg_size_t current_position_ =
0
;
+ sg_size_t current_position_ =
SEEK_SET
;
};
}
}
};
}
}