mstring  1.3.1
Generates C++ message functions and classes from localized message definitions
Settings.hh File Reference

The code-generation settings a $STREAMABLE / $STRING / $ERROR / $EXCEPTION / $THROW / $SYSLOG directive changes. More...

#include <string>
+ Include dependency graph for Settings.hh:
+ This graph shows which files directly or indirectly include this file:

Classes

struct  Concept
 Settings shared by every generated artefact. More...
 
struct  FunctionConcept
 Settings of an artefact that is a function ($STRING, $ERROR, $THROW, $SYSLOG). More...
 
struct  ErrorConcept
 $ERROR settings. More...
 
struct  LogConcept
 $SYSLOG settings. More...
 
struct  ClassConcept
 Settings of an artefact that is a class ($STREAMABLE, $EXCEPTION). More...
 
struct  MessageSettings
 All settings in effect for one message. More...
 

Enumerations

enum  membernaming { NONMEMBER , MEMBER_AS , MEMBER_OF }
 How a generated function is attached to a class. More...
 
enum  inheritance { PUBLIC_INHERITANCE , PROTECTED_INHERITANCE , PRIVATE_INHERITANCE }
 Access specifier of a generated class' base. More...
 

Detailed Description

The code-generation settings a $STREAMABLE / $STRING / $ERROR / $EXCEPTION / $THROW / $SYSLOG directive changes.

The parser keeps one current MessageSettings; every $MESSAGE takes a copy of it, so a directive affects the messages that follow it only.

Enumeration Type Documentation

◆ membernaming

How a generated function is attached to a class.

Enumerator
NONMEMBER 

A free function.

MEMBER_AS 

A member of the generated streamable class, named explicitly.

MEMBER_OF 

A member of a user class, declared by the user.

◆ inheritance

Access specifier of a generated class' base.

Enumerator
PUBLIC_INHERITANCE 
PROTECTED_INHERITANCE 
PRIVATE_INHERITANCE