|
libdballe 9.14
|
Store an array of physical data all on the same level. More...
#include <context.h>
Protected Member Functions | |
| int | compare (const Context &ctx) const |
| Return the index of the var `code' in l, or -1 if it was not found */ int find_index(wreport::Varcode code) const;. | |
| int | compare (const Level &lev, const Trange &tr) const |
| Compare a Context struture with level and time range information, for use in sorting. | |
| const wreport::Var * | find_vsig () const |
| If this context is the right context for a vertical sounding significance and contains a vertical sounding significance variable, return it. | |
| void | print (FILE *out) const |
| Dump all the contents of the context to the given stream. | |
| unsigned | diff (const Context &ctx) const |
| Compute the differences between two contexts. | |
Store an array of physical data all on the same level.
|
protected |
Return the index of the var `code' in l, or -1 if it was not found */ int find_index(wreport::Varcode code) const;.
public: Level level; Trange trange; Values values;
Context(const Level& lev, const Trange& tr); Context(const Context& c) = default; Context(Context&& c) = default;
Context& operator=(const Context& src) = default; Context& operator=(Context&& src) = default;
/** Compare two dba_msg_context strutures, for use in sorting.
| ctx | First context to compare |
Compare a Context struture with level and time range information, for use in sorting.
|
protected |
Compute the differences between two contexts.
Details of the differences found will be formatted using the notes system (
| ctx | Context to compare with this one |
|
protected |
If this context is the right context for a vertical sounding significance and contains a vertical sounding significance variable, return it.
Else, return NULL.
|
protected |
Dump all the contents of the context to the given stream.
| out | The stream to dump the contents of the level to. |