FormIt C++ API v25.0.0 (2025.0.0)
Loading...
Searching...
No Matches
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 ()
 Constructor.
 
json to_json () const
 to_json() function.
 

Friends

struct MessageWithPayloadStruct
 

Constructor & Destructor Documentation

◆ MessagePayloadStruct() [1/2]

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

◆ MessagePayloadStruct() [2/2]

FormIt::MessagePayloadStruct::MessagePayloadStruct ( )
inline

Constructor.

Member Function Documentation

◆ to_json()

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

to_json() function.

Friends And Related Symbol Documentation

◆ MessageWithPayloadStruct

friend struct MessageWithPayloadStruct
friend

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