libdballe 9.6
Public Member Functions | Public Attributes | List of all members
dballe::impl::Enq Struct Referenceabstract

Class passed to key-value accessors to set values in an invoker-defined way. More...

#include <enq.h>

Inheritance diagram for dballe::impl::Enq:
dballe::fortran::Enqc dballe::impl::Enqd dballe::impl::Enqi

Public Member Functions

 Enq (const char *key, unsigned len)
 
void throw_notfound ()
 
virtual const char * name () const =0
 
virtual void set_bool (bool val)=0
 
virtual void set_int (int val)=0
 
virtual void set_dballe_int (int val)=0
 
virtual void set_string (const std::string &val)
 
virtual void set_ident (const Ident &ident)
 
virtual void set_varcode (wreport::Varcode val)
 
virtual void set_var (const wreport::Var *val)
 
virtual void set_var_value (const wreport::Var &var)=0
 Set the value using the value of the given variable.
 
virtual void set_attrs (const wreport::Var *val)
 
virtual void set_lat (int lat)
 
virtual void set_lon (int lon)
 
virtual void set_coords (const Coords &c)
 
virtual void set_station (const Station &s)
 
virtual void set_dbstation (const DBStation &s)
 
virtual void set_datetime (const Datetime &dt)
 
virtual void set_level (const Level &dt)
 
virtual void set_trange (const Trange &dt)
 
template<typename Values >
bool search_b_values (const Values &values)
 
bool search_b_value (const dballe::Value &value)
 
template<typename Values >
void search_alias_values (const Values &values)
 
void search_alias_value (const dballe::Value &value)
 

Public Attributes

const char * key
 
unsigned len
 
bool missing = true
 

Detailed Description

Class passed to key-value accessors to set values in an invoker-defined way.

Member Function Documentation

◆ set_var_value()

virtual void dballe::impl::Enq::set_var_value ( const wreport::Var var)
pure virtual

Set the value using the value of the given variable.

var can be assumed to always be set, that is, the caller has already checked that it has a value.

Implemented in dballe::impl::Enqi, dballe::impl::Enqd, and dballe::fortran::Enqc.

References wreport::error_consistency::throwf().


The documentation for this struct was generated from the following file: