22 #ifndef DBA_CORE_AOFFILE_H 23 #define DBA_CORE_AOFFILE_H 32 #include <dballe/core/file.h> 69 void write_record(
const uint32_t* words,
size_t wordcount);
82 void write(
const std::string& msg)
override;
Encoding
Supported encodings.
Definition: file.h:20
void write_record(const std::string &res)
Write a Fortran Unformatted Sequential Binary record to a file.
void write_dummy_header()
Write a dummy file header.
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition: cmdline.h:17
FILE * fd
FILE structure used to read or write to the file.
Definition: core/file.h:20
void write_word(uint32_t word)
Write a word to the file, byteswapping it for endianness if needed.
virtual Encoding encoding() const override
Get the file encoding.
Definition: aoffile.h:80
void read_header()
Read the file header, perform some consistency checks then discard the data.
void fix_header()
Rewrite the file header, scanning the file to compute a correct one.
Binary message.
Definition: file.h:131
void write(const std::string &msg) override
Append the binary message to the file.
bool read_record(std::string &res)
Read a Fortran Unformatted Sequential Binary record from a file.
bool close_on_exit
True if fd should be closed on destruction.
Definition: core/file.h:22
Base for dballe::File implementations.
Definition: core/file.h:14
BinaryMessage read() override
Read a message from the file.