#include <file.h>
Inheritance diagram for os::File:
Public Types | |
enum | { DEFAULT_BUFFER_SIZE = 32768 } |
Public Methods | |
File () | |
Default constructor. More... | |
File (const std::string &cPath, int nOpenMode=O_RDONLY) | |
Construct a file from a regular path. More... | |
File (const Directory &cDir, const std::string &cName, int nOpenMode=O_RDONLY) | |
Open a file addressed as a name inside a specified directory. More... | |
File (const FileReference &cRef, int nOpenMode=O_RDONLY) | |
Open a file referred to by a os::FileReference. More... | |
File (const FSNode &cNode) | |
Construct a file from a FSNode. More... | |
File (const File &cFile) | |
Copy constructos. More... | |
virtual | ~File () |
virtual status_t | FDChanged (int nNewFD, const struct::stat &sStat) |
virtual off_t | GetSize (bool bUpdateCache=true) const |
virtual ssize_t | Read (void *pBuffer, ssize_t nSize) |
virtual ssize_t | Write (const void *pBuffer, ssize_t nSize) |
virtual ssize_t | ReadPos (off_t nPos, void *pBuffer, ssize_t nSize) |
virtual ssize_t | WritePos (off_t nPos, const void *pBuffer, ssize_t nSize) |
virtual off_t | Seek (off_t nPos, int nMode) |
Move the file pointer. More... | |
status_t | SetBufferSize (int nSize) |
Set the size of the files caching buffer. More... | |
int | GetBufferSize () const |
Obtain the files buffer size. More... | |
status_t | Flush () |
Write unwritten data to the underlying file. More... |
|
|
|
Default constructor.
|
|
Construct a file from a regular path.
|
|
Open a file addressed as a name inside a specified directory.
|
|
Open a file referred to by a os::FileReference.
|
|
Construct a file from a FSNode.
|
|
Copy constructos.
|
|
|
|
Reimplemented from os::FSNode. |
|
Write unwritten data to the underlying file.
|
|
Obtain the files buffer size.
|
|
Reimplemented from os::FSNode. |
|
Reimplemented from os::StreamableIO. |
|
Reimplemented from os::SeekableIO. |
|
Move the file pointer.
Reimplemented from os::SeekableIO. |
|
Set the size of the files caching buffer.
|
|
Reimplemented from os::StreamableIO. |
|
Reimplemented from os::SeekableIO. |