#include <iofstream.hpp>
|
| ifstream () |
|
| ifstream (std::string file, bool binary) |
|
| ifstream (FILE *file, bool binary) |
|
virtual size_t | readline (void *data, size_t offset, size_t size) |
|
virtual bool | close () |
|
virtual size_t | seek (size_t off, seek_t org) |
|
virtual size_t | read (void *data, size_t offset, size_t size) |
|
virtual char | read () |
|
virtual size_t | write (const void *data, size_t offset, size_t size) |
|
virtual void | write (char c) |
|
virtual filestream & | reopen (filemode_t mode, bool binary) |
|
virtual void | clear () |
|
virtual long | position () |
|
virtual long | size () |
|
virtual bool | iseof () |
|
virtual void | flush () |
|
virtual std::string | filename () |
|
virtual bool | isbinary () |
|
virtual filemode_t | mode () |
|
| operator bool () |
|
virtual bool | canRead () |
|
virtual bool | canSeek () |
|
virtual bool | canWrite () |
|
◆ ifstream() [1/3]
std::ifstream::ifstream |
( |
| ) |
|
|
inline |
◆ ifstream() [2/3]
std::ifstream::ifstream |
( |
std::string |
file, |
|
|
bool |
binary |
|
) |
| |
|
inline |
filestream()
Definition: filestream.hpp:51
◆ ifstream() [3/3]
std::ifstream::ifstream |
( |
FILE * |
file, |
|
|
bool |
binary |
|
) |
| |
|
inline |
filestream()
Definition: filestream.hpp:51
◆ canRead()
virtual bool std::stream::canRead |
( |
| ) |
|
|
inlinevirtualinherited |
bool m_canRead
Definition: stream.hpp:79
◆ canread()
const value_type * c_str() const
Definition: basic_string.hpp:199
static void * fOpen(const char *file, const char *fmt)
Definition: PLATFORM.cpp:68
static void fClose(void *file)
Definition: PLATFORM.cpp:71
◆ canSeek()
virtual bool std::stream::canSeek |
( |
| ) |
|
|
inlinevirtualinherited |
bool m_canSeek
Definition: stream.hpp:81
◆ canWrite()
virtual bool std::stream::canWrite |
( |
| ) |
|
|
inlinevirtualinherited |
bool m_canWrite
Definition: stream.hpp:80
◆ canwrite()
const value_type * c_str() const
Definition: basic_string.hpp:199
static void * fOpen(const char *file, const char *fmt)
Definition: PLATFORM.cpp:68
static void fClose(void *file)
Definition: PLATFORM.cpp:71
◆ clear()
void std::filestream::clear |
( |
| ) |
|
|
virtualinherited |
Erneute Implementation von std::stream.
value_type * get() const
Definition: auto_ptr.hpp:134
auto_ptr< FILE > m_fFile
Definition: filestream.hpp:87
static int fSeek(void *file, int off, int org)
Definition: PLATFORM.cpp:89
◆ close()
bool std::filestream::close |
( |
| ) |
|
|
virtualinherited |
value_type * get() const
Definition: auto_ptr.hpp:134
auto_ptr< FILE > m_fFile
Definition: filestream.hpp:87
static void fClose(void *file)
Definition: PLATFORM.cpp:71
◆ filename()
std::string m_strFile
Definition: filestream.hpp:88
◆ flush()
void std::filestream::flush |
( |
| ) |
|
|
virtualinherited |
Erneute Implementation von std::stream.
value_type * get() const
Definition: auto_ptr.hpp:134
static int fFlush(void *file)
Definition: PLATFORM.cpp:98
auto_ptr< FILE > m_fFile
Definition: filestream.hpp:87
◆ isbinary()
virtual bool std::filestream::isbinary |
( |
| ) |
|
|
inlinevirtualinherited |
bool m_binary
Definition: filestream.hpp:89
◆ iseof()
bool std::filestream::iseof |
( |
| ) |
|
|
virtualinherited |
Erneute Implementation von std::stream.
static int fEOF(void *file)
Definition: PLATFORM.cpp:101
value_type * get() const
Definition: auto_ptr.hpp:134
auto_ptr< FILE > m_fFile
Definition: filestream.hpp:87
◆ isfile()
const value_type * c_str() const
Definition: basic_string.hpp:199
static bool fIsFile(const char *file)
Definition: PLATFORM.cpp:107
◆ mode()
filemode_t m_mode
Definition: filestream.hpp:86
◆ operator bool()
std::filestream::operator bool |
( |
| ) |
|
|
inlineinherited |
value_type * get() const
Definition: auto_ptr.hpp:134
auto_ptr< FILE > m_fFile
Definition: filestream.hpp:87
◆ position()
long std::filestream::position |
( |
| ) |
|
|
virtualinherited |
Erneute Implementation von std::stream.
value_type * get() const
Definition: auto_ptr.hpp:134
auto_ptr< FILE > m_fFile
Definition: filestream.hpp:87
static int fTell(void *file)
Definition: PLATFORM.cpp:74
◆ read() [1/2]
size_t std::filestream::read |
( |
void * |
data, |
|
|
size_t |
offset, |
|
|
size_t |
size |
|
) |
| |
|
virtualinherited |
Erneute Implementation von std::stream.
static int fRead(void *data, const int count, const int size, void *file)
Definition: PLATFORM.cpp:92
value_type * get() const
Definition: auto_ptr.hpp:134
virtual size_t seek(size_t off, seek_t org)
Definition: filestream.cpp:90
virtual long size()
Definition: filestream.cpp:155
auto_ptr< FILE > m_fFile
Definition: filestream.hpp:87
◆ read() [2/2]
char std::filestream::read |
( |
| ) |
|
|
virtualinherited |
Erneute Implementation von std::stream.
value_type * get() const
Definition: auto_ptr.hpp:134
auto_ptr< FILE > m_fFile
Definition: filestream.hpp:87
static int fGetc(void *file)
Definition: PLATFORM.cpp:83
◆ readline()
virtual size_t std::ifstream::readline |
( |
void * |
data, |
|
|
size_t |
offset, |
|
|
size_t |
size |
|
) |
| |
|
inlinevirtual |
50 size_t r = 0, tobuf = 0;
54 r =
read(&ch, offset, 1);
55 if (r == -1)
return -1;
56 else if(r == 0)
if (tobuf == 0)
return 0;
else break;
58 if (tobuf <
size - 1) {
virtual long size()
Definition: filestream.cpp:155
virtual char read()
Definition: filestream.cpp:127
◆ reopen()
virtual filemode_t mode()
Definition: filestream.hpp:79
bool m_binary
Definition: filestream.hpp:89
filemode_t m_mode
Definition: filestream.hpp:86
◆ seek()
size_t std::filestream::seek |
( |
size_t |
off, |
|
|
seek_t |
org |
|
) |
| |
|
virtualinherited |
Erneute Implementation von std::stream.
value_type * get() const
Definition: auto_ptr.hpp:134
bool m_canSeek
Definition: stream.hpp:81
auto_ptr< FILE > m_fFile
Definition: filestream.hpp:87
static int fSeek(void *file, int off, int org)
Definition: PLATFORM.cpp:89
static int fTell(void *file)
Definition: PLATFORM.cpp:74
◆ size()
long std::filestream::size |
( |
| ) |
|
|
virtualinherited |
Erneute Implementation von std::stream.
virtual long position()
Definition: filestream.cpp:166
virtual size_t seek(size_t off, seek_t org)
Definition: filestream.cpp:90
virtual long size()
Definition: filestream.cpp:155
◆ write() [1/2]
size_t std::filestream::write |
( |
const void * |
data, |
|
|
size_t |
offset, |
|
|
size_t |
size |
|
) |
| |
|
virtualinherited |
Erneute Implementation von std::stream.
value_type * get() const
Definition: auto_ptr.hpp:134
virtual size_t seek(size_t off, seek_t org)
Definition: filestream.cpp:90
virtual long size()
Definition: filestream.cpp:155
bool m_canWrite
Definition: stream.hpp:80
auto_ptr< FILE > m_fFile
Definition: filestream.hpp:87
static int fWrite(void *data, const int count, const int size, void *file)
Definition: PLATFORM.cpp:95
◆ write() [2/2]
void std::filestream::write |
( |
char |
c | ) |
|
|
virtualinherited |
Erneute Implementation von std::stream.
value_type * get() const
Definition: auto_ptr.hpp:134
static int fPutc(int c, void *file)
Definition: PLATFORM.cpp:77
auto_ptr< FILE > m_fFile
Definition: filestream.hpp:87
◆ m_binary
bool std::filestream::m_binary |
|
protectedinherited |
◆ m_canRead
bool std::stream::m_canRead |
|
protectedinherited |
◆ m_canSeek
bool std::stream::m_canSeek |
|
protectedinherited |
◆ m_canWrite
bool std::stream::m_canWrite |
|
protectedinherited |
◆ m_fFile
◆ m_mode
◆ m_strFile
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: