#include <PXXVDecoder.h>
Inheritance diagram for PXXVDecoder:
Public Member Functions | |
SET_LOGGER ("PXXVDecoder") | |
virtual | ~PXXVDecoder () |
virtual void | Initialize ()=0 |
virtual void | Dispose ()=0 |
virtual Int32b_t | ReadBoolean (Bool8b_t &b)=0 |
virtual Int32b_t | ReadByte (Char8b_t &c)=0 |
virtual Int32b_t | SkipBytes (Int32b_t n)=0 |
virtual Int32b_t | ReadShort (Short16b_t &s)=0 |
virtual Int32b_t | ReadInt (Int32b_t &i)=0 |
virtual Int32b_t | ReadFloat (Float32b_t &f)=0 |
virtual Int32b_t | ReadLong (Long64b_t &l)=0 |
virtual Int32b_t | ReadDouble (Double64b_t &d)=0 |
virtual void | ActivateTheDecoder () |
virtual std::string | GetDecoderName () const |
Static Public Member Functions | |
static PXXVDecoderPtr | GetDecoderPtr () |
static void | OnByteSwap () |
static void | OffByteSwap () |
static Bool8b_t | IsByteSwapOn () |
static void | SwitchByteSwap () |
Protected Member Functions | |
PXXVDecoder () |
|
Destructor |
|
protected constructor because it is abstract class |
|
It allows alternative choice among user-defined decoders. Only one decoder can be activated simultaneously, so if one of the decoders call the function, others are inactivated immediately. |
|
Dispose all allocated dynamic memories. Implemented in PXXNativeDecoder. |
|
Return decoder's name. |
|
Get current decoder |
|
Initialize a decoder. If you allocate dynamic memory here, you must dispose it at Dispose(). Implemented in PXXNativeDecoder. |
|
|
|
|
|
Byte swap switch. If fIsByteSwapOn_ is true, do byte swap inside the Read functions. |
|
Reads boolean(1byte if the JAVA binary is written by java.io.DataOutput interface) and set it to the argument. true if that byte is nonzero, false if that byte is zero.
Implemented in PXXNativeDecoder. |
|
Reads one input byte and set it to the argument. The byte is treated as a signed value in the range -128 through 127, inclusive.
Implemented in PXXNativeDecoder. |
|
Reads eight input bytes and set it to the argument.
Implemented in PXXNativeDecoder. |
|
Reads four input bytes and set it to the argument.
Implemented in PXXNativeDecoder. |
|
Reads four input bytes and set it to the argument.
Implemented in PXXNativeDecoder. |
|
Reads eight input bytes and set it to the argument.
Implemented in PXXNativeDecoder. |
|
Reads two input bytes and set it to the argument.
Implemented in PXXNativeDecoder. |
|
|
|
Makes an attempt to skip over n bytes of data from the input stream, discarding the skipped bytes. However, it may skip over some smaller number of bytes, possibly zero. This may result from any of a number of conditions; reaching end of file before n bytes have been skipped is only one possibility. Number of bytes skipped is returned.
Implemented in PXXNativeDecoder. |
|
Switch fIsByteSwapOn_ flag to opposite value. |