Interface for binary input.
More...
#include <JSerialisable.hh>
Interface for binary input.
Definition at line 62 of file JSerialisable.hh.
virtual void JIO::JReader::clear |
( |
| ) |
|
|
inlinevirtual |
Read serialisable data object.
- Parameters
-
object | serialisable data object |
- Returns
- JReader
Definition at line 80 of file JSerialisable.hh.
82 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 88 of file JSerialisable.hh.
88 {
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 90 of file JSerialisable.hh.
90 {
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 92 of file JSerialisable.hh.
92 {
read((
char*) &value,
sizeof(
unsigned int));
return *
this; }
JReader& JIO::JReader::operator>> |
( |
long int & |
value | ) |
|
|
inline |
JReader& JIO::JReader::operator>> |
( |
long long int & |
value | ) |
|
|
inline |
Definition at line 94 of file JSerialisable.hh.
94 {
read((
char*) &value,
sizeof(
long long int));
return *
this; }
JReader& JIO::JReader::operator>> |
( |
unsigned long long int & |
value | ) |
|
|
inline |
Definition at line 95 of file JSerialisable.hh.
95 {
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 98 of file JSerialisable.hh.
98 {
read((
char*) &value,
sizeof(
long double));
return *
this; }
Read object.
- Parameters
-
- Returns
- this reader
Definition at line 107 of file JSerialisable.hh.
109 return object.read(*
this);
template<class T >
JReader& JIO::JReader::load |
( |
T & |
object | ) |
|
|
inline |
Read object.
- Parameters
-
- Returns
- this reader
Definition at line 120 of file JSerialisable.hh.
122 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::JByteArrayWriter, JIO::JBufferedWriter, 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: