subscribe-bookmark-resume
Including the basic AMPS library:
#include <amps/ampsplusplus.hpp>
Constructing the command:
AMPS::Command cmd(AMPS::Message::Command::Subscribe);
cmd.setTopic(topic);
// Set a comma-delimited list of subscription IDs to
// resume together.
cmd.setSubId(subIdList);
// All subscriptions to be resumed should be
// resumed together.
AMPS::Options opts;
opts.setResume();
// set other options to match subscription options.
cmd.setOptions(opts);
The command can now be used in execute or executeAsync.