Skip to main content

The formatter Struct Template Reference

adds support for formatting MemberType More...

Declaration

struct fmt::formatter<MemberType> { ... }

Included Headers

#include <src/message.h>

Base struct

structformatter<T>

Public Member Functions Index

autoformat (MemberType mtype, format_context &ctx) const

Description

adds support for formatting MemberType

Definition at line 204 of file message.h.

Public Member Functions

format()

auto fmt::formatter< MemberType >::format (MemberType mtype, format_context & ctx)
inline

Definition at line 206 of file message.h.

206 auto format(MemberType mtype, format_context& ctx) const {
207 std::string result="Unknown";
208 switch (mtype)
209 {
210 case MemberType::Define: result="Define"; break;
211 case MemberType::Function: result="Function"; break;
212 case MemberType::Variable: result="Variable"; break;
213 case MemberType::Typedef: result="Typedef"; break;
214 case MemberType::Enumeration: result="Enumeration"; break;
215 case MemberType::EnumValue: result="EnumValue"; break;
216 case MemberType::Signal: result="Signal"; break;
217 case MemberType::Slot: result="Slot"; break;
218 case MemberType::Friend: result="Friend"; break;
219 case MemberType::DCOP: result="DCOP"; break;
220 case MemberType::Property: result="Property"; break;
221 case MemberType::Event: result="Event"; break;
222 case MemberType::Interface: result="Interface"; break;
223 case MemberType::Service: result="Service"; break;
224 case MemberType::Sequence: result="Sequence"; break;
225 case MemberType::Dictionary: result="Dictionary"; break;
226 }
227 return formatter<std::string>::format(result, ctx);
228 }

References DCOP, Define, Dictionary, Enumeration, EnumValue, Event, Friend, Function, Interface, Property, Sequence, Service, Signal, Slot, Typedef and Variable.


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


Generated via doxygen2docusaurus by Doxygen 1.14.0.