eckit::FileStream class

Stream to serialise to FILE*.

Base classes

class Stream

Public static functions

static void dump(std::ostream&, const char*, size_t)

Constructors, destructors, conversion operators

FileStream(const PathName& name, const char* mode)
~FileStream() override

Public functions

auto read(void*, long) -> long override
auto write(const void*, long) -> long override
void rewind() override
void close()
auto operator<<(char) -> Stream&
auto operator<<(unsigned char) -> Stream&
auto operator<<(bool) -> Stream&
auto operator<<(int) -> Stream&
auto operator<<(unsigned int) -> Stream&
auto operator<<(short) -> Stream&
auto operator<<(unsigned short) -> Stream&
auto operator<<(long) -> Stream&
auto operator<<(unsigned long) -> Stream&
auto operator<<(long long) -> Stream&
auto operator<<(unsigned long long) -> Stream&
auto operator<<(float) -> Stream&
auto operator<<(double) -> Stream&
auto operator<<(const std::string&) -> Stream&
auto operator<<(const char*) -> Stream&
auto operator<<(const std::exception&) -> Stream&
auto operator<<(const Buffer&) -> Stream&
auto operator>>(char&) -> Stream&
auto operator>>(unsigned char&) -> Stream&
auto operator>>(int&) -> Stream&
auto operator>>(unsigned int&) -> Stream&
auto operator>>(bool&) -> Stream&
auto operator>>(long&) -> Stream&
auto operator>>(unsigned long&) -> Stream&
auto operator>>(long long&) -> Stream&
auto operator>>(unsigned long long&) -> Stream&
auto operator>>(short&) -> Stream&
auto operator>>(unsigned short&) -> Stream&
auto operator>>(float&) -> Stream&
auto operator>>(double&) -> Stream&
auto operator>>(std::string&) -> Stream&
auto operator>>(Buffer&) -> Stream&
auto operator>>(std::map<std::string, std::string>&) -> Stream&
auto next(std::string&) -> bool
auto next(bool&) -> bool
auto next(int&) -> bool
auto next() -> bool
auto endObjectFound() -> bool
void skipEndObject()
void startObject()
void endObject()
void writeBlob(const void*, size_t)
void readBlob(void*, size_t)
void writeLargeBlob(const void*, size_t)
void readLargeBlob(void*, size_t)
void closeOutput() virtual
void closeInput() virtual
auto bytesWritten() -> long long
void resetBytesWritten()
void startRecord(unsigned long)
void endRecord()
auto nextRecord(unsigned long&, bool sync = false) -> bool
void lock()
void unlock()

Private functions

auto name() const -> std::string override
void print(std::ostream& s) const override

Function documentation

static void eckit::FileStream::dump(std::ostream&, const char*, size_t)

Stream& eckit::FileStream::operator<<(char)

Stream& eckit::FileStream::operator<<(unsigned char)

Stream& eckit::FileStream::operator<<(bool)

Stream& eckit::FileStream::operator<<(int)

Stream& eckit::FileStream::operator<<(unsigned int)

Stream& eckit::FileStream::operator<<(short)

Stream& eckit::FileStream::operator<<(unsigned short)

Stream& eckit::FileStream::operator<<(long)

Stream& eckit::FileStream::operator<<(unsigned long)

Stream& eckit::FileStream::operator<<(long long)

Stream& eckit::FileStream::operator<<(unsigned long long)

Stream& eckit::FileStream::operator<<(float)

Stream& eckit::FileStream::operator<<(double)

Stream& eckit::FileStream::operator<<(const std::string&)

Stream& eckit::FileStream::operator<<(const char*)

Stream& eckit::FileStream::operator<<(const std::exception&)

Stream& eckit::FileStream::operator<<(const Buffer&)

Stream& eckit::FileStream::operator>>(char&)

Stream& eckit::FileStream::operator>>(unsigned char&)

Stream& eckit::FileStream::operator>>(int&)

Stream& eckit::FileStream::operator>>(unsigned int&)

Stream& eckit::FileStream::operator>>(bool&)

Stream& eckit::FileStream::operator>>(long&)

Stream& eckit::FileStream::operator>>(unsigned long&)

Stream& eckit::FileStream::operator>>(long long&)

Stream& eckit::FileStream::operator>>(unsigned long long&)

Stream& eckit::FileStream::operator>>(short&)

Stream& eckit::FileStream::operator>>(unsigned short&)

Stream& eckit::FileStream::operator>>(float&)

Stream& eckit::FileStream::operator>>(double&)

Stream& eckit::FileStream::operator>>(Buffer&)

bool eckit::FileStream::next(std::string&)

bool eckit::FileStream::next(bool&)

bool eckit::FileStream::next(int&)

bool eckit::FileStream::next()

bool eckit::FileStream::endObjectFound()

void eckit::FileStream::skipEndObject()

void eckit::FileStream::startObject()

void eckit::FileStream::endObject()

void eckit::FileStream::writeBlob(const void*, size_t)

void eckit::FileStream::readBlob(void*, size_t)

void eckit::FileStream::writeLargeBlob(const void*, size_t)

void eckit::FileStream::readLargeBlob(void*, size_t)

void eckit::FileStream::closeOutput() virtual

void eckit::FileStream::closeInput() virtual

long long eckit::FileStream::bytesWritten()

void eckit::FileStream::resetBytesWritten()

void eckit::FileStream::startRecord(unsigned long)

void eckit::FileStream::endRecord()

bool eckit::FileStream::nextRecord(unsigned long&, bool sync = false)

void eckit::FileStream::lock()

void eckit::FileStream::unlock()