|
| Message (const Message &)=default |
|
| Message (Message &&)=default |
|
Message & | operator= (const Message &m)=default |
|
Message & | operator= (Message &&m)=default |
|
std::shared_ptr< dballe::Message > | clone () const override |
| Return a copy of this message.
|
|
Datetime | get_datetime () const override |
| Get the reference Datetime for this message.
|
|
Coords | get_coords () const override |
| Get the reference coordinates for this message.
|
|
Ident | get_ident () const override |
| Get the station identifier for this message.
|
|
std::string | get_report () const override |
| Get the report for this message.
|
|
MessageType | get_type () const override |
| Return the type of the data in the message.
|
|
bool | foreach_var (std::function< bool(const Level &, const Trange &, const wreport::Var &)>) const override |
| Iterate the contents of the message.
|
|
void | print (FILE *out) const override |
| Print all the contents of this message to an output stream.
|
|
unsigned | diff (const dballe::Message &msg) const override |
| Compute the differences between two Messages.
|
|
void | clear () |
| Reset the messages as if it was just created.
|
|
const wreport::Var * | get (const Shortcut &shortcut) const |
| Find a datum given its shortcut.
|
|
void | set (const Shortcut &shortcut, const wreport::Var &var) |
| Add or replace a value.
|
|
void | set_datetime (const Datetime &dt) |
| Shortcut to set year...second variables in a single call.
|
|
bool | remove_context (const Level &lev, const Trange &tr) |
| Remove a context from the message.
|
|
const msg::Context * | find_context (const Level &lev, const Trange &tr) const |
| Find a msg::Context given its description.
|
|
const Values & | find_station_context () const |
| Find the station info context.
|
|
msg::Context * | edit_context (const Level &lev, const Trange &tr) |
| Find a msg::Context given its description.
|
|
msg::Context & | obtain_context (const Level &lev, const Trange &tr) |
| Find a msg::Context given its description, creating it if it does not exist.
|
|
wreport::Var * | edit (wreport::Varcode code, const Level &lev, const Trange &tr) |
| Find a variable given its description.
|
|
void | sounding_pack_levels () |
| Remove the sounding significance from the level descriptions and pack together the data at the same pressure level.
|
|
bool | from_csv (CSVReader &in) |
| Read data from a CSV input.
|
|
void | to_csv (CSVWriter &out) const |
| Output in CSV format.
|
|
std::shared_ptr< dballe::CursorStation > | query_stations (const Query &query) const override |
| Return a Cursor to access the station information in the message.
|
|
std::shared_ptr< dballe::CursorStationData > | query_station_data (const Query &query) const override |
| Query the station variables in the message.
|
|
std::shared_ptr< dballe::CursorData > | query_data (const Query &query) const override |
| Query the variables in the message.
|
|
std::shared_ptr< dballe::CursorData > | query_station_and_data (const Query &query) const |
|
virtual MessageType | get_type () const =0 |
| Return the type of the data in the message.
|
|
virtual Datetime | get_datetime () const =0 |
| Get the reference Datetime for this message.
|
|
virtual Coords | get_coords () const =0 |
| Get the reference coordinates for this message.
|
|
virtual Ident | get_ident () const =0 |
| Get the station identifier for this message.
|
|
virtual std::string | get_report () const =0 |
| Get the report for this message.
|
|
virtual std::shared_ptr< Message > | clone () const =0 |
| Return a copy of this message.
|
|
const wreport::Var * | get (const Level &lev, const Trange &tr, wreport::Varcode code) const |
| Get a variable given its code, level and time range information.
|
|
const wreport::Var * | get (const char *shortcut) const |
| Get a variable given its shortcut name.
|
|
const wreport::Var * | get (const std::string &shortcut) const |
| Get a variable given its shortcut name.
|
|
void | set (const Level &lev, const Trange &tr, wreport::Varcode code, const wreport::Var &var) |
| Add or replace a value.
|
|
void | set (const Level &lev, const Trange &tr, const wreport::Var &var) |
| Add or replace a value.
|
|
void | set (const Level &lev, const Trange &tr, std::unique_ptr< wreport::Var > var) |
| Add or replace a value, taking ownership of the source variable without copying it.
|
|
void | set (const char *shortcut, std::unique_ptr< wreport::Var > var) |
| Add or replace a value, taking ownership of the source variable without copying it.
|
|
void | set (const char *shortcut, const wreport::Var &var) |
| Add or replace a value.
|
|
virtual bool | foreach_var (std::function< bool(const Level &, const Trange &, const wreport::Var &)>) const =0 |
| Iterate the contents of the message.
|
|
virtual std::shared_ptr< CursorStation > | query_stations (const Query &query) const =0 |
| Return a Cursor to access the station information in the message.
|
|
virtual std::shared_ptr< CursorStationData > | query_station_data (const Query &query) const =0 |
| Query the station variables in the message.
|
|
virtual std::shared_ptr< CursorData > | query_data (const Query &query) const =0 |
| Query the variables in the message.
|
|
virtual void | print (FILE *out) const =0 |
| Print all the contents of this message to an output stream.
|
|
virtual unsigned | diff (const Message &msg) const =0 |
| Compute the differences between two Messages.
|
|
|
int | find_index (const Level &lev, const Trange &tr) const |
| Return the index of the given context, or -1 if it was not found.
|
|
const wreport::Var * | get_impl (const Level &lev, const Trange &tr, wreport::Varcode code) const override |
| Implementation of get(const Level&, const Trange&, wreport::Varcode)
|
|
void | set_impl (const Level &lev, const Trange &tr, std::unique_ptr< wreport::Var > var) override |
| Implementation of set(const Level& const Trange&, std::unique_ptr<wreport::Var>)
|
|
void | seti (const Level &lev, const Trange &tr, wreport::Varcode code, int val, int conf) |
|
void | setd (const Level &lev, const Trange &tr, wreport::Varcode code, double val, int conf) |
|
void | setc (const Level &lev, const Trange &tr, wreport::Varcode code, const char *val, int conf) |
|
virtual const wreport::Var * | get_impl (const Level &lev, const Trange &tr, wreport::Varcode code) const =0 |
| Implementation of get(const Level&, const Trange&, wreport::Varcode)
|
|
virtual void | set_impl (const Level &lev, const Trange &tr, std::unique_ptr< wreport::Var > var)=0 |
| Implementation of set(const Level& const Trange&, std::unique_ptr<wreport::Var>)
|
|
Storage for related physical data.