Doxygen
Loading...
Searching...
No Matches
fmt::formatter< Relationship > Struct Reference

adds support for formatting RelationShip More...

#include <src/message.h>

+ Inheritance diagram for fmt::formatter< Relationship >:
+ Collaboration diagram for fmt::formatter< Relationship >:

Public Member Functions

auto format (Relationship relation, format_context &ctx) const
 

Detailed Description

adds support for formatting RelationShip

Definition at line 220 of file message.h.

Member Function Documentation

◆ format()

auto fmt::formatter< Relationship >::format ( Relationship relation,
format_context & ctx ) const
inline

Definition at line 222 of file message.h.

222 {
223 std::string result="Unknown";
224 switch (relation)
225 {
226 case Relationship::Member: result="Member"; break;
227 case Relationship::Related: result="Related"; break;
228 case Relationship::Foreign: result="Foreign"; break;
229 }
231 }

References Foreign, Member, and Related.


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