libdap++
Updated for version 3.14.0
|
#include <D4EnumDefs.h>
Public Types | |
typedef vector< tuple >::iterator | D4EnumValueIter |
Public Member Functions | |
void | add_value (const string &label, long long value) |
D4EnumDef () | |
D4EnumDef (const string &n, const Type &t, D4EnumDefs *e=0) | |
bool | empty () const |
bool | is_valid_enum_value (long long value) |
string & | label (D4EnumValueIter i) |
string | name () const |
D4EnumDefs * | parent () const |
void | print_dap4 (XMLWriter &xml) const |
void | set_name (const string &n) |
void | set_parent (D4EnumDefs *e) |
void | set_type (Type t) |
Type | type () const |
long long | value (D4EnumValueIter i) |
D4EnumValueIter | value_begin () |
D4EnumValueIter | value_end () |
Definition at line 42 of file D4EnumDefs.h.
typedef vector<tuple>::iterator libdap::D4EnumDef::D4EnumValueIter |
Definition at line 59 of file D4EnumDefs.h.
|
inline |
Definition at line 61 of file D4EnumDefs.h.
|
inline |
Definition at line 62 of file D4EnumDefs.h.
|
inline |
Definition at line 75 of file D4EnumDefs.h.
|
inline |
Definition at line 73 of file D4EnumDefs.h.
bool libdap::D4EnumDef::is_valid_enum_value | ( | long long | value | ) |
Test if a particular value is legal for a given type. In a D4EnumDef, all values are actually stored in a long long, but the different enumerations can specify different types like Byte, Int32, ..., and this method is used to test that the values match those types.
Definition at line 43 of file D4EnumDefs.cc.
References libdap::dods_byte_c, libdap::dods_int16_c, libdap::dods_int32_c, libdap::dods_int64_c, libdap::dods_int8_c, DODS_INT_MAX, DODS_INT_MIN, DODS_LLONG_MAX, DODS_LLONG_MIN, DODS_SCHAR_MAX, DODS_SCHAR_MIN, DODS_SHRT_MAX, DODS_SHRT_MIN, DODS_UCHAR_MAX, libdap::dods_uint16_c, libdap::dods_uint32_c, libdap::dods_uint64_c, libdap::dods_uint8_c, DODS_UINT_MAX, DODS_ULLONG_MAX, DODS_USHRT_MAX, and type().
|
inline |
Definition at line 81 of file D4EnumDefs.h.
|
inline |
Definition at line 64 of file D4EnumDefs.h.
Referenced by libdap::Array::print_dap4(), and libdap::D4Enum::print_xml_writer().
|
inline |
Definition at line 70 of file D4EnumDefs.h.
Referenced by libdap::Array::print_dap4(), and libdap::D4Enum::print_xml_writer().
void libdap::D4EnumDef::print_dap4 | ( | XMLWriter & | xml | ) | const |
Definition at line 100 of file D4EnumDefs.cc.
|
inline |
Definition at line 65 of file D4EnumDefs.h.
|
inline |
Definition at line 71 of file D4EnumDefs.h.
Referenced by libdap::D4EnumDefs::add_enum_nocopy(), and libdap::D4EnumDefs::insert_enum().
|
inline |
Definition at line 68 of file D4EnumDefs.h.
|
inline |
Definition at line 67 of file D4EnumDefs.h.
Referenced by is_valid_enum_value(), and libdap::D4Enum::set_enumeration().
|
inline |
Definition at line 82 of file D4EnumDefs.h.
|
inline |
Definition at line 79 of file D4EnumDefs.h.
|
inline |
Definition at line 80 of file D4EnumDefs.h.