* For now, you cannot change the mountpoints programatically, and must declare them from your platform file.
*/
XBT_PUBLIC_CLASS File {
public:
File(const char *fullpath, void* userdata);
~File();
* For now, you cannot change the mountpoints programatically, and must declare them from your platform file.
*/
XBT_PUBLIC_CLASS File {
public:
File(const char *fullpath, void* userdata);
~File();
/** Simulates a read action. Returns the size of data actually read
*
* FIXME: reading from a remotely mounted disk is not implemented yet.
/** Simulates a read action. Returns the size of data actually read
*
* FIXME: reading from a remotely mounted disk is not implemented yet.
void setUserdata(void *data) {userdata_ = data;}
/** Retrieves the previously stored data */
void* userdata() {return userdata_;}
void setUserdata(void *data) {userdata_ = data;}
/** Retrieves the previously stored data */
void* userdata() {return userdata_;}