#include <binarystream.h>
Public Methods | |
| BinaryStream (const std::string &filename=std::string(), int mode=gbio::READ) | |
| Default constructor. | |
| int | Open (const std::string &filename, int mode) |
| Open file. | |
| void | Close () |
| . | |
Extractors | |
| BinaryStream & | operator>> (std::streambuf *p_sb) |
| . | |
| BinaryStream & | operator>> (bool &oN) |
| . | |
| BinaryStream & | operator>> (char &oN) |
| . | |
| BinaryStream & | operator>> (unsigned char &oN) |
| . | |
| BinaryStream & | operator>> (short &oN) |
| . | |
| BinaryStream & | operator>> (unsigned short &oN) |
| . | |
| BinaryStream & | operator>> (int &oN) |
| . | |
| BinaryStream & | operator>> (unsigned int &oN) |
| . | |
| BinaryStream & | operator>> (long &oN) |
| . | |
| BinaryStream & | operator>> (unsigned long &oN) |
| . | |
| BinaryStream & | operator>> (float &oN) |
| . | |
| BinaryStream & | operator>> (double &oN) |
| . | |
| BinaryStream & | operator>> (long double &oN) |
| . | |
| BinaryStream & | operator>> (std::string &oN) |
| . | |
Insertors | |
| BinaryStream & | operator<< (std::streambuf *p_sb) |
| . | |
| BinaryStream & | operator<< (const char *s) |
| . | |
| BinaryStream & | operator<< (char c) |
| . | |
| BinaryStream & | operator<< (unsigned char c) |
| . | |
| BinaryStream & | operator<< (bool n) |
| . | |
| BinaryStream & | operator<< (short n) |
| . | |
| BinaryStream & | operator<< (unsigned short n) |
| . | |
| BinaryStream & | operator<< (int n) |
| . | |
| BinaryStream & | operator<< (unsigned int n) |
| . | |
| BinaryStream & | operator<< (long n) |
| . | |
| BinaryStream & | operator<< (unsigned long n) |
| . | |
| BinaryStream & | operator<< (float n) |
| . | |
| BinaryStream & | operator<< (double n) |
| . | |
| BinaryStream & | operator<< (long double n) |
| . | |
| BinaryStream & | operator<< (const std::string &n) |
| . | |
Accepts all standard types, std::string, and writes out C-strings.
|
||||||||||||
|
Open file.
|
1.2.17