DBus::MessageIter Class Reference

#include <message.h>

List of all members.

Public Member Functions

 MessageIter ()
int type ()
bool at_end ()
bool has_next ()
MessageIteroperator++ ()
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)
Messagemsg () 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

DBus::MessageIter::MessageIter (  )  [inline]

Definition at line 48 of file message.h.

DXXAPILOCAL DBus::MessageIter::MessageIter ( Message msg  )  [inline, private]

Definition at line 141 of file message.h.


Member Function Documentation

bool MessageIter::append_array ( char  type,
const void *  ptr,
size_t  length 
)

Definition at line 239 of file message.cpp.

References _iter.

Referenced by operator<<().

bool MessageIter::append_basic ( int  type_id,
void *  value 
) [private]
bool MessageIter::append_bool ( bool  b  ) 

Definition at line 94 of file message.cpp.

References append_basic().

Referenced by operator<<().

bool MessageIter::append_byte ( unsigned char  byte  ) 

Definition at line 82 of file message.cpp.

References append_basic().

Referenced by operator<<().

bool MessageIter::append_double ( double  d  ) 

Definition at line 186 of file message.cpp.

References append_basic().

Referenced by operator<<().

bool MessageIter::append_int16 ( signed short  i  ) 

Definition at line 107 of file message.cpp.

References append_basic().

Referenced by operator<<().

bool MessageIter::append_int32 ( signed int  i  ) 

Definition at line 131 of file message.cpp.

References append_basic().

Referenced by operator<<().

bool MessageIter::append_int64 ( signed long long  i  ) 

Definition at line 162 of file message.cpp.

References append_basic().

Referenced by operator<<().

bool MessageIter::append_path ( const char *  chars  ) 

Definition at line 203 of file message.cpp.

References append_basic().

Referenced by operator<<().

bool MessageIter::append_signature ( const char *  chars  ) 

Definition at line 215 of file message.cpp.

References append_basic().

Referenced by operator<<().

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  ) 

Definition at line 119 of file message.cpp.

References append_basic().

Referenced by operator<<().

bool MessageIter::append_uint32 ( unsigned int  u  ) 

Definition at line 143 of file message.cpp.

References append_basic().

Referenced by operator<<().

bool MessageIter::append_uint64 ( unsigned long long  i  ) 

Definition at line 174 of file message.cpp.

References append_basic().

Referenced by operator<<().

int MessageIter::array_type (  ) 

Definition at line 244 of file message.cpp.

References _iter.

Referenced by operator>>().

bool MessageIter::at_end (  ) 

Definition at line 46 of file message.cpp.

References type().

Referenced by operator>>().

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  ) 
int MessageIter::get_array ( void *  ptr  ) 

Definition at line 249 of file message.cpp.

References _iter.

Referenced by operator>>().

void MessageIter::get_basic ( int  type_id,
void *  ptr 
) [private]
bool MessageIter::get_bool (  ) 

Definition at line 100 of file message.cpp.

References get_basic().

Referenced by operator>>().

unsigned char MessageIter::get_byte (  ) 

Definition at line 87 of file message.cpp.

References get_basic().

Referenced by operator>>().

double MessageIter::get_double (  ) 

Definition at line 179 of file message.cpp.

References get_basic().

Referenced by operator>>().

signed short MessageIter::get_int16 (  ) 

Definition at line 112 of file message.cpp.

References get_basic().

Referenced by operator>>().

signed int MessageIter::get_int32 (  ) 

Definition at line 136 of file message.cpp.

References get_basic().

Referenced by operator>>().

signed long long MessageIter::get_int64 (  ) 

Definition at line 155 of file message.cpp.

References get_basic().

Referenced by operator>>().

const char * MessageIter::get_path (  ) 

Definition at line 208 of file message.cpp.

References get_basic().

Referenced by operator>>().

const char * MessageIter::get_signature (  ) 

Definition at line 220 of file message.cpp.

References get_basic().

Referenced by operator>>().

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 (  ) 

Definition at line 124 of file message.cpp.

References get_basic().

Referenced by operator>>().

unsigned int MessageIter::get_uint32 (  ) 

Definition at line 148 of file message.cpp.

References get_basic().

Referenced by operator>>().

unsigned long long MessageIter::get_uint64 (  ) 

Definition at line 167 of file message.cpp.

References get_basic().

Referenced by operator>>().

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.

References _iter, and msg().

MessageIter MessageIter::new_dict_entry (  ) 

Definition at line 293 of file message.cpp.

References _iter, and msg().

Referenced by operator<<().

MessageIter MessageIter::new_struct (  ) 

Definition at line 284 of file message.cpp.

References _iter, and msg().

MessageIter MessageIter::new_variant ( const char *  sig  ) 

Definition at line 275 of file message.cpp.

References _iter, and msg().

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.

References _iter, and msg().

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

friend class Message [friend]

Definition at line 155 of file message.h.


Member Data Documentation

Definition at line 153 of file message.h.


The documentation for this class was generated from the following files: