mstring  1.3.1
Generates C++ message functions and classes from localized message definitions
TextElement Struct Reference

A run of literal text, or a {$expression;format;...} macro. More...

#include <Message.hh>

+ Collaboration diagram for TextElement:

Public Member Functions

 TextElement (bool m=false)
 
 TextElement (std::string text, bool m)
 

Public Attributes

bool Macro
 
std::string Text
 The literal text (unescaped), or the macro expression. More...
 
FormatList Formats
 Macro only: stream formats applied before the expression. More...
 

Detailed Description

A run of literal text, or a {$expression;format;...} macro.

Constructor & Destructor Documentation

◆ TextElement() [1/2]

TextElement::TextElement ( bool  m = false)
explicit

◆ TextElement() [2/2]

TextElement::TextElement ( std::string  text,
bool  m 
)

Member Data Documentation

◆ Macro

bool TextElement::Macro

◆ Text

std::string TextElement::Text

The literal text (unescaped), or the macro expression.

Referenced by MStringParser::macro(), and MessageCodeWriter::TextFunction().

◆ Formats

FormatList TextElement::Formats

Macro only: stream formats applied before the expression.

Referenced by MStringParser::macro().


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