#include <BinFile.h>
Inheritance diagram for rs::file::BinaryFile:
Public Methods | |
BinaryFile (const std::string &filename_, BinaryFileType type_) | |
creates a binary file throws an IOError if anything goes wrong. More... | |
virtual | ~BinaryFile () |
const std::string & | name () const |
returns filename. More... | |
bool | good () |
like 'iostream'.good(). More... | |
bool | eof () |
like 'iostream'.eof(). More... | |
void | put_char (unsigned char c) |
write a character to a binary output file. More... | |
void | get_char (unsigned char &c) |
read a character from a binary input file. More... | |
void | put_nat (unsigned long nat) |
write a value to BinaryFile. More... | |
void | get_nat (unsigned long &i) |
read an value from a BinaryFile. More... | |
void | put_long (long i) |
write a signed value to a BinaryFile. More... | |
void | get_long (long &i) |
void | put_int (int i) |
write a signed int to a binary output file. More... | |
void | get_int (int &i) |
read a signed int from a binary input file. More... | |
void | write_bytes (const unsigned char *buf, std::streamsize size) |
write some bytes to a binary output file. More... | |
void | read_bytes (unsigned char *buf, std::streamsize size) |
read some bytes from a binary input file. More... | |
void | put_string (const std::string &s) |
write a string to a binary output file. More... | |
void | get_string (std::string &s) |
read a string from a binary input file. More... | |
Private Attributes | |
std::string | filename |
BinaryFileType | type |
std::fstream * | file |
Definition at line 41 of file BinFile.h.
|
creates a binary file throws an IOError if anything goes wrong.
|
|
|
|
returns filename.
Definition at line 67 of file BinFile.h. Referenced by rs::file::loadDirectories(). |
|
like 'iostream'.good().
|
|
like 'iostream'.eof().
|
|
write a character to a binary output file.
|
|
read a character from a binary input file.
|
|
write a value to BinaryFile.
Definition at line 100 of file BinFile.h. Referenced by Directory::save(), and rs::file::saveDirectories(). |
|
read an value from a BinaryFile.
Definition at line 133 of file BinFile.h. Referenced by Directory::load(), and rs::file::loadDirectories(). |
|
write a signed value to a BinaryFile.
|
|
read a signed value from a BinaryFile
|
|
write a signed int to a binary output file.
Definition at line 192 of file BinFile.h. Referenced by rs::file::saveDirectories(). |
|
read a signed int from a binary input file.
Definition at line 197 of file BinFile.h. Referenced by rs::file::loadDirectories(). |
|
write some bytes to a binary output file.
Definition at line 204 of file BinFile.h. Referenced by rs::file::put_binary(). |
|
read some bytes from a binary input file.
Definition at line 212 of file BinFile.h. Referenced by rs::file::get_binary(). |
|
write a string to a binary output file.
Definition at line 219 of file BinFile.h. Referenced by Directory::save(), and rs::file::saveDirectories(). |
|
read a string from a binary input file.
Definition at line 225 of file BinFile.h. Referenced by Directory::load(), and rs::file::loadDirectories(). |
|
|
|
|
|
|
Contact me in case of errors or questions. This documentation is powered by ![]() |
(C) 2000-2002 ![]() |