atlas::io::FileStream class

Base classes

class Stream
Handle to a shared eckit::DataHandle.

Derived classes

class InputFileStream
class OutputFileStream

Constructors, destructors, conversion operators

FileStream(const eckit::PathName& path, Mode openmode)
FileStream(const eckit::PathName& path, char openmode)
FileStream(const eckit::PathName& path, const std::string& openmode)
operator bool() const
Return true if pointer is valid;.

Public functions

auto datahandle() -> eckit::DataHandle&
Access internal eckit::DataHandle.
auto seek(std::uint64_t offset) -> std::uint64_t
Move position to given offset.
auto position() -> std::uint64_t
Return offset of current position.
auto write(const void* data, size_t length) -> std::uint64_t
auto read(void* data, size_t length) -> std::uint64_t

Function documentation

atlas::io::FileStream::operator bool() const

Return true if pointer is valid;.

eckit::DataHandle& atlas::io::FileStream::datahandle()

Access internal eckit::DataHandle.

std::uint64_t atlas::io::FileStream::seek(std::uint64_t offset)

Move position to given offset.

std::uint64_t atlas::io::FileStream::position()

Return offset of current position.

std::uint64_t atlas::io::FileStream::write(const void* data, size_t length)

Returns number of bytes written

Write data of given length (bytes)

std::uint64_t atlas::io::FileStream::read(void* data, size_t length)

Returns number of bytes read

Read data of given length (bytes)

This website is beyond its original expiry date and the content may be out of date. The site owner has been notified and may choose to extend the expiry date and remove this banner. If you have any questions about this, please visit our support portal.