Interface for binary input.
More...
#include <JSerialisable.hh>
Interface for binary input.
Definition at line 63 of file JSerialisable.hh.
virtual void JIO::JReader::clear |
( |
| ) |
|
|
inlinevirtual |
Read serialisable data object.
- Parameters
-
object | serialisable data object |
- Returns
- JReader
Definition at line 81 of file JSerialisable.hh.
83 return object.read(*
this);
JReader& JIO::JReader::operator>> |
( |
bool & |
value | ) |
|
|
inline |
JReader& JIO::JReader::operator>> |
( |
char & |
value | ) |
|
|
inline |
JReader& JIO::JReader::operator>> |
( |
unsigned char & |
value | ) |
|
|
inline |
Definition at line 89 of file JSerialisable.hh.
89 {
read((
char*) &value,
sizeof(
unsigned char));
return *
this; }
JReader& JIO::JReader::operator>> |
( |
short & |
value | ) |
|
|
inline |
JReader& JIO::JReader::operator>> |
( |
unsigned short & |
value | ) |
|
|
inline |
Definition at line 91 of file JSerialisable.hh.
91 {
read((
char*) &value,
sizeof(
unsigned short));
return *
this; }
JReader& JIO::JReader::operator>> |
( |
int & |
value | ) |
|
|
inline |
JReader& JIO::JReader::operator>> |
( |
unsigned int & |
value | ) |
|
|
inline |
Definition at line 93 of file JSerialisable.hh.
93 {
read((
char*) &value,
sizeof(
unsigned int));
return *
this; }
JReader& JIO::JReader::operator>> |
( |
long int & |
value | ) |
|
|
inline |
JReader& JIO::JReader::operator>> |
( |
unsigned long int & |
value | ) |
|
|
inline |
Definition at line 95 of file JSerialisable.hh.
95 {
read((
char*) &value,
sizeof(
unsigned long int));
return *
this; }
JReader& JIO::JReader::operator>> |
( |
long long int & |
value | ) |
|
|
inline |
Definition at line 96 of file JSerialisable.hh.
96 {
read((
char*) &value,
sizeof(
long long int));
return *
this; }
JReader& JIO::JReader::operator>> |
( |
unsigned long long int & |
value | ) |
|
|
inline |
Definition at line 97 of file JSerialisable.hh.
97 {
read((
char*) &value,
sizeof(
unsigned long long int));
return *
this; }
JReader& JIO::JReader::operator>> |
( |
float & |
value | ) |
|
|
inline |
JReader& JIO::JReader::operator>> |
( |
double & |
value | ) |
|
|
inline |
JReader& JIO::JReader::operator>> |
( |
long double & |
value | ) |
|
|
inline |
Definition at line 101 of file JSerialisable.hh.
101 {
return (*
this) >> value.
getID(); }
int getID() const
Get identifier.
Read object.
- Parameters
-
- Returns
- this reader
Definition at line 110 of file JSerialisable.hh.
112 return object.read(*
this);
template<class T >
JReader& JIO::JReader::load |
( |
T & |
object | ) |
|
|
inline |
Read object.
- Parameters
-
- Returns
- this reader
Definition at line 123 of file JSerialisable.hh.
125 return *
this >> object;
virtual int JLANG::JBinaryInput::read |
( |
char * |
buffer, |
|
|
const int |
length |
|
) |
| |
|
pure virtualinherited |
virtual bool JLANG::JAbstractObjectStatus::getStatus |
( |
| ) |
const |
|
pure virtualinherited |
Get status of object.
- Returns
- status of this object
Implemented in JPARSER::JCounter, JSYSTEM::JShell, JIO::JBufferedWriter, JIO::JByteArrayWriter, JIO::JByteArrayReader, JIO::JStreamWriter, JIO::JFileWriter, JLANG::JRedirectStream, JIO::JBufferedReader, JLANG::JRedirectString, JSYSTEM::JStat, JIO::JFileReader, JIO::JStreamReader, and JLANG::JObjectStatus.
JLANG::JAbstractObjectStatus::operator bool |
( |
| ) |
const |
|
inlineinherited |
Type conversion operator.
- Returns
- status of this object
Definition at line 33 of file JAbstractObjectStatus.hh.
virtual bool getStatus() const =0
Get status of object.
bool JLANG::JAbstractObjectStatus::operator! |
( |
| ) |
const |
|
inlineinherited |
Negated status of this object.
- Returns
- negated status of this object
Definition at line 44 of file JAbstractObjectStatus.hh.
virtual bool getStatus() const =0
Get status of object.
The documentation for this class was generated from the following file: