|
| Message (const Message &)=default |
|
Message & | operator= (const Message &o)=default |
|
Message & | operator= (Message &&o)=default |
|
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. More...
|
|
const wreport::Var * | get (const char *shortcut) const |
| Get a variable given its shortcut name. More...
|
|
const wreport::Var * | get (const std::string &shortcut) const |
| Get a variable given its shortcut name. More...
|
|
void | set (const Level &lev, const Trange &tr, wreport::Varcode code, const wreport::Var &var) |
| Add or replace a value. More...
|
|
void | set (const Level &lev, const Trange &tr, const wreport::Var &var) |
| Add or replace a value. More...
|
|
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. More...
|
|
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. More...
|
|
void | set (const char *shortcut, const wreport::Var &var) |
| Add or replace a value. More...
|
|
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. More...
|
|
virtual std::shared_ptr< CursorStationData > | query_station_data (const Query &query) const =0 |
| Query the station variables in the message. More...
|
|
virtual std::shared_ptr< CursorData > | query_data (const Query &query) const =0 |
| Query the variables in the message. More...
|
|
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. More...
|
|
A bulletin that has been decoded and physically interpreted.
Message collects zero or more variables that have been forecast or measured by the same station in the same instant.
Each variable is annotated with its vertical level/layer information, and its time range / statistical information.
The representation in Message is as connected as possible to physics rather than to observations.