PIP 6.1.0
Platform-Independent Primitives
Loading...
Searching...
No Matches
PIMQTT::MessageMutable Class Reference

Mutable MQTT message. More...

#include <pimqtttypes.h>

Inheritance diagram for PIMQTT::MessageMutable:

Public Member Functions

MessageMutable & setTopic (PIString t)
 Sets the topic.
MessageMutable & setBody (PIByteArray b)
 Sets the message body.
MessageMutable & setPayload (PIByteArray b)
 Sets the message body.
const PIMap< PIString, PIString > & pathArguments () const
 Returns path arguments.
PIMap< PIString, PIString > & pathArguments ()
 Returns a modifiable map of path arguments.
const PIMap< int, PIString > & properties () const
 Returns map of properties.
PIMap< int, PIString > & properties ()
 Returns a modifiable map of properties.
MessageMutable & setDuplicate (bool yes)
 Returns true for .
MessageMutable & setQos (QoS qos)
 Returns QoS.
MessageMutable & setID (int id)
 Returns message ID.
Public Member Functions inherited from PIMQTT::MessageConst
bool isValid () const
 Returns if the topic is not empty.
const PIString & topic () const
 Returns the topic.
PIStringList topicList () const
 Returns the topic split into non-empty components.
const PIByteArray & body () const
 Returns the message body.
const PIByteArray & payload () const
 Returns the message body.
const PIMap< PIString, PIString > & pathArguments () const
 Returns extracted path arguments.
const PIMap< int, PIString > & properties () const
 Returns map of properties.
bool isDuplicate () const
 Returns true for .
QoS qos () const
 Returns QoS.
int ID () const
 Returns message ID.

Detailed Description

Mutable MQTT message.