
|
IFile implementation of a disk file.
More...
#include <File.h>
Inheritance diagram for File:
[legend]Collaboration diagram for File:
[legend]List of all members.
Detailed Description
IFile implementation of a disk file.
Definition at line 43 of file File.h.
Constructor & Destructor Documentation
File::File |
( |
const File & |
|
) |
[inline, private] |
Member Function Documentation
bool File::fopen |
( |
const std::string & |
, |
|
|
const std::string & |
| |
|
) |
| | [virtual] |
void File::fclose |
( |
|
) |
[virtual] |
size_t File::fread |
( |
char * |
, |
|
|
size_t |
, |
|
|
size_t |
| |
|
) |
| | [virtual] |
size_t File::fwrite |
( |
const char * |
, |
|
|
size_t |
, |
|
|
size_t |
| |
|
) |
| | [virtual] |
char * File::fgets |
( |
char * |
, |
|
|
int |
| |
|
) |
| | [virtual] |
void File::fprintf |
( |
const char * |
format, |
|
|
|
... | |
|
) |
| | [virtual] |
Implements IFile.
Definition at line 91 of file File.cpp.
References m_fil. 00092 {
00093 va_list ap;
00094 va_start(ap, format);
00095 vfprintf(m_fil, format, ap);
00096 va_end(ap);
00097 }
off_t File::size |
( |
|
) |
[virtual] |
Implements IFile.
Definition at line 100 of file File.cpp.
References m_path. 00101 {
00102 struct stat st;
00103 if (stat(m_path.c_str(), &st) == -1)
00104 {
00105 return 0;
00106 }
00107 return st.st_size;
00108 }
bool File::eof |
( |
|
) |
[virtual] |
Implements IFile.
Definition at line 111 of file File.cpp.
References m_fil. 00112 {
00113 if (m_fil)
00114 {
00115 if (feof(m_fil))
00116 return true;
00117 }
00118 return false;
00119 }
File& File::operator= |
( |
const File & |
|
) |
[inline, private] |
Member Data Documentation
The documentation for this class was generated from the following files:
|