ClassMFile
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
Line 3: | Line 3: | ||
}} | }} | ||
− | {{doxybot-member|virtual MFile::~MFile|(void)} | + | {{doxybot-member|virtual MFile::~MFile|(void)}} |
− | {{doxybot-member|virtual MFile::~MFile|(void)|Destructor. } | + | {{doxybot-member|virtual MFile::~MFile|(void)|Destructor. }} |
− | {{doxybot-member|virtual void MFile::open|(const char *path, const char *mode)=0} | + | {{doxybot-member|virtual void MFile::open|(const char *path, const char *mode)=0}} |
− | {{doxybot-member|virtual void MFile::open|(const char *path, const char *mode)=0|Opens a file stream with the name specified by path. This usually should not be used directly and should be opened from the MFileTools interface. } | + | {{doxybot-member|virtual void MFile::open|(const char *path, const char *mode)=0|Opens a file stream with the name specified by path. This usually should not be used directly and should be opened from the MFileTools interface. }} |
− | {{doxybot-member|virtual int MFile::close|()=0} | + | {{doxybot-member|virtual int MFile::close|()=0}} |
− | {{doxybot-member|virtual int MFile::close|()=0|Close a file stream, if open. } | + | {{doxybot-member|virtual int MFile::close|()=0|Close a file stream, if open. }} |
− | {{doxybot-member|virtual size_t MFile::read|(void *dest, size_t size, size_t count)=0} | + | {{doxybot-member|virtual size_t MFile::read|(void *dest, size_t size, size_t count)=0}} |
− | {{doxybot-member|virtual size_t MFile::read|(void *dest, size_t size, size_t count)=0|Reads count amount of elements of data, each size bytes long, from the file, storing them at the location given by dest. Returns the number of items successfully read. If an error occurs, or the end-of-file is reached, the return value is a short item count (or zero). } | + | {{doxybot-member|virtual size_t MFile::read|(void *dest, size_t size, size_t count)=0|Reads count amount of elements of data, each size bytes long, from the file, storing them at the location given by dest. Returns the number of items successfully read. If an error occurs, or the end-of-file is reached, the return value is a short item count (or zero). }} |
− | {{doxybot-member|virtual size_t MFile::write|(const void *str, size_t size, size_t count)=0} | + | {{doxybot-member|virtual size_t MFile::write|(const void *str, size_t size, size_t count)=0}} |
− | {{doxybot-member|virtual size_t MFile::write|(const void *str, size_t size, size_t count)=0|Writes count amount of elements of data, each size bytes long, to the file, obtaining them from the location given by str. Returns the number of items successfully written. } | + | {{doxybot-member|virtual size_t MFile::write|(const void *str, size_t size, size_t count)=0|Writes count amount of elements of data, each size bytes long, to the file, obtaining them from the location given by str. Returns the number of items successfully written. }} |
− | {{doxybot-member|virtual int MFile::print|(const char *format,...)=0} | + | {{doxybot-member|virtual int MFile::print|(const char *format,...)=0}} |
− | {{doxybot-member|virtual int MFile::print|(const char *format,...)=0|Produces output according to the standard printf() style format and writes to the file. Returns the number of characters written to the file (excluding the null byte used to end output strings). } | + | {{doxybot-member|virtual int MFile::print|(const char *format,...)=0|Produces output according to the standard printf() style format and writes to the file. Returns the number of characters written to the file (excluding the null byte used to end output strings). }} |
− | {{doxybot-member|virtual int MFile::print|(const char *format, va_list args)=0} | + | {{doxybot-member|virtual int MFile::print|(const char *format, va_list args)=0}} |
− | {{doxybot-member|virtual int MFile::print|(const char *format, va_list args)=0|Produces output according to the standard printf() style format and writes to the file. Returns the number of characters written to the file (excluding the null byte used to end output strings). } | + | {{doxybot-member|virtual int MFile::print|(const char *format, va_list args)=0|Produces output according to the standard printf() style format and writes to the file. Returns the number of characters written to the file (excluding the null byte used to end output strings). }} |
− | {{doxybot-member|virtual int MFile::seek|(long offset, int whence)=0} | + | {{doxybot-member|virtual int MFile::seek|(long offset, int whence)=0}} |
− | {{doxybot-member|virtual int MFile::seek|(long offset, int whence)=0|Sets the file position indicator. The new position, measured in bytes, is obtained by adding offset bytes to the position specified by whence. If whence is set to SEEK_SET, SEEK_CUR, or SEEK_END, the offset is relative to the start of the file, the current position indicator, or end-of-file respectively. } | + | {{doxybot-member|virtual int MFile::seek|(long offset, int whence)=0|Sets the file position indicator. The new position, measured in bytes, is obtained by adding offset bytes to the position specified by whence. If whence is set to SEEK_SET, SEEK_CUR, or SEEK_END, the offset is relative to the start of the file, the current position indicator, or end-of-file respectively. }} |
− | {{doxybot-member|virtual long MFile::tell|()=0} | + | {{doxybot-member|virtual long MFile::tell|()=0}} |
− | {{doxybot-member|virtual long MFile::tell|()=0|Obtains the current value of the file position indicator for the file. } | + | {{doxybot-member|virtual long MFile::tell|()=0|Obtains the current value of the file position indicator for the file. }} |
− | {{doxybot-member|virtual void MFile::rewind|()=0} | + | {{doxybot-member|virtual void MFile::rewind|()=0}} |
− | {{doxybot-member|virtual void MFile::rewind|()=0|Sets the file position indicator to the beginning of the file. } | + | {{doxybot-member|virtual void MFile::rewind|()=0|Sets the file position indicator to the beginning of the file. }} |
− | {{doxybot-member|virtual bool MFile::isOpen|()=0} | + | {{doxybot-member|virtual bool MFile::isOpen|()=0}} |
− | {{doxybot-member|virtual bool MFile::isOpen|()=0|Checks if file is open. } | + | {{doxybot-member|virtual bool MFile::isOpen|()=0|Checks if file is open. }} |
− | {{doxybot-member|virtual void MFile::destroy|()=0} | + | {{doxybot-member|virtual void MFile::destroy|()=0}} |
− | {{doxybot-member|virtual void MFile::destroy|()=0|Destroy file stream. } | + | {{doxybot-member|virtual void MFile::destroy|()=0|Destroy file stream. }} |
{{doxybot-categories}} | {{doxybot-categories}} | ||
</includeonly> | </includeonly> |
Revision as of 12:44, 8 February 2014
This page is automatically edited by Doxybot. Do not edit it manually, human! Edit instead the main page MFile that it is trancluded into.