libdballe  5.18
Public Member Functions | Static Public Member Functions | Data Fields
dballe::Level Struct Reference

Public Member Functions

 Level (int ltype1=MISSING_INT, int l1=MISSING_INT, int ltype2=MISSING_INT, int l2=MISSING_INT)
 Level (const char *ltype1, const char *l1=NULL, const char *ltype2=NULL, const char *l2=NULL)
bool operator== (const Level &l) const
bool operator!= (const Level &l) const
int compare (const Level &l) const
 Compare two Level strutures, for use in sorting.
std::string describe () const
 Return a string description of this level.
void format (std::ostream &out, const char *undef="-") const

Static Public Member Functions

static Level cloud (int ltype2, int l2=MISSING_INT)
static Level ana ()

Data Fields

int ltype1
 Type of the first level.
int l1
 L1 value of the level.
int ltype2
 Type of the second level.
int l2
 L2 value of the level.

Member Function Documentation

int dballe::Level::compare ( const Level l) const
inline

Compare two Level strutures, for use in sorting.

Returns
-1 if *this < l, 0 if *this == l, 1 if *this > l

References l1, l2, ltype1, and ltype2.

Field Documentation

int dballe::Level::l1

L1 value of the level.

See Level type values.

Referenced by compare().

int dballe::Level::l2

L2 value of the level.

See Level type values.

Referenced by compare().

int dballe::Level::ltype1

Type of the first level.

See Level type values.

Referenced by compare().

int dballe::Level::ltype2

Type of the second level.

See Level type values.

Referenced by compare().


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