Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

gbio::BinaryStream Class Reference

File stream for binary IO. More...

#include <binarystream.h>

List of all members.

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)
 .


Detailed Description

File stream for binary IO.

Accepts all standard types, std::string, and writes out C-strings.

Remarks:
BinaryStream cannot read in C-strings.


Member Function Documentation

int gbio::BinaryStream::Open const std::string &    filename,
int    mode
[inline]
 

Open file.

Parameters:
filename  Path and/or file to open. \mode Pass in WRITE or READ.
Returns :
1 on success. 0 on failure.


The documentation for this class was generated from the following file:
Generated on Mon Sep 2 14:52:33 2002 for GunBuster Engine by doxygen1.2.17