Jpp
master_rocky-37-gf0c5bc59d
the software that should make you happy
|
Binary buffered file output. More...
#include <JFileStreamIO.hh>
Public Member Functions | |
JFileStreamWriter () | |
Default constructor. More... | |
JFileStreamWriter (const char *file_name, const int size=1048576) | |
Constructor. More... | |
void | open (const char *file_name) |
Open file. More... | |
void | close () |
Close file. More... | |
bool | operator! () const |
Negated status of this object. More... | |
JWriter & | operator<< (const JSerialisable &object) |
Write serialisable data object. More... | |
JWriter & | operator<< (const bool value) |
JWriter & | operator<< (const char value) |
JWriter & | operator<< (const unsigned char value) |
JWriter & | operator<< (const short value) |
JWriter & | operator<< (const unsigned short value) |
JWriter & | operator<< (const int value) |
JWriter & | operator<< (const unsigned int value) |
JWriter & | operator<< (const long int value) |
JWriter & | operator<< (const unsigned long int value) |
JWriter & | operator<< (const long long int value) |
JWriter & | operator<< (const unsigned long long int value) |
JWriter & | operator<< (const float value) |
JWriter & | operator<< (const double value) |
JWriter & | operator<< (const long double value) |
JWriter & | operator<< (const JLANG::JObjectID &value) |
virtual bool | getStatus () const override |
Status of writer. More... | |
virtual int | write (const char *zbuf, int n) override |
Write byte array. More... | |
void | flush () |
Write internal data to output. More... | |
JWriter & | operator<< (const JSerialisable &object) |
Write serialisable data object. More... | |
JWriter & | operator<< (const bool value) |
JWriter & | operator<< (const char value) |
JWriter & | operator<< (const unsigned char value) |
JWriter & | operator<< (const short value) |
JWriter & | operator<< (const unsigned short value) |
JWriter & | operator<< (const int value) |
JWriter & | operator<< (const unsigned int value) |
JWriter & | operator<< (const long int value) |
JWriter & | operator<< (const unsigned long int value) |
JWriter & | operator<< (const long long int value) |
JWriter & | operator<< (const unsigned long long int value) |
JWriter & | operator<< (const float value) |
JWriter & | operator<< (const double value) |
JWriter & | operator<< (const long double value) |
JWriter & | operator<< (const JLANG::JObjectID &value) |
JWriter & | store (const JSerialisable &object) |
Write object. More... | |
template<class T > | |
JWriter & | store (const T &object) |
Write object. More... | |
operator bool () const | |
Type conversion operator. More... | |
bool | operator! () const |
Negated status of this object. More... | |
Protected Attributes | |
JLANG::JSinglePointer< JWriter > | out |
char * | buffer |
internal buffer More... | |
int | size |
size of internal buffer More... | |
int | pos |
pointer to end of buffered data More... | |
Binary buffered file output.
Definition at line 93 of file JFileStreamIO.hh.
|
inline |
Default constructor.
Definition at line 107 of file JFileStreamIO.hh.
|
inline |
Constructor.
file_name | file name |
size | size of internal buffer |
Definition at line 119 of file JFileStreamIO.hh.
|
inline |
|
inline |
|
inline |
Negated status of this object.
Definition at line 44 of file JAbstractObjectStatus.hh.
|
inline |
Write serialisable data object.
object | serialisable data object |
Definition at line 144 of file JSerialisable.hh.
|
inline |
Definition at line 150 of file JSerialisable.hh.
|
inline |
Definition at line 151 of file JSerialisable.hh.
|
inline |
Definition at line 152 of file JSerialisable.hh.
|
inline |
Definition at line 153 of file JSerialisable.hh.
|
inline |
Definition at line 154 of file JSerialisable.hh.
|
inline |
Definition at line 155 of file JSerialisable.hh.
|
inline |
Definition at line 156 of file JSerialisable.hh.
|
inline |
Definition at line 157 of file JSerialisable.hh.
|
inline |
Definition at line 158 of file JSerialisable.hh.
|
inline |
Definition at line 159 of file JSerialisable.hh.
|
inline |
Definition at line 160 of file JSerialisable.hh.
|
inline |
Definition at line 161 of file JSerialisable.hh.
|
inline |
Definition at line 162 of file JSerialisable.hh.
|
inline |
Definition at line 163 of file JSerialisable.hh.
|
inline |
Definition at line 164 of file JSerialisable.hh.
|
inlineoverridevirtualinherited |
Status of writer.
Implements JLANG::JAbstractObjectStatus.
Definition at line 188 of file JBufferedIO.hh.
|
inlineoverridevirtualinherited |
Write byte array.
zbuf | pointer to byte array |
n | number of bytes |
Implements JLANG::JBinaryOutput.
Definition at line 201 of file JBufferedIO.hh.
|
inlineinherited |
|
inlineinherited |
Write serialisable data object.
object | serialisable data object |
Definition at line 144 of file JSerialisable.hh.
|
inlineinherited |
Definition at line 150 of file JSerialisable.hh.
|
inlineinherited |
Definition at line 151 of file JSerialisable.hh.
|
inlineinherited |
Definition at line 152 of file JSerialisable.hh.
|
inlineinherited |
Definition at line 153 of file JSerialisable.hh.
|
inlineinherited |
Definition at line 154 of file JSerialisable.hh.
|
inlineinherited |
Definition at line 155 of file JSerialisable.hh.
|
inlineinherited |
Definition at line 156 of file JSerialisable.hh.
|
inlineinherited |
Definition at line 157 of file JSerialisable.hh.
|
inlineinherited |
Definition at line 158 of file JSerialisable.hh.
|
inlineinherited |
Definition at line 159 of file JSerialisable.hh.
|
inlineinherited |
Definition at line 160 of file JSerialisable.hh.
|
inlineinherited |
Definition at line 161 of file JSerialisable.hh.
|
inlineinherited |
Definition at line 162 of file JSerialisable.hh.
|
inlineinherited |
Definition at line 163 of file JSerialisable.hh.
|
inlineinherited |
Definition at line 164 of file JSerialisable.hh.
|
inlineinherited |
Write object.
object | object |
Definition at line 173 of file JSerialisable.hh.
|
inlineinherited |
Write object.
object | object |
Definition at line 186 of file JSerialisable.hh.
|
inlineinherited |
Type conversion operator.
Definition at line 33 of file JAbstractObjectStatus.hh.
|
inlineinherited |
Negated status of this object.
Definition at line 44 of file JAbstractObjectStatus.hh.
|
protectedinherited |
Definition at line 236 of file JBufferedIO.hh.
|
protectedinherited |
internal buffer
Definition at line 238 of file JBufferedIO.hh.
|
protectedinherited |
size of internal buffer
Definition at line 239 of file JBufferedIO.hh.
|
protectedinherited |
pointer to end of buffered data
Definition at line 240 of file JBufferedIO.hh.