|
mstring
1.3.1
Generates C++ message functions and classes from localized message definitions
|
A $MESSAGE block.
More...
#include <Message.hh>
Collaboration diagram for Message:Public Member Functions | |
| Message (std::string name, std::string defaultLanguage, const MessageSettings &settings) | |
| const LocaleMessage * | DefaultLocale () const |
The locale text used when no other language matches: the one in DefaultLanguage, else the first one. nullptr for a message without text. More... | |
| LocaleMessage & | Locale (const std::string &language, const std::string &encode) |
The locale of language / encode, created on first use. More... | |
| const Parameter * | FindParameter (const std::string &name) const |
Public Attributes | |
| std::string | Name |
| std::string | DefaultLanguage |
$LANGUAGE in effect when the message was declared. More... | |
| ParameterList | Parameters |
| LocaleMessageList | Locales |
| std::shared_ptr< const MessageSettings > | Settings |
| std::string | File |
Where $MESSAGE is, for diagnostics. More... | |
| unsigned long int | Line { 0 } |
| unsigned long int | Col { 0 } |
A $MESSAGE block.
| Message::Message | ( | std::string | name, |
| std::string | defaultLanguage, | ||
| const MessageSettings & | settings | ||
| ) |
| const LocaleMessage * Message::DefaultLocale | ( | ) | const |
The locale text used when no other language matches: the one in DefaultLanguage, else the first one. nullptr for a message without text.
References Locales.
Referenced by MessageCodeWriter::TextFunction().
Here is the caller graph for this function:| LocaleMessage & Message::Locale | ( | const std::string & | language, |
| const std::string & | encode | ||
| ) |
The locale of language / encode, created on first use.
References Locales.
Referenced by MStringParser::currentLocale().
Here is the caller graph for this function:| const Parameter * Message::FindParameter | ( | const std::string & | name | ) | const |
References Parameters.
Referenced by MStringParser::parameterLine().
Here is the caller graph for this function:| std::string Message::Name |
Referenced by MessageCodeWriter::CallBuilder(), MessageCodeWriter::CallStreamer(), CheckTranslations(), MessagePrototypeWriter::ExceptionClassName(), MStringParser::parameterLine(), MessagePrototypeWriter::Place(), MessageCodeWriter::StreamableClassBody(), MessagePrototypeWriter::StreamableClassName(), MessageCodeWriter::TextFunction(), and ValidateModule().
| std::string Message::DefaultLanguage |
$LANGUAGE in effect when the message was declared.
| ParameterList Message::Parameters |
Referenced by CheckTranslations(), MessageCodeWriter::ClassConstructor(), MessageCodeWriter::Definitions(), MessageCodeWriter::ExceptionClass(), MessageHeaderWriter::ExceptionClass(), FindParameter(), MStringParser::parameterLine(), MessagePrototypeWriter::Place(), MessageHeaderWriter::StreamableClass(), MessageCodeWriter::StreamableClassBody(), and MessageCodeWriter::TextFunction().
| LocaleMessageList Message::Locales |
Referenced by CheckTranslations(), DefaultLocale(), Locale(), and MessageCodeWriter::TextFunction().
| std::shared_ptr<const MessageSettings> Message::Settings |
Referenced by MessageCodeWriter::ClassConstructor(), MessagePrototypeWriter::Declarations(), MessageCodeWriter::Definitions(), MessageCodeWriter::ExceptionClass(), MessageHeaderWriter::ExceptionClass(), MessagePrototypeWriter::ExceptionClassName(), MessagePrototypeWriter::ExceptionLocaleConstructor(), NeedsBuilder(), NeedsStreamer(), MessageHeaderWriter::StreamableClass(), MessageCodeWriter::StreamableClassBody(), MessagePrototypeWriter::StreamableClassName(), and ValidateModule().
| std::string Message::File |
Where $MESSAGE is, for diagnostics.
Referenced by CheckTranslations().
| unsigned long int Message::Line { 0 } |
Referenced by CheckTranslations().
| unsigned long int Message::Col { 0 } |
Referenced by CheckTranslations().