13 #define INSERT_IMPLEMENT(TYPE) \
14 uostream& uostream::operator<< (TYPE x) \
16 write((char*)&x, sizeof(TYPE)); \
20 #define EXTRACT_IMPLEMENT(TYPE) \
21 uistream& uistream::operator>> (const TYPE& x) \
23 read((char*)&x, sizeof(TYPE)); \
28 :ofstream(name, std::ios::binary | std::ios::openmode(m))
38 ifstream::open(name, std::ios::binary | std::ios::openmode(m));
47 ofstream::open(name, std::ios::binary | std::ios::openmode(m));
55 :ifstream(name, std::ios::binary | std::ios::openmode(m))
61 read((
char*)&x,
sizeof(
int));
67 :ios(&buffer), ofstream(name, m, prot) { }
70 :ios(&buffer), ifstream(name, m| ios::nocreate , prot) { }
118 # if (__BORLANDC__ > 0x0520)
void read(const test_smartlist &, void *, int nsize)
void open(const char *name, int mode=ios::in|ios::binary, int prot=0664)
Description not yet available.
void open(const char *name, int mode=ios::out|ios::binary, int prot=0664)
Description not yet available.
uostream(const char *name, int mode=ios::out|ios::binary, int prot=0664)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
#define INSERT_IMPLEMENT(TYPE)
uistream(const char *name, int mode=ios::in|ios::binary, int prot=0664)
Description not yet available.
#define EXTRACT_IMPLEMENT(TYPE)
Description not yet available.
uistream & operator>>(int &)