dbus-cxx logo
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DBus::MessageAppendIterator Class Reference

Insertion iterator allow values to be appended to a message. More...

#include <messageappenditerator.h>

Public Member Functions

 MessageAppendIterator ()
 MessageAppendIterator (Message &message)
 MessageAppendIterator (DBusCxxPointer< Message > message)
 ~MessageAppendIterator ()
const Messagemessage () const
 Returns a pointer to the message associated with this iterator or NULL if no message is associated.
DBusMessageIter * cobj ()
 Returns a pointer to the underlying DBusMessageIter object.
bool init (Message &message)
 Initializes the iterator for the specified message.
void invalidate ()
 Invalidates the iterator.
bool is_valid () const
 True if this is a valid iterator.
 operator bool () const
 True if the iterator is valid and initialized, false otherwise.
bool append (bool v)
bool append (uint8_t v)
bool append (int16_t v)
bool append (uint16_t v)
bool append (int32_t v)
bool append (uint32_t v)
bool append (int64_t v)
bool append (uint64_t v)
bool append (double v)
bool append (const char *v)
bool append (const std::string &v)
bool append (const Signature &v)
bool append (const Path &v)
bool append (char v)
bool append (int8_t v)
bool append (float v)
template<typename T >
bool append (const std::vector< T > &v)
template<typename Key , typename Data >
bool append (const std::map< Key, Data > &dictionary)
template<typename T >
bool append (const Variant< T > &var)
template<typename T >
MessageAppendIteratoroperator<< (const T &v)
bool open_container (ContainerType t, const std::string &contained_signature)
bool close_container ()
MessageAppendIteratorsub_iterator ()

Protected Member Functions

template<typename T >
bool protected_append (const T &v)
bool protected_append (const bool &v)
bool protected_append (const std::string &v)
bool protected_append (const Signature &v)
bool protected_append (const Path &v)

Protected Attributes

Messagem_message
DBusMessageIter m_cobj
MessageAppendIteratorm_subiter

Detailed Description

Insertion iterator allow values to be appended to a message.

Author
Rick L Vinyard Jr rviny.nosp@m.ard@.nosp@m.cs.nm.nosp@m.su.e.nosp@m.du

Constructor & Destructor Documentation

DBus::MessageAppendIterator::MessageAppendIterator ( )

References m_cobj.

Referenced by open_container().

DBus::MessageAppendIterator::MessageAppendIterator ( Message message)

References init(), and m_cobj.

DBus::MessageAppendIterator::MessageAppendIterator ( DBusCxxPointer< Message message)

References init(), and m_cobj.

DBus::MessageAppendIterator::~MessageAppendIterator ( )

Member Function Documentation

bool DBus::MessageAppendIterator::append ( bool  v)

References protected_append().

Referenced by append(), and operator<<().

bool DBus::MessageAppendIterator::append ( uint8_t  v)

References protected_append().

bool DBus::MessageAppendIterator::append ( int16_t  v)

References protected_append().

bool DBus::MessageAppendIterator::append ( uint16_t  v)

References protected_append().

bool DBus::MessageAppendIterator::append ( int32_t  v)

References protected_append().

bool DBus::MessageAppendIterator::append ( uint32_t  v)

References protected_append().

bool DBus::MessageAppendIterator::append ( int64_t  v)

References protected_append().

bool DBus::MessageAppendIterator::append ( uint64_t  v)

References protected_append().

bool DBus::MessageAppendIterator::append ( double  v)

References protected_append().

bool DBus::MessageAppendIterator::append ( const char *  v)

References protected_append().

bool DBus::MessageAppendIterator::append ( const std::string &  v)

References protected_append().

bool DBus::MessageAppendIterator::append ( const Signature v)

References protected_append().

bool DBus::MessageAppendIterator::append ( const Path v)

References protected_append().

bool DBus::MessageAppendIterator::append ( char  v)

References protected_append().

bool DBus::MessageAppendIterator::append ( int8_t  v)

References protected_append().

bool DBus::MessageAppendIterator::append ( float  v)

References protected_append().

template<typename T >
bool DBus::MessageAppendIterator::append ( const std::vector< T > &  v)
inline
template<typename Key , typename Data >
bool DBus::MessageAppendIterator::append ( const std::map< Key, Data > &  dictionary)
inline
template<typename T >
bool DBus::MessageAppendIterator::append ( const Variant< T > &  var)
inline
bool DBus::MessageAppendIterator::close_container ( )

References cobj(), m_cobj, and m_subiter.

Referenced by append(), and open_container().

DBusMessageIter * DBus::MessageAppendIterator::cobj ( )

Returns a pointer to the underlying DBusMessageIter object.

References m_cobj.

Referenced by close_container(), and open_container().

bool DBus::MessageAppendIterator::init ( Message message)

Initializes the iterator for the specified message.

References DBus::Message::cobj(), m_cobj, m_message, m_subiter, and message().

Referenced by MessageAppendIterator().

void DBus::MessageAppendIterator::invalidate ( )

Invalidates the iterator.

References m_cobj, m_message, and m_subiter.

bool DBus::MessageAppendIterator::is_valid ( ) const

True if this is a valid iterator.

References DBus::Message::is_valid(), and m_message.

Referenced by protected_append().

const Message* DBus::MessageAppendIterator::message ( ) const

Returns a pointer to the message associated with this iterator or NULL if no message is associated.

Referenced by init().

bool DBus::MessageAppendIterator::open_container ( ContainerType  t,
const std::string &  contained_signature 
)
DBus::MessageAppendIterator::operator bool ( ) const

True if the iterator is valid and initialized, false otherwise.

template<typename T >
MessageAppendIterator& DBus::MessageAppendIterator::operator<< ( const T &  v)
inline

References append().

template<typename T >
bool DBus::MessageAppendIterator::protected_append ( const T &  v)
inlineprotected
bool DBus::MessageAppendIterator::protected_append ( const bool &  v)
protected
bool DBus::MessageAppendIterator::protected_append ( const std::string &  v)
protected

References protected_append().

bool DBus::MessageAppendIterator::protected_append ( const Signature v)
protected
bool DBus::MessageAppendIterator::protected_append ( const Path v)
protected
MessageAppendIterator * DBus::MessageAppendIterator::sub_iterator ( )

References m_subiter.

Member Data Documentation

DBusMessageIter DBus::MessageAppendIterator::m_cobj
protected
Message* DBus::MessageAppendIterator::m_message
protected
MessageAppendIterator* DBus::MessageAppendIterator::m_subiter
protected

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

Generated on Sat Sep 21 2013 17:22:40 for dbus-cxx by doxygen 1.8.1.2