1 #ifndef __JIO__JSERIALISABLE__
2 #define __JIO__JSERIALISABLE__
16 namespace JPP {
using namespace JIO; }
82 return object.
read(*
this);
95 JReader&
operator>>(
unsigned long long int& value) {
read((
char*) &value,
sizeof(
unsigned long long int));
return *
this; }
109 return object.
read(*
this);
122 return *
this >> object;
143 return object.
write(*
this);
156 JWriter&
operator<<(
const unsigned long long int& value) {
write((
const char*) &value,
sizeof(
unsigned long long int));
return *
this; }
170 return object.
write(*
this);
183 return *
this << object;
JReader & operator>>(short &value)
Interface for binary output.
JWriter & store(const JSerialisable &object)
Write object.
JReader & operator>>(long long int &value)
JReader & operator>>(unsigned int &value)
JReader & operator>>(char &value)
JReader & operator>>(float &value)
JWriter & operator<<(const unsigned long long int &value)
virtual JWriter & write(JWriter &out) const =0
Write to output.
virtual int write(const char *buffer, const int length)=0
Write byte array.
JWriter & operator<<(const long long int &value)
JReader & operator>>(unsigned long long int &value)
JWriter & operator<<(const bool &value)
JWriter & operator<<(const char &value)
JReader & operator>>(unsigned char &value)
Forward declaration of binary output.
JReader & load(JSerialisable &object)
Read object.
virtual JReader & read(JReader &in)=0
Read from input.
JWriter & operator<<(const double &value)
JWriter & operator<<(const unsigned char &value)
JReader & operator>>(long double &value)
Interface for binary input.
JReader & operator>>(long int &value)
JReader & operator>>(JSerialisable &object)
Read serialisable data object.
JWriter & operator<<(const long int &value)
JWriter & operator<<(const long double &value)
JReader & operator>>(unsigned short &value)
JReader & operator>>(int &value)
JReader & load(T &object)
Read object.
JWriter & operator<<(const int &value)
Interface for status of object.
JWriter & operator<<(const unsigned short &value)
JWriter & operator<<(const short &value)
virtual ~JSerialisable()
Virtual destructor.
JWriter & operator<<(const float &value)
JWriter & operator<<(const JSerialisable &object)
Write serialisable data object.
JWriter & operator<<(const unsigned int &value)
JReader & operator>>(double &value)
virtual void clear()
Clear status of reader.
JReader & operator>>(bool &value)
Interface for binary output.
JWriter & store(const T &object)
Write object.