62 return write( buffer, strlen( buffer ) );
68 return writeHex( buffer, strlen( buffer ) );
80 return write( buffer );
110 return write( (
char* )&value,
sizeof( value ) );
126 return write( (
const char* )&value,
sizeof( value ) );
146 return write( (
const char* )&medInt, 3 );
152 return write( (
const char* )&value,
sizeof( value ) );
158 return write( (
const char* )&value,
sizeof( value ) );
177 return write( (
const char* )&value,
sizeof( value ) );
183 return write( ( (
const char* )&value ) + 2, 2 );
189 return write( ( (
const char* )&value ) + 1, 3 );
195 return write( (
const char* )&value,
sizeof( value ) );
200 return write( ( (
const char* )&value ) + 2, 6 );
OutStream & writeInteger(const int number, const unsigned int radix=10)
writes an integer as a base-radix string
Definition: OutStream.cpp:46
virtual bool isWritable()=0
indicates whether the stream can actually be written to.
virtual OutStream & write(const char *buffer)
writes zero-terminated buffer to the output buffer/stream
Definition: OutStream.h:60
OutStream & writeNumber(const double number, const unsigned int radix=10)
Definition: OutStream.cpp:54
OutStream & writeUShortCompact(const unsigned short &value)
writes an unsigned short integer as 1 to 3 bytes, encoded as follows: xxxxxxx0 - 7 bit value...
Definition: OutStream.cpp:86
virtual OutStream & write(const char *buffer, unsigned int num)
doesn't write num bytes from buffer to the output buffer/stream
Definition: OutStream.h:232
virtual bool isWritable()
indicates that the stream can't actually be written to.
Definition: OutStream.h:238
OutStream & writeUCharHex(const unsigned char byte)
writes a single unsigned char to the output buffer/stream as 2 hex chars
Definition: OutStream.cpp:37
virtual OutStream & writeHex(const char *buffer)
writes zero-terminated buffer to the output buffer/stream
Definition: OutStream.h:66
OutStream & writeInt(const int value)
writes a 4-byte integer to the output buffer/stream
Definition: OutStream.h:150
OutStream & writeFloat2(const float value)
writes a 2-byte float to the output buffer/stream
Definition: OutStream.h:181
OutStream & operator<<(const Str buffer)
write a Str, using stream operator
Definition: OutStream.h:72
size_t length() const
Definition: Str.h:196
OutStream & writeLongLong(const long long value)
writes a 8-byte integer to the output buffer/stream
Definition: OutStream.h:156
virtual OutStream & writeHex(const char *buffer, size_t num)
writes num bytes from buffer to the output buffer/stream as hex chars
Definition: OutStream.cpp:18
OutStream & writeDouble(const double value)
writes a 8-byte double to the output buffer/stream
Definition: OutStream.h:193
OutStream & writeFloat(const float value)
writes a 4-byte float to the output buffer/stream
Definition: OutStream.h:175
OutStream & writeFloat3(const float value)
writes a 3-byte float to the output buffer/stream
Definition: OutStream.h:187
OutStream()
Protected Constructor for abstract class.
Definition: OutStream.h:211
OutStream & writeLongLongCompact(const long long &value)
writes a signed long long integer as 1 to 9 bytes, encoded as follows: 0xxxxxxx - 7 bit value...
Definition: OutStream.cpp:121
Replacement for standard template class string.
Definition: Str.h:12
virtual ~OutStream()
Destructor.
Definition: OutStream.h:46
OutStream & writeUShortHex(const unsigned short word)
writes a single unsigned short to the output buffer/stream as 4 hex chars
Definition: OutStream.cpp:71
const char * cStr() const
Definition: Str.h:188
virtual OutStream & write(const char *buffer, size_t num)=0
writes num bytes from buffer to the output buffer/stream
OutStream & writeChar(const signed char value)
writes a single byte to the output buffer/stream
Definition: OutStream.h:108
OutStream & writeShort(const short value)
writes a single short to the output buffer/stream
Definition: OutStream.h:124
OutStream & writeInt24(const int medInt)
writes a 3-byte integer to the output buffer/stream only works on little-endian machines! ...
Definition: OutStream.h:144
OutStream & writeCharHex(const signed char byte)
writes a single signed char to the output buffer/stream as 2 hex chars
Definition: OutStream.cpp:28
size_t bytesWritten()
Definition: OutStream.h:203
Definition: OutStream.h:227
OutStream & writeDouble6(const double value)
Definition: OutStream.h:198
This is a very abstract class that can be implemented by classes that want to send stream output...
Definition: OutStream.h:41
size_t lastWritten_
Definition: OutStream.h:214
OutStream & writeShortHex(const short word)
writes a single short to the output buffer/stream as 4 hex chars
Definition: OutStream.cpp:60
static const unsigned char HEX_CHARS[]
Definition: OutStream.h:218