mstring  1.3.1
Generates C++ message functions and classes from localized message definitions
TextElementsWriter Class Reference

One text element: stream << "literal";, or a macro stream << ( expression ); with its formats applied in a block that restores the stream's formatting afterwards. More...

#include <MText.hh>

+ Inheritance diagram for TextElementsWriter:
+ Collaboration diagram for TextElementsWriter:

Public Member Functions

 TextElementsWriter (std::ostream &stream, std::string &indent)
 
void operator() (const TextElement &text)
 
- Public Member Functions inherited from Writer
 Writer (std::ostream &stream, std::string &indent)
 
virtual ~Writer ()=default
 
void right () const
 Indent one level deeper. More...
 
void left () const
 Indent one level less. More...
 

Additional Inherited Members

- Protected Attributes inherited from Writer
std::ostream & _Stream
 
std::string & _Indent
 

Detailed Description

One text element: stream << "literal";, or a macro stream << ( expression ); with its formats applied in a block that restores the stream's formatting afterwards.

Constructor & Destructor Documentation

◆ TextElementsWriter()

TextElementsWriter::TextElementsWriter ( std::ostream &  stream,
std::string &  indent 
)

Member Function Documentation

◆ operator()()

void TextElementsWriter::operator() ( const TextElement &  text)

References WriteStringLiteral().

+ Here is the call graph for this function:

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