1 #ifndef __JIO__JFILESTREAMIO__
2 #define __JIO__JFILESTREAMIO__
15 namespace JPP {
using namespace JIO; }
28 using JAbstractObjectStatus::operator bool;
29 using JAbstractObjectStatus::operator!;
30 using JReader::operator>>;
49 const int size = 1048576) :
62 void open(
const char* file_name)
64 static_cast<std::ifstream*
>(
this)->
open(file_name, std::ios::binary);
73 std::ifstream ::clear();
99 using JAbstractObjectStatus::operator bool;
100 using JAbstractObjectStatus::operator!;
101 using JWriter::operator<<;
120 const int size = 1048576) :
133 void open(
const char* file_name)
135 static_cast<std::ofstream*
>(
this)->
open(file_name, std::ios::binary);
145 static_cast<std::ofstream*
> (
this)->
close();
virtual void clear() override
Clear status of reader.
JFileStreamWriter()
Default constructor.
void open(const char *file_name)
Open file.
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn this
Binary input based on std::istream.
virtual void clear() override
Clear status of reader.
JFileStreamReader()
Default constructor.
void open(const char *file_name)
Open file.
JFileStreamReader(const char *file_name, const int size=1048576)
Constructor.
int size
size of internal buffer
int size
size of internal buffer
JFileStreamWriter(const char *file_name, const int size=1048576)
Constructor.
Binary buffered file output.
Binary buffered file input.
Binary output based on std::ostream.
void flush()
Write internal data to output.