15 #include "buttonEvent.h"
17 #include "datagramIterator.h"
18 #include "buttonRegistry.h"
19 #include "textEncoder.h"
27 output(ostream &out)
const {
30 out <<
"button " << _button <<
" down";
34 out <<
"button " << _button <<
" resume down";
38 out <<
"button " << _button <<
" up";
42 out <<
"button " << _button <<
" repeat";
46 out <<
"keystroke " << _keycode;
60 out <<
"raw button " << _button <<
" down";
64 out <<
"raw button " << _button <<
" up";
void add_uint8(PN_uint8 value)
Adds an unsigned 8-bit integer to the datagram.
void add_string(const string &str)
Adds a variable-length string to the datagram.
string encode_wtext(const wstring &wtext) const
Encodes a wide-text string into a single-char string, according to the current encoding.
static Encoding get_default_encoding()
Specifies the default encoding to be used for all subsequently created TextEncoder objects...
PN_uint8 get_uint8()
Extracts an unsigned 8-bit integer.
PN_int16 get_int16()
Extracts a signed 16-bit integer.
string get_string()
Extracts a variable-length string.
PN_uint16 get_uint16()
Extracts an unsigned 16-bit integer.
void add_int16(PN_int16 value)
Adds a signed 16-bit integer to the datagram.
wstring decode_text(const string &text) const
Returns the given wstring decoded to a single-byte string, via the current encoding system...
void add_uint16(PN_uint16 value)
Adds an unsigned 16-bit integer to the datagram.
A class to retrieve the individual data elements previously stored in a Datagram. ...
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...