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