class
#include <eckit/codec/RecordWriter.h>
RecordWriter 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.
- 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.
- void set(const Key& key, const Value& value, const Configuration& config = NoConfig())
- Add item to record.
- 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:: estimateMaximumSize() const
estimate maximum size of record
This could be useful to write a record to a fixed size MemoryHandle