Interface for binary output.
More...
#include <JSerialisable.hh>
Interface for binary output.
Definition at line 130 of file JSerialisable.hh.
◆ operator<<() [1/14]
Write serialisable data object.
- Parameters
-
object | serialisable data object |
- Returns
- JWriter
Definition at line 141 of file JSerialisable.hh.
143 return object.write(*
this);
◆ operator<<() [2/14]
JWriter& JIO::JWriter::operator<< |
( |
const bool & |
value | ) |
|
|
inline |
◆ operator<<() [3/14]
JWriter& JIO::JWriter::operator<< |
( |
const char & |
value | ) |
|
|
inline |
◆ operator<<() [4/14]
JWriter& JIO::JWriter::operator<< |
( |
const unsigned char & |
value | ) |
|
|
inline |
Definition at line 149 of file JSerialisable.hh.
149 {
write((
const char*) &value,
sizeof(
unsigned char));
return *
this; }
◆ operator<<() [5/14]
JWriter& JIO::JWriter::operator<< |
( |
const short & |
value | ) |
|
|
inline |
◆ operator<<() [6/14]
JWriter& JIO::JWriter::operator<< |
( |
const unsigned short & |
value | ) |
|
|
inline |
Definition at line 151 of file JSerialisable.hh.
151 {
write((
const char*) &value,
sizeof(
unsigned short));
return *
this; }
◆ operator<<() [7/14]
JWriter& JIO::JWriter::operator<< |
( |
const int & |
value | ) |
|
|
inline |
◆ operator<<() [8/14]
JWriter& JIO::JWriter::operator<< |
( |
const unsigned int & |
value | ) |
|
|
inline |
Definition at line 153 of file JSerialisable.hh.
153 {
write((
const char*) &value,
sizeof(
unsigned int));
return *
this; }
◆ operator<<() [9/14]
JWriter& JIO::JWriter::operator<< |
( |
const long int & |
value | ) |
|
|
inline |
◆ operator<<() [10/14]
JWriter& JIO::JWriter::operator<< |
( |
const long long int & |
value | ) |
|
|
inline |
Definition at line 155 of file JSerialisable.hh.
155 {
write((
const char*) &value,
sizeof(
long long int));
return *
this; }
◆ operator<<() [11/14]
JWriter& JIO::JWriter::operator<< |
( |
const unsigned long long int & |
value | ) |
|
|
inline |
Definition at line 156 of file JSerialisable.hh.
156 {
write((
const char*) &value,
sizeof(
unsigned long long int));
return *
this; }
◆ operator<<() [12/14]
JWriter& JIO::JWriter::operator<< |
( |
const float & |
value | ) |
|
|
inline |
◆ operator<<() [13/14]
JWriter& JIO::JWriter::operator<< |
( |
const double & |
value | ) |
|
|
inline |
◆ operator<<() [14/14]
JWriter& JIO::JWriter::operator<< |
( |
const long double & |
value | ) |
|
|
inline |
Definition at line 159 of file JSerialisable.hh.
159 {
write((
const char*) &value,
sizeof(
long double));
return *
this; }
◆ store() [1/2]
Write object.
- Parameters
-
- Returns
- this writer
Definition at line 168 of file JSerialisable.hh.
170 return object.write(*
this);
◆ store() [2/2]
template<class T >
JWriter& JIO::JWriter::store |
( |
const T & |
object | ) |
|
|
inline |
Write object.
- Parameters
-
- Returns
- this writer
Definition at line 181 of file JSerialisable.hh.
183 return *
this << object;
◆ write()
virtual int JLANG::JBinaryOutput::write |
( |
const char * |
buffer, |
|
|
const int |
length |
|
) |
| |
|
pure virtualinherited |
◆ getStatus()
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.
◆ operator bool()
JLANG::JAbstractObjectStatus::operator bool |
( |
| ) |
const |
|
inlineinherited |
◆ operator!()
bool JLANG::JAbstractObjectStatus::operator! |
( |
| ) |
const |
|
inlineinherited |
The documentation for this class was generated from the following file: