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

adds support for formatting Protected More...

#include <src/message.h>

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

Public Member Functions

auto format (Protection prot, format_context &ctx) const
 

Detailed Description

adds support for formatting Protected

Definition at line 156 of file message.h.

Member Function Documentation

◆ format()

auto fmt::formatter< Protection >::format ( Protection prot,
format_context & ctx ) const
inline

Definition at line 158 of file message.h.

158 {
159 std::string result="Unknown";
160 switch (prot)
161 {
162 case Protection::Public: result="Public"; break;
163 case Protection::Protected: result="Protected"; break;
164 case Protection::Private: result="Private"; break;
165 case Protection::Package: result="Package"; break;
166 }
168 }

References Package, Private, Protected, and Public.


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