DBus::MessageIter Class Reference
#include <message.h>
Public Member Functions | |
MessageIter () | |
int | type () |
bool | at_end () |
bool | has_next () |
MessageIter & | operator++ () |
MessageIter | operator++ (int) |
bool | append_byte (unsigned char byte) |
unsigned char | get_byte () |
bool | append_bool (bool b) |
bool | get_bool () |
bool | append_int16 (signed short i) |
signed short | get_int16 () |
bool | append_uint16 (unsigned short u) |
unsigned short | get_uint16 () |
bool | append_int32 (signed int i) |
signed int | get_int32 () |
bool | append_uint32 (unsigned int u) |
unsigned int | get_uint32 () |
bool | append_int64 (signed long long i) |
signed long long | get_int64 () |
bool | append_uint64 (unsigned long long i) |
unsigned long long | get_uint64 () |
bool | append_double (double d) |
double | get_double () |
bool | append_string (const char *chars) |
const char * | get_string () |
bool | append_path (const char *chars) |
const char * | get_path () |
bool | append_signature (const char *chars) |
const char * | get_signature () |
char * | signature () const |
MessageIter | recurse () |
bool | append_array (char type, const void *ptr, size_t length) |
int | array_type () |
int | get_array (void *ptr) |
bool | is_array () |
bool | is_dict () |
MessageIter | new_array (const char *sig) |
MessageIter | new_variant (const char *sig) |
MessageIter | new_struct () |
MessageIter | new_dict_entry () |
void | close_container (MessageIter &container) |
void | copy_data (MessageIter &to) |
Message & | msg () const |
Private Member Functions | |
DXXAPILOCAL | MessageIter (Message &msg) |
DXXAPILOCAL bool | append_basic (int type_id, void *value) |
DXXAPILOCAL void | get_basic (int type_id, void *ptr) |
Private Attributes | |
unsigned char | _iter [sizeof(void *)*3+sizeof(int)*11] |
Message * | _msg |
Friends | |
class | Message |
Detailed Description
Definition at line 44 of file message.h.
Constructor & Destructor Documentation
DXXAPILOCAL DBus::MessageIter::MessageIter | ( | Message & | msg | ) | [inline, private] |
Member Function Documentation
bool MessageIter::append_array | ( | char | type, | |
const void * | ptr, | |||
size_t | length | |||
) |
bool MessageIter::append_basic | ( | int | type_id, | |
void * | value | |||
) | [private] |
Definition at line 69 of file message.cpp.
References _iter.
Referenced by append_bool(), append_byte(), append_double(), append_int16(), append_int32(), append_int64(), append_path(), append_signature(), append_string(), append_uint16(), append_uint32(), append_uint64(), and copy_data().
bool MessageIter::append_bool | ( | bool | b | ) |
bool MessageIter::append_byte | ( | unsigned char | byte | ) |
bool MessageIter::append_double | ( | double | d | ) |
bool MessageIter::append_int16 | ( | signed short | i | ) |
bool MessageIter::append_int32 | ( | signed int | i | ) |
bool MessageIter::append_int64 | ( | signed long long | i | ) |
bool MessageIter::append_path | ( | const char * | chars | ) |
bool MessageIter::append_signature | ( | const char * | chars | ) |
bool MessageIter::append_string | ( | const char * | chars | ) |
Definition at line 191 of file message.cpp.
References append_basic().
Referenced by DBus::IntrospectableAdaptor::Introspect(), and operator<<().
bool MessageIter::append_uint16 | ( | unsigned short | u | ) |
bool MessageIter::append_uint32 | ( | unsigned int | u | ) |
bool MessageIter::append_uint64 | ( | unsigned long long | i | ) |
int MessageIter::array_type | ( | ) |
bool MessageIter::at_end | ( | ) |
void MessageIter::close_container | ( | MessageIter & | container | ) |
Definition at line 302 of file message.cpp.
References _iter.
Referenced by copy_data(), and operator<<().
void MessageIter::copy_data | ( | MessageIter & | to | ) |
Definition at line 329 of file message.cpp.
References _iter, append_basic(), close_container(), copy_data(), DBus::debug_log, is_basic_type(), msg(), and signature().
Referenced by copy_data(), operator<<(), operator>>(), and DBus::Variant::Variant().
int MessageIter::get_array | ( | void * | ptr | ) |
void MessageIter::get_basic | ( | int | type_id, | |
void * | ptr | |||
) | [private] |
Definition at line 74 of file message.cpp.
Referenced by get_bool(), get_byte(), get_double(), get_int16(), get_int32(), get_int64(), get_path(), get_signature(), get_string(), get_uint16(), get_uint32(), and get_uint64().
bool MessageIter::get_bool | ( | ) |
unsigned char MessageIter::get_byte | ( | ) |
double MessageIter::get_double | ( | ) |
signed short MessageIter::get_int16 | ( | ) |
signed int MessageIter::get_int32 | ( | ) |
signed long long MessageIter::get_int64 | ( | ) |
const char * MessageIter::get_path | ( | ) |
const char * MessageIter::get_signature | ( | ) |
const char * MessageIter::get_string | ( | ) |
Definition at line 196 of file message.cpp.
References get_basic().
Referenced by DBus::IntrospectableProxy::Introspect(), and operator>>().
unsigned short MessageIter::get_uint16 | ( | ) |
unsigned int MessageIter::get_uint32 | ( | ) |
unsigned long long MessageIter::get_uint64 | ( | ) |
bool MessageIter::has_next | ( | ) |
Definition at line 51 of file message.cpp.
References _iter.
bool MessageIter::is_array | ( | ) |
Definition at line 256 of file message.cpp.
References _iter.
Referenced by is_dict(), and operator>>().
bool MessageIter::is_dict | ( | ) |
Definition at line 261 of file message.cpp.
References _iter, and is_array().
Referenced by operator>>().
Message& DBus::MessageIter::msg | ( | ) | const [inline] |
Definition at line 134 of file message.h.
Referenced by copy_data(), new_array(), new_dict_entry(), new_struct(), new_variant(), and recurse().
MessageIter MessageIter::new_array | ( | const char * | sig | ) |
Definition at line 266 of file message.cpp.
MessageIter MessageIter::new_dict_entry | ( | ) |
Definition at line 293 of file message.cpp.
Referenced by operator<<().
MessageIter MessageIter::new_struct | ( | ) |
Definition at line 284 of file message.cpp.
MessageIter MessageIter::new_variant | ( | const char * | sig | ) |
Definition at line 275 of file message.cpp.
Referenced by operator<<().
MessageIter MessageIter::operator++ | ( | int | ) |
Definition at line 62 of file message.cpp.
MessageIter & MessageIter::operator++ | ( | ) |
Definition at line 56 of file message.cpp.
References _iter.
MessageIter MessageIter::recurse | ( | ) |
Definition at line 227 of file message.cpp.
Referenced by operator>>(), and DBus::Variant::Variant().
char * MessageIter::signature | ( | ) | const |
Definition at line 234 of file message.cpp.
References _iter.
Referenced by copy_data(), and DBus::Variant::signature().
int MessageIter::type | ( | ) |
Definition at line 41 of file message.cpp.
References _iter.
Referenced by at_end(), get_basic(), and operator>>().
Friends And Related Function Documentation
Member Data Documentation
unsigned char DBus::MessageIter::_iter[sizeof(void *)*3+sizeof(int)*11] [private] |
Definition at line 151 of file message.h.
Referenced by append_array(), append_basic(), array_type(), close_container(), copy_data(), get_array(), get_basic(), has_next(), is_array(), is_dict(), new_array(), new_dict_entry(), new_struct(), new_variant(), operator++(), DBus::Message::reader(), recurse(), signature(), type(), and DBus::Message::writer().
Message* DBus::MessageIter::_msg [private] |
The documentation for this class was generated from the following files: