class
#include <eckit/value/Properties.h>
Properties
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
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 |
---|