* For now, you cannot change the mountpoints programmatically, and must declare them from your platform file.
*/
class XBT_PUBLIC File : public xbt::Extendable<File> {
- sg_size_t size_;
+ sg_size_t size_ = 0;
std::string path_;
std::string fullpath_;
sg_size_t current_position_ = SEEK_SET;
/** Rename a file. WARNING: It is forbidden to move the file to another mount point */
void move(const std::string& fullpath) const;
- int remote_copy(sg_host_t host, const char* fullpath);
- int remote_move(sg_host_t host, const char* fullpath);
+ int remote_copy(sg_host_t host, const std::string& fullpath);
+ int remote_move(sg_host_t host, const std::string& fullpath);
int unlink() const; /** Remove a file from the contents of a disk */
void dump() const;