eckit::Properties class

Public types

using property_t = Value
using key_t = std::string

Public static functions

static auto className() -> const char*

Constructors, destructors, conversion operators

Properties()
Properties(const property_t&)
Properties(Stream&)
~Properties() virtual
operator property_t() const

Public functions

auto has(const key_t&) const -> bool
auto get(const key_t& k) const -> property_t
auto set(const key_t& k, const property_t& v) -> Properties&
Sets a property by inserting a new or overwrites an existing property.
auto set(const key_t& k, const Properties& p) -> Properties&
Sets a property by inserting a new or overwrites an existing property.
auto set(const Properties& p) -> Properties&
merge other properties
auto remove(const key_t& k) -> bool
Removes a property.
auto operator[](const key_t& k) const -> property_t
auto empty() const -> bool
void hash(eckit::MD5&) const

Friends

auto operator<<(JSON& s, const Properties& v) -> JSON&
auto operator<<(std::ostream& s, const Properties& v) -> std::ostream&
auto operator<<(Stream& s, const Properties& v) -> Stream&
auto getValue(const Properties& p, const key_t& key) -> property_t
void print(const Properties& p, std::ostream& s)
void encode(const Properties& p, Stream& s)

Function documentation

bool eckit::Properties::has(const key_t&) const

Returns true is a property exists

property_t eckit::Properties::get(const key_t& k) const

Returns a property

property_t eckit::Properties::operator[](const key_t& k) const

Returns a property

bool eckit::Properties::empty() const

Returns a bool, true if empty false otherwise