OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
format_message.hpp File Reference

Format message representation and operations for the oxy core library. More...

Classes

struct  oxy::format_message_fn
 Functor to format messages based on message IDs. More...

Namespaces

namespace  oxy
 This root namespace contains the common types and operations for the OXY-API library.

Variables

constexpr format_message_fn oxy::format_message
 A constexpr instance of the format_message_functor function object for use in functional programming.

Detailed Description

Format message representation and operations for the oxy core library.

This header defines the format_message_fn structure, which provides a mechanism to format messages based on message IDs. It includes an operator() that takes a message ID and returns the corresponding formatted message as a string. The functor is designed to be used in a constexpr context for compile-time evaluation of message formatting.

@license MPL-2.0