libdballe 9.6
|
Vertical level or layer. More...
#include <types.h>
Public Member Functions | |
Level (int ltype1=MISSING_INT, int l1=MISSING_INT, int ltype2=MISSING_INT, int l2=MISSING_INT) | |
bool | is_missing () const |
Check if this level is fully set to the missing value. | |
bool | operator== (const Level &o) const |
bool | operator!= (const Level &o) const |
bool | operator< (const Level &o) const |
bool | operator> (const Level &o) const |
bool | operator<= (const Level &o) const |
bool | operator>= (const Level &o) const |
int | compare (const Level &l) const |
Generic comparison. | |
std::string | describe () const |
Return a string description of this level. | |
void | to_stream (std::ostream &out, const char *undef="-") const |
Format to an output stream. | |
std::string | to_string (const char *undef="-") const |
Format to a string. | |
void | to_csv (CSVWriter &out) const |
Write the datetime to a CSV writer as 4 fields. | |
int | print (FILE *out, const char *undef="-", const char *end="\n") const |
Print to an output stream. | |
Static Public Member Functions | |
static Level | cloud (int ltype2=MISSING_INT, int l2=MISSING_INT) |
Create a cloud special level. | |
Public Attributes | |
int | ltype1 |
Type of the level or the first layer. | |
int | l1 |
L1 value of the level or the first layer. | |
int | ltype2 |
Type of the the second layer. | |
int | l2 |
L2 value of the second layer. | |
Vertical level or layer.
int dballe::Level::compare | ( | const Level & | l | ) | const |
Generic comparison.
Returns a negative number if *this < other Returns zero if *this == other Returns a positive number if *this > other