Go to the documentation of this file.
35 #ifndef TTA_BINARYSTREAM_HH
36 #define TTA_BINARYSTREAM_HH
61 BinaryStream(std::ostream &stream,
bool littleEndian=
false);
void writeHalfWord(HalfWord halfword)
unsigned int readPosition()
void setReadPosition(unsigned int position)
BinaryStream & operator=(BinaryStream &old)
Assignment not allowed.
void writeWord(Word word)
std::string fileName_
The name of the stream.
void writeHalfWordBlock(HalfWord *hwords, unsigned int howmany)
unsigned int writePosition()
void readWordBlock(Word *buffer, unsigned int howmany)
void setTPEFVersion(TPEFHeaders::TPEFVersion version)
void writeByteBlock(Byte *bytes, unsigned int howmany)
std::ostream * extOStream_
Externally given output stream.
bool littleEndianStorage_
In case we want to store the words in little endian order, big endian otherwise.
void readHalfWordBlock(HalfWord *buffer, unsigned int howmany)
void setWritePosition(unsigned int position)
std::ifstream iStream_
The input stream.
void writeWordBlock(Word *words, unsigned int howmany)
std::ofstream oStream_
The output stream.
void writeByte(Byte byte)
BinaryStream(std::ostream &stream, bool littleEndian=false)
void openInput(std::string name)
TPEFHeaders::TPEFVersion TPEFVersion() const
unsigned int sizeOfFile()
void readByteBlock(Byte *buffer, unsigned int howmany)
TPEFHeaders::TPEFVersion tpefVersion_
Indicates TPEF format version used.
void openOutput(std::string name)