This class encapsulates a collection of RINEX 3 OBS header field flags. It is only used to keep track of the presence of a field, but not the field values themselves, which are contained within Rinex3ObsHeader.
Definition at line 369 of file Rinex3ObsHeader.hpp.
#include <Rinex3ObsHeader.hpp>
Public Member Functions | |
void | clear () |
Clear all set fields. More... | |
Fields & | clear (Field f) |
Clear a specific field. More... | |
void | describeMissing (const Fields &valid, Exception &exc) |
bool | empty () const |
Return true if fieldsSet is empty, false otherwise. More... | |
Fields ()=default | |
Only implicit constructors to do. More... | |
Fields (const FieldSet &fields) | |
bool | isSet (Field f) const |
Return true if the specific field is set (preferred to operator&). More... | |
bool | isValid (const Fields &present) const |
bool | operator!= (const Fields &rhs) const |
Return true if the set of fields differs between this and rhs. More... | |
Fields | operator& (const Fields &rhs) const |
Field | operator& (Field rhs) const |
bool | operator== (const Fields &rhs) const |
Compare field sets. More... | |
Fields & | operator^= (Field rhs) |
Fields | operator| (const Fields &rhs) const |
Fields & | operator|= (Field rhs) |
Fields & | set (Field f) |
Set a specific field. More... | |
Static Public Member Functions | |
static Fields | getRequired (double version) |
static bool | isValid (double version, const Fields &present) |
Public Attributes | |
FieldSet | fieldsSet |
All the header fields set in this object. More... | |
|
default |
Only implicit constructors to do.
Construct a Fields class from a set of Field.
[in] | fields | The set of fields to populate this object with. |
Definition at line 377 of file Rinex3ObsHeader.hpp.
|
inline |
Clear all set fields.
Definition at line 396 of file Rinex3ObsHeader.hpp.
Clear a specific field.
Definition at line 390 of file Rinex3ObsHeader.hpp.
Add descriptive information to an exception about which header fields are missing. This object is assumed to be the set of header fields that are expected.
[in] | valid | The set of present header fields. |
[out] | exc | The exception to add descriptive text to. |
Definition at line 2747 of file Rinex3ObsHeader.cpp.
|
inline |
Return true if fieldsSet is empty, false otherwise.
Definition at line 399 of file Rinex3ObsHeader.hpp.
|
static |
Get a reference to the set of required header fields for a given RINEX version.
Definition at line 2692 of file Rinex3ObsHeader.cpp.
|
inline |
Return true if the specific field is set (preferred to operator&).
Definition at line 393 of file Rinex3ObsHeader.hpp.
Determine if a header is valid.
[in] | present | The set of flags present in an existing header to be compared with this set of required flags. |
Definition at line 2736 of file Rinex3ObsHeader.cpp.
|
inlinestatic |
Determine if a header is valid.
[in] | version | The RINEX version being validated. |
[in] | present | The set of flags present in an existing header to be compared with this set of required flags. |
Definition at line 443 of file Rinex3ObsHeader.hpp.
Return true if the set of fields differs between this and rhs.
Definition at line 384 of file Rinex3ObsHeader.hpp.
Rinex3ObsHeader::Fields gnsstk::Rinex3ObsHeader::Fields::operator& | ( | const Fields & | rhs | ) | const |
Backwards compatibility method for code still implemented around bit flags.
Definition at line 2706 of file Rinex3ObsHeader.cpp.
Rinex3ObsHeader::Field gnsstk::Rinex3ObsHeader::Fields::operator& | ( | Rinex3ObsHeader::Field | rhs | ) | const |
Backwards compatibility method for code still implemented around bit flags.
Definition at line 2727 of file Rinex3ObsHeader.cpp.
Compare field sets.
Definition at line 381 of file Rinex3ObsHeader.hpp.
Alias for clear(Field)
Definition at line 419 of file Rinex3ObsHeader.hpp.
Rinex3ObsHeader::Fields gnsstk::Rinex3ObsHeader::Fields::operator| | ( | const Fields & | rhs | ) | const |
Backwards compatibility method for code still implemented around bit flags.
Definition at line 2716 of file Rinex3ObsHeader.cpp.
Alias for set() for backwards compatibility.
Definition at line 415 of file Rinex3ObsHeader.hpp.
Set a specific field.
Definition at line 387 of file Rinex3ObsHeader.hpp.
FieldSet gnsstk::Rinex3ObsHeader::Fields::fieldsSet |
All the header fields set in this object.
Definition at line 460 of file Rinex3ObsHeader.hpp.