#include <TransInput.hh>
Public Member Functions | |
| TransInput (const Buffer &b) | |
| TransInput (void) | |
| void | align (size_type bdry) |
| bool | available (size_type N) const |
| bool | empty (void) const |
| template<class T> | |
| size_type | read (T x[], size_type N=1) |
| template<class T> | |
| TransInput & | operator>> (T &x) throw (std::runtime_error) |
| template<> | |
| size_type | read (char x[], size_type N) |
| Read a character string. | |
| template<> | |
| size_type | read (MsgAddr x[], size_type N) |
| Read MsgAddr's. | |
| template<> | |
| size_type | read (Time x[], size_type N) |
| Read GPS Time's. | |
| template<> | |
| size_type | read (std::string x[], size_type N) |
| Read byte-count strings. | |
| lmsg::TransInput::TransInput | ( | const Buffer & | b | ) |
Construct an input stream and attach a full message buffer to it. brief data constructor.
| b | Message buffer to be read by the input stream. |
| lmsg::TransInput::TransInput | ( | void | ) |
Default input stream constructor.
| void lmsg::TransInput::align | ( | size_type | bdry | ) |
Align data to appropriate boundary.
| bool lmsg::TransInput::available | ( | size_type | N | ) | const [inline] |
Test whether the specified number of bytes remain in the input buffer.
| bool lmsg::TransInput::empty | ( | void | ) | const [inline] |
Test whether there is any more data in the input buffer. brief Test whether buffer is empty;
| size_type lmsg::TransInput::read | ( | T | x[], | |
| size_type | N = 1 | |||
| ) | [inline] |
Template to read and translate a character array. brief read a character array.
| x | Pointer to a character array to receive the data. | |
| N | Number of characters to be read. |
| TransInput & lmsg::TransInput::operator>> | ( | T & | x | ) | throw (std::runtime_error) [inline] |
Stream input operator template;
| size_type lmsg::TransInput::read | ( | char | x[], | |
| size_type | N | |||
| ) | [inline] |
Read a character string.
Read a character string of length N.
| x | Character array to receive string. | |
| N | Number of characters to read. |
| size_type lmsg::TransInput::read | ( | MsgAddr | x[], | |
| size_type | N | |||
| ) | [inline] |
Read MsgAddr's.
Read N message addresses.
| x | MsgAddr array to receive data. | |
| N | Number of items to read. |
| size_type lmsg::TransInput::read | ( | Time | x[], | |
| size_type | N | |||
| ) | [inline] |
Read GPS Time's.
Read N GPS times.
| x | Time array to receive data. | |
| N | Number of items to read. |
| size_type lmsg::TransInput::read | ( | std::string | x[], | |
| size_type | N | |||
| ) | [inline] |
Read byte-count strings.
Read N byte-count strings.
| x | String array to receive data. | |
| N | Number of items to read. |
1.5.4