Controls how the prepended string of text before the actual log message will be displayed and how each flag/argument is formatted.
|
struct | Formatter |
| Virtual Base Struct that all formatter structs inherit from and implement. More...
|
|
class | Formatters |
| This class is the top-level formatting class that holds and controls each flag arguments specific formatting abilities. More...
|
|
◆ Message_Formatter()
serenity::msg_details::Message_Formatter::Message_Formatter |
( |
std::string_view |
pattern, |
|
|
Message_Info * |
details |
|
) |
| |
|
explicit |
The format pattern is set and internally stored by its individual flag arguments to iterate over when a message is logged. The Message_Info class is used to populate the arguments or references when storing and using the individual flag components
◆ StoreFormat()
void serenity::msg_details::Message_Formatter::StoreFormat |
( |
| ) |
|
SetPattern() calls this function internally. Parses the internal format pattern string stored from SetPattern() or from a constructor that took in a format pattern argument and for each flag found by the delimiter "%", will try to match the potential flag to the index of the valid flags array. If a match is found, initializes and stores the respective Formatter struct for that flag, otherwise, stores this value as well as any other char, by passing in the value to initialize and store a Format_Arg_Char struct instead
The documentation for this class was generated from the following files: