Paho C++  1.0
The Paho MQTT C++ Client Library
 All Classes Files Functions Variables Typedefs Friends
types.h File Reference

Basic types and type conversions for the Paho MQTT C++ library. More...

#include <string>
#include <vector>
#include <memory>
#include <chrono>

Go to the source code of this file.

Typedefs

using mqtt::byte = uint8_t
 A 'byte' is an 8-bit, unsigned int.
 
using mqtt::string = std::string
 An mqtt string is just a std::string.
 
using mqtt::binary = std::string
 A binary blob of data is, umm, just a string too!
 
using mqtt::string_ptr = std::shared_ptr< const string >
 Smart/shared pointer to a const string.
 
using mqtt::binary_ptr = std::shared_ptr< const binary >
 Smart/shared pointer to a const binary blob.
 

Functions

template<class Rep , class Period >
std::chrono::seconds mqtt::to_seconds (const std::chrono::duration< Rep, Period > &dur)
 Convert a chrono duration to seconds. More...
 
template<class Rep , class Period >
long mqtt::to_seconds_count (const std::chrono::duration< Rep, Period > &dur)
 Convert a chrono duration to a number of seconds. More...
 
template<class Rep , class Period >
std::chrono::milliseconds mqtt::to_milliseconds (const std::chrono::duration< Rep, Period > &dur)
 Convert a chrono duration to milliseconds. More...
 
template<class Rep , class Period >
long mqtt::to_milliseconds_count (const std::chrono::duration< Rep, Period > &dur)
 Convert a chrono duration to a number of milliseconds. More...
 
bool mqtt::to_bool (int n)
 Converts an into to a bool. More...
 
int mqtt::to_int (bool b)
 Converts the boolean into a C integer true/false value. More...
 

Detailed Description

Basic types and type conversions for the Paho MQTT C++ library.

Date
May 17, 2015
Author
Frank Pagliughi