eckit::geo::spec::Custom class final

Base classes

class eckit::geo::Spec

Public types

struct custom_ptr
struct key_type
using value_type = std::variant<std::string, bool, int, long, long long, size_t, float, double, std::vector<int>, std::vector<long>, std::vector<long long>, std::vector<size_t>, std::vector<float>, std::vector<double>, std::vector<std::string>, custom_ptr, const char*>
using container_type = std::map<key_type, value_type>

Public static functions

static auto make_from_value(const Value&) -> Custom*

Constructors, destructors, conversion operators

Custom() defaulted
Custom(std::initializer_list<container_type::value_type>)
Custom(const container_type&) explicit
Custom(container_type&&) explicit

Public functions

auto operator==(const Custom&) const -> bool
auto operator!=(const Custom& other) const -> bool
auto container() const -> const container_type&
auto empty() const -> bool
void clear()
void json(JSON&) const override
auto has_custom(const std::string& name) const -> bool
auto custom(const std::string& name) const -> const custom_ptr&
void set(const std::string& name, const std::string&)
void set(const std::string& name, bool)
void set(const std::string& name, int)
void set(const std::string& name, long)
void set(const std::string& name, long long)
void set(const std::string& name, size_t)
void set(const std::string& name, float)
void set(const std::string& name, double)
void set(const std::string& name, const std::vector<int>&)
void set(const std::string& name, const std::vector<long>&)
void set(const std::string& name, const std::vector<long long>&)
void set(const std::string& name, const std::vector<size_t>&)
void set(const std::string& name, const std::vector<float>&)
void set(const std::string& name, const std::vector<double>&)
void set(const std::string& name, const std::vector<std::string>&)
void set(const std::string& name, const char* value)
void set(const std::string& name, const Value&)
void set(const std::string& name, Custom*)
auto has(const std::string& name) const -> bool override
auto get(const std::string& name, std::string&) const -> bool override
auto get(const std::string& name, bool&) const -> bool override
auto get(const std::string& name, int&) const -> bool override
auto get(const std::string& name, long&) const -> bool override
auto get(const std::string& name, long long&) const -> bool override
auto get(const std::string& name, size_t&) const -> bool override
auto get(const std::string& name, float&) const -> bool override
auto get(const std::string& name, double&) const -> bool override
auto get(const std::string& name, std::vector<int>&) const -> bool override
auto get(const std::string& name, std::vector<long>&) const -> bool override
auto get(const std::string& name, std::vector<long long>&) const -> bool override
auto get(const std::string& name, std::vector<size_t>&) const -> bool override
auto get(const std::string& name, std::vector<float>&) const -> bool override
auto get(const std::string& name, std::vector<double>&) const -> bool override
auto get(const std::string& name, std::vector<std::string>&) const -> bool override
auto get_string(const std::string& name) const -> std::string
auto get_string(const std::string& name, const std::string&) const -> std::string
auto get_bool(const std::string& name) const -> bool
auto get_bool(const std::string& name, const bool&) const -> bool
auto get_int(const std::string& name) const -> int
auto get_int(const std::string& name, const int&) const -> int
auto get_long(const std::string& name) const -> long
auto get_long(const std::string& name, const long&) const -> long
auto get_unsigned(const std::string& name) const -> size_t
auto get_unsigned(const std::string& name, const size_t&) const -> size_t
auto get_double(const std::string& name) const -> double
auto get_double(const std::string& name, const double&) const -> double
auto get_long_vector(const std::string& name) const -> std::vector<long>
auto get_long_vector(const std::string& name, const std::vector<long>&) const -> std::vector<long>
auto get_unsigned_vector(const std::string& name) const -> std::vector<size_t>
auto get_unsigned_vector(const std::string& name, const std::vector<size_t>&) const -> std::vector<size_t>
auto get_double_vector(const std::string& name) const -> std::vector<double>
auto get_double_vector(const std::string& name, const std::vector<double>&) const -> std::vector<double>
auto str() const -> std::string

Function documentation

std::string eckit::geo::spec::Custom::get_string(const std::string& name) const

std::string eckit::geo::spec::Custom::get_string(const std::string& name, const std::string&) const

bool eckit::geo::spec::Custom::get_bool(const std::string& name) const

bool eckit::geo::spec::Custom::get_bool(const std::string& name, const bool&) const

int eckit::geo::spec::Custom::get_int(const std::string& name) const

int eckit::geo::spec::Custom::get_int(const std::string& name, const int&) const

long eckit::geo::spec::Custom::get_long(const std::string& name) const

long eckit::geo::spec::Custom::get_long(const std::string& name, const long&) const

size_t eckit::geo::spec::Custom::get_unsigned(const std::string& name) const

size_t eckit::geo::spec::Custom::get_unsigned(const std::string& name, const size_t&) const

double eckit::geo::spec::Custom::get_double(const std::string& name) const

double eckit::geo::spec::Custom::get_double(const std::string& name, const double&) const

std::vector<long> eckit::geo::spec::Custom::get_long_vector(const std::string& name) const

std::vector<long> eckit::geo::spec::Custom::get_long_vector(const std::string& name, const std::vector<long>&) const

std::vector<size_t> eckit::geo::spec::Custom::get_unsigned_vector(const std::string& name) const

std::vector<size_t> eckit::geo::spec::Custom::get_unsigned_vector(const std::string& name, const std::vector<size_t>&) const

std::vector<double> eckit::geo::spec::Custom::get_double_vector(const std::string& name) const

std::vector<double> eckit::geo::spec::Custom::get_double_vector(const std::string& name, const std::vector<double>&) const

std::string eckit::geo::spec::Custom::str() const