#include <BinexData.hpp>
Definition at line 87 of file BinexData.hpp.
Public Member Functions | |
| UBNXI () | |
| Default constructor - sets value to 0. | |
| UBNXI (const UBNXI &other) | |
| Copy constructor. | |
| throw (FFStreamError) | |
| Constructor with unsigned long initialization value. | |
| UBNXI & | operator= (const UBNXI &right) |
| Copies another UBNXI. | |
| bool | operator== (const UBNXI &other) const |
| Compares two UBNXI's for equality. | |
| bool | operator!= (const UBNXI &other) const |
| Compares two UBNXI's for inequality. | |
| bool | operator< (const UBNXI &other) const |
| Returns whether this UBNXI is less than the other. | |
| bool | operator<= (const UBNXI &other) const |
| Returns whether this UBNXI is less than or equal to the other. | |
| bool | operator> (const UBNXI &other) const |
| Returns whether this UBNXI is greater than the other. | |
| bool | operator>= (const UBNXI &other) const |
| Returns whether this UBNXI is greater than or equal to the other. | |
| operator unsigned long () const | |
| Returns the value of the UBNXI as an unsigned long. | |
| size_t | getSize () const |
| Returns the number of bytes required to represent the UBNXI. | |
| size_t | decode (const std::string &inBuffer, size_t offset=0, bool littleEndian=false) throw (FFStreamError) |
| Attempts to decode a valid UBNXI from the contents of inBuffer. | |
| size_t | encode (std::string &outBuffer, size_t offset=0, bool littleEndian=false) const |
| Converts the UBNXI to a series of bytes placed in outBuffer. | |
| size_t | read (std::istream &strm, std::string *outBuffer=NULL, size_t offset=0, bool reverseBytes=false, bool littleEndian=false) throw (FFStreamError) |
| Attempts to read a valid UBNXI from the specified input stream. | |
| size_t | write (std::ostream &strm, std::string *outBuffer=NULL, size_t offset=0, bool reverseBytes=false, bool littleEndian=false) const throw (FFStreamError) |
| Attempts to write the UBNXI to the specified output stream. | |
Static Public Attributes | |
| const unsigned long | MIN_VALUE = 0 |
| const unsigned long | MAX_VALUE = 536870911 |
| const unsigned char | MAX_BYTES = 4 |
Protected Attributes | |
| unsigned long | value |
| size_t | size |
|
|
Default constructor - sets value to 0.
Definition at line 44 of file BinexData.cpp. References BinexData::UBNXI::size, and BinexData::UBNXI::value. |
|
|
Copy constructor.
Definition at line 103 of file BinexData.hpp. |
|
||||||||||||||||
|
Attempts to decode a valid UBNXI from the contents of inBuffer. The contents of inBuffer are assumed to be in normal order (i.e. not reversed) but may be either big or little endian.
Definition at line 87 of file BinexData.cpp. References GPSTK_THROW. Referenced by BinexData::extractMessageData(), and BinexData::reallyGetRecord(). |
|
||||||||||||||||
|
Converts the UBNXI to a series of bytes placed in outBuffer. The bytes are output in normal order (i.e. not reversed) but may encode in either big or little endian format.
Definition at line 124 of file BinexData.cpp. References GPSTK_THROW, BinexData::reverseBuffer(), and BinexData::UBNXI::size. Referenced by BinexData::reallyPutRecord(), and BinexData::updateMessageData(). |
|
|
Returns the number of bytes required to represent the UBNXI. A size of 0 indicates an invalid or uninitialized UBNXI. Definition at line 193 of file BinexData.hpp. Referenced by BinexData::getRecordSize(), and BinexData::reallyPutRecord(). |
|
|
Returns the value of the UBNXI as an unsigned long.
Definition at line 183 of file BinexData.hpp. |
|
|
Compares two UBNXI's for inequality.
Definition at line 138 of file BinexData.hpp. References BinexData::UBNXI::value. |
|
|
Returns whether this UBNXI is less than the other.
Definition at line 147 of file BinexData.hpp. References BinexData::UBNXI::value. |
|
|
Returns whether this UBNXI is less than or equal to the other.
Definition at line 156 of file BinexData.hpp. References BinexData::UBNXI::value. |
|
|
Copies another UBNXI.
Definition at line 118 of file BinexData.hpp. References BinexData::UBNXI::size, and BinexData::UBNXI::value. |
|
|
Compares two UBNXI's for equality.
Definition at line 129 of file BinexData.hpp. References BinexData::UBNXI::value. |
|
|
Returns whether this UBNXI is greater than the other.
Definition at line 165 of file BinexData.hpp. References BinexData::UBNXI::value. |
|
|
Returns whether this UBNXI is greater than or equal to the other.
Definition at line 174 of file BinexData.hpp. References BinexData::UBNXI::value. |
|
||||||||||||||||||||||||
|
Attempts to read a valid UBNXI from the specified input stream. The stream can be in reverse order and can be big or little endian. If the method succeeds, the number of bytes used to contruct the UBNXI can be determined by calling the getSize() method.
Definition at line 237 of file BinexData.cpp. References GPSTK_THROW. Referenced by BinexData::reallyGetRecord(). |
|
|
Constructor with unsigned long initialization value.
|
|
||||||||||||||||||||||||
|
Attempts to write the UBNXI to the specified output stream. The stream can be output in reverse order and can be big or little endian. The method fails if the entire UBNXI cannot be written to the stream.
Definition at line 301 of file BinexData.cpp. References GPSTK_THROW, and BinexData::reverseBuffer(). |
|
|
Definition at line 93 of file BinexData.hpp. |
|
|
Definition at line 92 of file BinexData.hpp. |
|
|
Definition at line 91 of file BinexData.hpp. |
|
|
Definition at line 274 of file BinexData.hpp. Referenced by BinexData::UBNXI::encode(), BinexData::getCRC(), BinexData::getRecordSize(), BinexData::UBNXI::operator=(), BinexData::reallyGetRecord(), BinexData::reallyPutRecord(), and BinexData::UBNXI::UBNXI(). |
|
|
Definition at line 273 of file BinexData.hpp. Referenced by BinexData::UBNXI::operator!=(), BinexData::UBNXI::operator<(), BinexData::UBNXI::operator<=(), BinexData::UBNXI::operator=(), BinexData::UBNXI::operator==(), BinexData::UBNXI::operator>(), BinexData::UBNXI::operator>=(), and BinexData::UBNXI::UBNXI(). |
1.3.9.1