A decoder for XDR, the eXternal Data Representation format. More...
#include <XDRDecoder.h++>

Public Member Functions | |
| XDRDecoder (DataReader &reader) | |
| Construct a new XDRDecoder that will decode values from the given DataReader. | |
| ~XDRDecoder () throw () | |
| Destructor. | |
| XDRDecoder & | decode (bool &v) throw (IOException) |
| Decode a boolean value. | |
| XDRDecoder & | decode (byte_t &v) throw (IOException) |
| Decode a byte value. | |
| XDRDecoder & | decode (char &v) throw (IOException) |
| Decode a char value. | |
| XDRDecoder & | decode (int16_t &v) throw (IOException) |
| Decode a signed 16-bit integer value. | |
| XDRDecoder & | decode (uint16_t &v) throw (IOException) |
| Decode an unsigned 16-bit integer value. | |
| XDRDecoder & | decode (int32_t &v) throw (IOException) |
| Decode a signed 32-bit integer value. | |
| XDRDecoder & | decode (uint32_t &v) throw (IOException) |
| Decode an unsigned 32-bit integer value. | |
| XDRDecoder & | decode (int64_t &v) throw (IOException) |
| Decode a signed 64-bit integer value. | |
| XDRDecoder & | decode (uint64_t &v) throw (IOException) |
| Decode an unsigned 64-bit integer value. | |
| XDRDecoder & | decode (float &v) throw (IOException) |
| Decode a floating point value. | |
| XDRDecoder & | decode (double &v) throw (IOException) |
| Decode a double precision floating point value. | |
| XDRDecoder & | decode (char *s, size_t maxlen=0) throw (IOException) |
| Decode a string. | |
| XDRDecoder & | decode (String &s, size_t maxlen=0) throw (IOException) |
| Decode a string. | |
| XDRDecoder & | decode (byte_t *v, size_t len) throw (IOException) |
| Decode a block of opaque data. | |
| XDRDecoder & | decode (Variant &v) throw (IOException) |
| Decode an arbitrary value into a Variant. | |
A decoder for XDR, the eXternal Data Representation format.
XDR is a scheme for encoding primitive datatypes in a platform-independent manner. For more information, see RFC 1832.
| XDRDecoder | ( | DataReader & | reader | ) |
Construct a new XDRDecoder that will decode values from the given DataReader.
| reader | The DataReader. |
| ~XDRDecoder | ( | ) | throw () |
Destructor.
| XDRDecoder & decode | ( | Variant & | v | ) | throw (IOException) |
Decode an arbitrary value into a Variant.
| v | The Variant to decode into. |
| IOException | If an I/O error occcurs. |
| XDRDecoder & decode | ( | byte_t * | v, | |
| size_t | len | |||
| ) | throw (IOException) |
Decode a block of opaque data.
| v | The byte array to decode into. | |
| len | The number of bytes to decode. |
| IOException | If an I/O error occcurs. |
| XDRDecoder & decode | ( | String & | s, | |
| size_t | maxlen = 0 | |||
| ) | throw (IOException) |
Decode a string.
| s | The String to decode into. | |
| maxlen | The maximum length of the string to decode. If the encoded string is longer than this length, an IOException will be thrown. |
| IOException | If an I/O error occcurs. |
| XDRDecoder & decode | ( | char * | s, | |
| size_t | maxlen = 0 | |||
| ) | throw (IOException) |
Decode a string.
| s | The character array to decode into. | |
| maxlen | The maximum length of the string to decode. If the encoded string is longer than this length, an IOException will be thrown. |
| IOException | If an I/O error occcurs. |
| XDRDecoder& decode | ( | double & | v | ) | throw (IOException) [inline] |
Decode a double precision floating point value.
| v | The value to decode into. |
| IOException | If an I/O error occcurs. |
| XDRDecoder& decode | ( | float & | v | ) | throw (IOException) [inline] |
Decode a floating point value.
| v | The value to decode into. |
| IOException | If an I/O error occcurs. |
| XDRDecoder& decode | ( | uint64_t & | v | ) | throw (IOException) [inline] |
Decode an unsigned 64-bit integer value.
| v | The value to decode into. |
| IOException | If an I/O error occcurs. |
| XDRDecoder& decode | ( | int64_t & | v | ) | throw (IOException) [inline] |
Decode a signed 64-bit integer value.
| v | The value to decode into. |
| IOException | If an I/O error occcurs. |
| XDRDecoder& decode | ( | uint32_t & | v | ) | throw (IOException) [inline] |
Decode an unsigned 32-bit integer value.
| v | The value to decode into. |
| IOException | If an I/O error occcurs. |
| XDRDecoder& decode | ( | int32_t & | v | ) | throw (IOException) [inline] |
Decode a signed 32-bit integer value.
| v | The value to decode into. |
| IOException | If an I/O error occcurs. |
| XDRDecoder& decode | ( | uint16_t & | v | ) | throw (IOException) [inline] |
Decode an unsigned 16-bit integer value.
| v | The value to decode into. |
| IOException | If an I/O error occcurs. |
| XDRDecoder& decode | ( | int16_t & | v | ) | throw (IOException) [inline] |
Decode a signed 16-bit integer value.
| v | The value to decode into. |
| IOException | If an I/O error occcurs. |
| XDRDecoder& decode | ( | char & | v | ) | throw (IOException) [inline] |
Decode a char value.
| v | The value to decode into. |
| IOException | If an I/O error occcurs. |
| XDRDecoder& decode | ( | byte_t & | v | ) | throw (IOException) [inline] |
Decode a byte value.
| v | The value to decode into. |
| IOException | If an I/O error occcurs. |
| XDRDecoder& decode | ( | bool & | v | ) | throw (IOException) [inline] |
Decode a boolean value.
| v | The value to decode into. |
| IOException | If an I/O error occcurs. |
1.6.3