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

Writers for the @ name type parameters of a message. More...

#include <iosfwd>
#include <string>
#include "MWriter.hh"
#include "Message.hh"
+ Include dependency graph for MParameter.hh:
+ This graph shows which files directly or indirectly include this file:

Classes

class  ParameterWriter
 type name in a parameter list. More...
 
class  ParameterToVariableWriter
 The data member of a generated class. More...
 
class  ParameterToGetterWriter
 The inline getter of a generated class. More...
 
class  ParameterVariableConstructorWriter
 member_name( name ) in a constructor's initializer list. More...
 
class  ParameterCallWriter
 The arguments of a call: the parameter names, optionally prefixed (member_ to pass a class' stored values). More...
 

Functions

std::string StorageType (const Parameter &parameter)
 The storage type of a parameter in a generated class. More...
 

Detailed Description

Writers for the @ name type parameters of a message.

A generated class stores a parameter by value — std::decay_t< type > — so an exception or streamable object built from std::string const & never refers to a temporary that is gone by the time it is printed.

Function Documentation

◆ StorageType()

std::string StorageType ( const Parameter &  parameter)

The storage type of a parameter in a generated class.

References Parameter::Type.

Referenced by ParameterToVariableWriter::operator()(), and ParameterToGetterWriter::operator()().

+ Here is the caller graph for this function: