eckit::codec::RecordWriter class

Write record.

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 Configuration& = NoConfig())
Add link to other record item (RecordItem::URI)
void set(const Key&, Encoder&&, const Configuration& = NoConfig())
Add item to record.
template<typename Value, enable_if_rvalue_t<Value && > = 0>
void set(const Key& key, Value&& value, const Configuration& config = NoConfig())
Add item to record.
template<typename Value>
void set(const Key& key, const Reference<Value>& value, const Configuration& config = NoConfig())
Add item to record.
template<typename Value, enable_if_interpretable_t<Value, ArrayReference> = 0>
void set(const Key& key, const Value& value, const Configuration& config = NoConfig())
Add item to record.
template<typename Value, disable_if_interpretable_t<Value, ArrayReference> = 0>
void set(const Key& key, const Value& value, const Configuration& config = NoConfig())
Add item to record.
void set(const Key& key, const char* value, const Configuration& config = NoConfig())
void set(const Key& key, const std::string& value, const Configuration& config = NoConfig())
auto write(const PathName&, Mode = Mode::write) const -> size_t
Write new record to path.
auto write(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 eckit::codec::RecordWriter::write(DataHandle&) const

Write new record to a DataHandle.

size_t eckit::codec::RecordWriter::write(Stream) const

Write new record to a Stream.

size_t eckit::codec::RecordWriter::estimateMaximumSize() const

estimate maximum size of record

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

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.