atlas::io::RecordWriter class

Write record.

Contents

Public types

using Key = std::string

Public functions

void compression(const std::string&)
Set compression.
void compression(bool)
Set compression off or to default.
void checksum(bool)
Set checksum off or to default.
void set(const Key&, Link&&, const util::Config& = util::NoConfig())
Add link to other record item (RecordItem::URI)
void set(const Key&, Encoder&&, const util::Config& = util::NoConfig())
Add item to record.
template<typename Value, enable_if_rvalue_t<Value && > = 0>
void set(const Key& key, Value&& value, const util::Config& config = util::NoConfig())
Add item to record.
template<typename Value>
void set(const Key& key, const Reference<Value>& value, const util::Config& config = util::NoConfig())
Add item to record.
template<typename Value, enable_if_interpretable_t<Value, ArrayReference> = 0>
void set(const Key& key, const Value& value, const util::Config& config = util::NoConfig())
Add item to record.
template<typename Value, disable_if_interpretable_t<Value, ArrayReference> = 0>
void set(const Key& key, const Value& value, const util::Config& config = util::NoConfig())
Add item to record.
auto write(const eckit::PathName&, Mode = Mode::write) const -> size_t
Write new record to path.
auto write(eckit::DataHandle&) const -> size_t
Write new record to a DataHandle.
auto write(Stream) const -> size_t
Write new record to a Stream.
auto estimateMaximumSize() const -> size_t
estimate maximum size of record

Function documentation

size_t atlas::io::RecordWriter::write(eckit::DataHandle&) const

Write new record to a DataHandle.

size_t atlas::io::RecordWriter::write(Stream) const

Write new record to a Stream.

size_t atlas::io::RecordWriter::estimateMaximumSize() const

estimate maximum size of record

This could be useful to write a record to a fixed size MemoryHandle