FormIt C++ API  v23.0.0 (2023.0.0)
FormIt::MessagePayloadStruct Struct Reference

Description

This structure hides the implementation of the payload so it can't be used improperly.

The only class that can access the payload is the base class for messages with payloads.

#include <FormItMessaging.h>

Inheritance diagram for FormIt::MessagePayloadStruct:

Public Member Functions

template<typename T >
 MessagePayloadStruct (const T &x)
 
 MessagePayloadStruct ()
 
json to_json () const
 

Friends

struct MessageWithPayloadStruct
 

Constructor & Destructor Documentation

template<typename T >
FormIt::MessagePayloadStruct::MessagePayloadStruct ( const T &  x)
inline
FormIt::MessagePayloadStruct::MessagePayloadStruct ( )
inline

Member Function Documentation

json FormIt::MessagePayloadStruct::to_json ( ) const
inline

Friends And Related Function Documentation

friend struct MessageWithPayloadStruct
friend

The documentation for this struct was generated from the following file: