Class message

Class Documentation

class ral::cache::message

A wrapper for a CacheData object with a message_id. Bundles together a String mesage_id with a CacheData object. Really not very necessary as we could just as easily store this in the CacheData object.

Public Functions

inline message(std::unique_ptr<CacheData> content, std::string message_id = "")
~message() = default
inline std::string get_message_id() const
inline CacheData &get_data() const
inline std::unique_ptr<CacheData> release_data()

Protected Attributes

std::unique_ptr<CacheData> data
const std::string message_id