eckit::codec::Metadata class

Base classes

class eckit::LocalConfiguration

Constructors, destructors, conversion operators

Metadata() defaulted
template<typename ValueT>
Metadata(const std::string& name, const ValueT& value)
Constructor immediately setting a value.
Metadata(const Configuration& other)
Constructor starting from a Configuration.
LocalConfiguration(char separator = '.') explicit
LocalConfiguration(Stream& s) explicit
LocalConfiguration(const Configuration& other) explicit
LocalConfiguration(const Configuration& other, const std::string& path)

Public functions

auto link() const -> Link
auto type() const -> Type
void link(Metadata&&)
auto json() const -> std::string
auto set(const Configuration& other) -> Metadata&
auto remove(const std::string& name) -> Metadata&
auto set(const Configuration& other) -> LocalConfiguration&
auto set(const std::string& name, const std::string& value) -> LocalConfiguration& override
auto set(const std::string& name, const char* value) -> LocalConfiguration& override
auto set(const std::string& name, bool value) -> LocalConfiguration& override
auto set(const std::string& name, int value) -> LocalConfiguration& override
auto set(const std::string& name, long value) -> LocalConfiguration& override
auto set(const std::string& name, long long value) -> LocalConfiguration&
auto set(const std::string& name, size_t value) -> LocalConfiguration& override
auto set(const std::string& name, float value) -> LocalConfiguration& override
auto set(const std::string& name, double value) -> LocalConfiguration& override
auto set(const std::string& name, const std::vector<int>& value) -> LocalConfiguration& override
auto set(const std::string& name, const std::vector<long>& value) -> LocalConfiguration& override
auto set(const std::string& name, const std::vector<long long>& value) -> LocalConfiguration&
auto set(const std::string& name, const std::vector<size_t>& value) -> LocalConfiguration& override
auto set(const std::string& name, const std::vector<float>& value) -> LocalConfiguration& override
auto set(const std::string& name, const std::vector<double>& value) -> LocalConfiguration& override
auto set(const std::string& name, const std::vector<std::string>& value) -> LocalConfiguration& override
auto set(const std::string& name, const Configuration& value) -> LocalConfiguration&
template<typename ConfigurationT, typename = std::enable_if_t<std::is_base_of_v<Configuration, std::decay_t<ConfigurationT>>>>
auto set(const std::string& name, const std::vector<ConfigurationT>& value) -> LocalConfiguration&
template<typename ConfigurationT, typename = std::enable_if_t<std::is_base_of_v<Configuration, std::decay_t<ConfigurationT>>>>
auto set(const std::string& name, std::initializer_list<ConfigurationT>&& value) -> LocalConfiguration&
auto set(const std::string& name, const std::string& value) -> LocalConfiguration& override
auto set(const std::string& name, const char* value) -> LocalConfiguration& override
auto set(const std::string& name, bool value) -> LocalConfiguration& override
auto set(const std::string& name, int value) -> LocalConfiguration& override
auto set(const std::string& name, long value) -> LocalConfiguration& override
auto set(const std::string& name, long long value) -> LocalConfiguration&
auto set(const std::string& name, size_t value) -> LocalConfiguration& override
auto set(const std::string& name, float value) -> LocalConfiguration& override
auto set(const std::string& name, double value) -> LocalConfiguration& override
auto set(const std::string& name, const std::vector<int>& value) -> LocalConfiguration& override
auto set(const std::string& name, const std::vector<long>& value) -> LocalConfiguration& override
auto set(const std::string& name, const std::vector<long long>& value) -> LocalConfiguration&
auto set(const std::string& name, const std::vector<size_t>& value) -> LocalConfiguration& override
auto set(const std::string& name, const std::vector<float>& value) -> LocalConfiguration& override
auto set(const std::string& name, const std::vector<double>& value) -> LocalConfiguration& override
auto set(const std::string& name, const std::vector<std::string>& value) -> LocalConfiguration& override
auto set(const std::string& name, const Configuration& value) -> LocalConfiguration&
template<typename ConfigurationT, typename = std::enable_if_t<std::is_base_of_v<Configuration, std::decay_t<ConfigurationT>>>>
auto set(const std::string& name, const std::vector<ConfigurationT>& value) -> LocalConfiguration&
template<typename ConfigurationT, typename = std::enable_if_t<std::is_base_of_v<Configuration, std::decay_t<ConfigurationT>>>>
auto set(const std::string& name, std::initializer_list<ConfigurationT>&& value) -> LocalConfiguration&
auto getBool(const std::string& name) const -> bool
auto getBool(const std::string& name, const bool& defaultValue) const -> bool
auto getInt(const std::string& name) const -> int
auto getInt(const std::string& name, const int& defaultValue) const -> int
auto getLong(const std::string& name) const -> long
auto getLong(const std::string& name, const long& defaultValue) const -> long
auto getUnsigned(const std::string& name) const -> std::size_t
auto getUnsigned(const std::string& name, const std::size_t& defaultValue) const -> std::size_t
auto getInt32(const std::string& name) const -> std::int32_t
auto getInt32(const std::string& name, const std::int32_t& defaultValue) const -> std::int32_t
auto getInt64(const std::string& name) const -> std::int64_t
auto getInt64(const std::string& name, const std::int64_t& defaultValue) const -> std::int64_t
auto getFloat(const std::string& name) const -> float
auto getFloat(const std::string& name, const float& defaultValue) const -> float
auto getDouble(const std::string& name) const -> double
auto getDouble(const std::string& name, const double& defaultValue) const -> double
auto getString(const std::string& name) const -> std::string
auto getString(const std::string& name, const std::string& defaultValue) const -> std::string
auto getIntVector(const std::string& name) const -> std::vector<int>
auto getIntVector(const std::string& name, const std::vector<int>& defaultValue) const -> std::vector<int>
auto getLongVector(const std::string& name) const -> std::vector<long>
auto getLongVector(const std::string& name, const std::vector<long>& defaultValue) const -> std::vector<long>
auto getUnsignedVector(const std::string& name) const -> std::vector<std::size_t>
auto getUnsignedVector(const std::string& name, const std::vector<std::size_t>& defaultValue) const -> std::vector<std::size_t>
auto getInt32Vector(const std::string& name) const -> std::vector<std::int32_t>
auto getInt32Vector(const std::string& name, const std::vector<std::int32_t>& defaultValue) const -> std::vector<std::int32_t>
auto getInt64Vector(const std::string& name) const -> std::vector<std::int64_t>
auto getInt64Vector(const std::string& name, const std::vector<std::int64_t>& defaultValue) const -> std::vector<std::int64_t>
auto getFloatVector(const std::string& name) const -> std::vector<float>
auto getFloatVector(const std::string& name, const std::vector<float>& defaultValue) const -> std::vector<float>
auto getDoubleVector(const std::string& name) const -> std::vector<double>
auto getDoubleVector(const std::string& name, const std::vector<double>& defaultValue) const -> std::vector<double>
auto getStringVector(const std::string& name) const -> std::vector<std::string>
auto getStringVector(const std::string& name, const std::vector<std::string>& defaultValue) const -> std::vector<std::string>
auto empty() const -> bool
auto keys() const -> std::vector<std::string>
auto getSubConfigurations(const std::string& name) const -> std::vector<LocalConfiguration>
auto getSubConfigurations() const -> std::vector<LocalConfiguration>
auto getSubConfiguration(const std::string& name) const -> LocalConfiguration
auto separator() const -> char
auto has(const std::string& name) const -> bool override
auto get(const std::string& name, std::string& value) const -> bool override
auto get(const std::string& name, bool& value) const -> bool override
auto get(const std::string& name, int& value) const -> bool override
auto get(const std::string& name, long& value) const -> bool override
auto get(const std::string& name, long long& value) const -> bool override
auto get(const std::string& name, std::size_t& value) const -> bool override
auto get(const std::string& name, float& value) const -> bool override
auto get(const std::string& name, double& value) const -> bool override
auto get(const std::string& name, std::vector<int>& value) const -> bool override
auto get(const std::string& name, std::vector<long>& value) const -> bool override
auto get(const std::string& name, std::vector<long long>& value) const -> bool override
auto get(const std::string& name, std::vector<std::size_t>& value) const -> bool override
auto get(const std::string& name, std::vector<float>& value) const -> bool override
auto get(const std::string& name, std::vector<double>& value) const -> bool override
auto get(const std::string& name, std::vector<std::string>& value) const -> bool override
auto get(const std::string& name, std::vector<LocalConfiguration>&) const -> bool
auto get(const std::string& name, LocalConfiguration&) const -> bool
auto get() const -> const Value&
auto get(const std::string& name, size_t& value) const -> bool pure virtual
auto get(const std::string& name, std::vector<size_t>& value) const -> bool pure virtual
void hash(eckit::Hash&) const virtual
auto isSubConfiguration(const std::string& name) const -> bool
auto isIntegral(const std::string& name) const -> bool
auto isBoolean(const std::string& name) const -> bool
auto isFloatingPoint(const std::string& name) const -> bool
auto isString(const std::string& name) const -> bool
auto isList(const std::string& name) const -> bool
auto isSubConfigurationList(const std::string& name) const -> bool
auto isIntegralList(const std::string& name) const -> bool
auto isBooleanList(const std::string& name) const -> bool
auto isFloatingPointList(const std::string& name) const -> bool
auto isStringList(const std::string& name) const -> bool
auto isNull(const std::string& name) const -> bool
template<typename T>
auto isConvertible(const std::string& name) const -> bool
template<typename T>
auto isConvertible(const std::string& name, T&) const -> bool

Public variables

DataInfo data
RecordInfo record

Function documentation

eckit::codec::Metadata::LocalConfiguration(char separator = '.') explicit

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, const std::string& value) override

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, const char* value) override

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, bool value) override

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, int value) override

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, long value) override

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, long long value)

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, size_t value) override

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, float value) override

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, double value) override

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, const std::vector<int>& value) override

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, const std::vector<long>& value) override

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, const std::vector<long long>& value)

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, const std::vector<size_t>& value) override

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, const std::vector<float>& value) override

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, const std::vector<double>& value) override

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, const std::vector<std::string>& value) override

LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, const Configuration& value)

template<typename ConfigurationT, typename = std::enable_if_t<std::is_base_of_v<Configuration, std::decay_t<ConfigurationT>>>>
LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, const std::vector<ConfigurationT>& value)

template<typename ConfigurationT, typename = std::enable_if_t<std::is_base_of_v<Configuration, std::decay_t<ConfigurationT>>>>
LocalConfiguration& eckit::codec::Metadata::set(const std::string& name, std::initializer_list<ConfigurationT>&& value)

bool eckit::codec::Metadata::getBool(const std::string& name) const

bool eckit::codec::Metadata::getBool(const std::string& name, const bool& defaultValue) const

int eckit::codec::Metadata::getInt(const std::string& name) const

int eckit::codec::Metadata::getInt(const std::string& name, const int& defaultValue) const

long eckit::codec::Metadata::getLong(const std::string& name) const

long eckit::codec::Metadata::getLong(const std::string& name, const long& defaultValue) const

std::size_t eckit::codec::Metadata::getUnsigned(const std::string& name) const

std::size_t eckit::codec::Metadata::getUnsigned(const std::string& name, const std::size_t& defaultValue) const

std::int32_t eckit::codec::Metadata::getInt32(const std::string& name) const

std::int32_t eckit::codec::Metadata::getInt32(const std::string& name, const std::int32_t& defaultValue) const

std::int64_t eckit::codec::Metadata::getInt64(const std::string& name) const

std::int64_t eckit::codec::Metadata::getInt64(const std::string& name, const std::int64_t& defaultValue) const

float eckit::codec::Metadata::getFloat(const std::string& name) const

float eckit::codec::Metadata::getFloat(const std::string& name, const float& defaultValue) const

double eckit::codec::Metadata::getDouble(const std::string& name) const

double eckit::codec::Metadata::getDouble(const std::string& name, const double& defaultValue) const

std::string eckit::codec::Metadata::getString(const std::string& name) const

std::string eckit::codec::Metadata::getString(const std::string& name, const std::string& defaultValue) const

std::vector<int> eckit::codec::Metadata::getIntVector(const std::string& name) const

std::vector<int> eckit::codec::Metadata::getIntVector(const std::string& name, const std::vector<int>& defaultValue) const

std::vector<long> eckit::codec::Metadata::getLongVector(const std::string& name) const

std::vector<long> eckit::codec::Metadata::getLongVector(const std::string& name, const std::vector<long>& defaultValue) const

std::vector<std::size_t> eckit::codec::Metadata::getUnsignedVector(const std::string& name) const

std::vector<std::size_t> eckit::codec::Metadata::getUnsignedVector(const std::string& name, const std::vector<std::size_t>& defaultValue) const

std::vector<std::int32_t> eckit::codec::Metadata::getInt32Vector(const std::string& name) const

std::vector<std::int32_t> eckit::codec::Metadata::getInt32Vector(const std::string& name, const std::vector<std::int32_t>& defaultValue) const

std::vector<std::int64_t> eckit::codec::Metadata::getInt64Vector(const std::string& name) const

std::vector<std::int64_t> eckit::codec::Metadata::getInt64Vector(const std::string& name, const std::vector<std::int64_t>& defaultValue) const

std::vector<float> eckit::codec::Metadata::getFloatVector(const std::string& name) const

std::vector<float> eckit::codec::Metadata::getFloatVector(const std::string& name, const std::vector<float>& defaultValue) const

std::vector<double> eckit::codec::Metadata::getDoubleVector(const std::string& name) const

std::vector<double> eckit::codec::Metadata::getDoubleVector(const std::string& name, const std::vector<double>& defaultValue) const

std::vector<std::string> eckit::codec::Metadata::getStringVector(const std::string& name) const

std::vector<std::string> eckit::codec::Metadata::getStringVector(const std::string& name, const std::vector<std::string>& defaultValue) const

bool eckit::codec::Metadata::empty() const

std::vector<std::string> eckit::codec::Metadata::keys() const

LocalConfiguration eckit::codec::Metadata::getSubConfiguration(const std::string& name) const

char eckit::codec::Metadata::separator() const

bool eckit::codec::Metadata::has(const std::string& name) const override

bool eckit::codec::Metadata::get(const std::string& name, std::string& value) const override

bool eckit::codec::Metadata::get(const std::string& name, bool& value) const override

bool eckit::codec::Metadata::get(const std::string& name, int& value) const override

bool eckit::codec::Metadata::get(const std::string& name, long& value) const override

bool eckit::codec::Metadata::get(const std::string& name, long long& value) const override

bool eckit::codec::Metadata::get(const std::string& name, std::size_t& value) const override

bool eckit::codec::Metadata::get(const std::string& name, float& value) const override

bool eckit::codec::Metadata::get(const std::string& name, double& value) const override

bool eckit::codec::Metadata::get(const std::string& name, std::vector<int>& value) const override

bool eckit::codec::Metadata::get(const std::string& name, std::vector<long>& value) const override

bool eckit::codec::Metadata::get(const std::string& name, std::vector<long long>& value) const override

bool eckit::codec::Metadata::get(const std::string& name, std::vector<std::size_t>& value) const override

bool eckit::codec::Metadata::get(const std::string& name, std::vector<float>& value) const override

bool eckit::codec::Metadata::get(const std::string& name, std::vector<double>& value) const override

bool eckit::codec::Metadata::get(const std::string& name, std::vector<std::string>& value) const override

bool eckit::codec::Metadata::get(const std::string& name, std::vector<LocalConfiguration>&) const

bool eckit::codec::Metadata::get(const std::string& name, LocalConfiguration&) const

const Value& eckit::codec::Metadata::get() const

bool eckit::codec::Metadata::get(const std::string& name, size_t& value) const pure virtual

bool eckit::codec::Metadata::get(const std::string& name, std::vector<size_t>& value) const pure virtual

void eckit::codec::Metadata::hash(eckit::Hash&) const virtual

bool eckit::codec::Metadata::isSubConfiguration(const std::string& name) const

bool eckit::codec::Metadata::isIntegral(const std::string& name) const

bool eckit::codec::Metadata::isBoolean(const std::string& name) const

bool eckit::codec::Metadata::isFloatingPoint(const std::string& name) const

bool eckit::codec::Metadata::isString(const std::string& name) const

bool eckit::codec::Metadata::isList(const std::string& name) const

bool eckit::codec::Metadata::isSubConfigurationList(const std::string& name) const

bool eckit::codec::Metadata::isIntegralList(const std::string& name) const

bool eckit::codec::Metadata::isBooleanList(const std::string& name) const

bool eckit::codec::Metadata::isFloatingPointList(const std::string& name) const

bool eckit::codec::Metadata::isStringList(const std::string& name) const

bool eckit::codec::Metadata::isNull(const std::string& name) const

template<typename T>
bool eckit::codec::Metadata::isConvertible(const std::string& name) const

template<typename T>
bool eckit::codec::Metadata::isConvertible(const std::string& name, T&) const