A stream to read or write binary data.
More...
#include <binstream.h>
A stream to read or write binary data.
- Author
- qianrui 2020-1-6
◆ Binstream() [1/3]
◆ Binstream() [2/3]
| Binstream::Binstream |
( |
const std::string | filename, |
|
|
const char * | op ) |
Construct a new Binstream:: Binstream object.
- Parameters
-
| filename | |
| op | "r": read "a": add "w": write |
◆ ~Binstream()
| Binstream::~Binstream |
( |
| ) |
|
◆ Binstream() [3/3]
◆ close()
| void Binstream::close |
( |
| ) |
|
◆ open()
| void Binstream::open |
( |
const std::string | filename, |
|
|
const char * | op ) |
◆ operator bool()
| Binstream::operator bool |
( |
| ) |
const |
◆ operator!()
| bool Binstream::operator! |
( |
| ) |
const |
◆ operator<<()
| Binstream & Binstream::operator<< |
( |
const T & | data | ) |
|
◆ operator=()
◆ operator>>()
◆ read()
| Binstream & Binstream::read |
( |
T * | data, |
|
|
const int | n ) |
◆ write()
| Binstream & Binstream::write |
( |
const T * | data, |
|
|
const int | n ) |
◆ fileptr
| FILE* Binstream::fileptr = nullptr |
The documentation for this class was generated from the following files:
- /home/runner/work/abacus-develop/abacus-develop/source/source_base/module_out/binstream.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_base/module_out/binstream.cpp