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

#include <Module.hh>

+ Collaboration diagram for Module:

Public Member Functions

Message * FindMessage (const std::string &name)
 

Public Attributes

std::string Name { "NONAME" }
 $MODULE name, or -m. More...
 
std::optional< std::string > SourceExtension { "cpp" }
 Empty optional: NOSOURCE. More...
 
std::optional< std::string > HeaderExtension { "hh" }
 Empty optional: NOHEADER. More...
 
bool Inline { false }
 INLINE: definitions in the header. More...
 
std::string Export
 $EXPORT MACRO: visibility macro. More...
 
std::vector< std::string > Namespaces
 $NAMESPACE a::b → { "a", "b" }. More...
 
std::vector< std::string > Includes
 "file", <file> or a macro name. More...
 
std::vector< std::string > Usings
 $USING entities. More...
 
MessageList Messages
 

Member Function Documentation

◆ FindMessage()

Message * Module::FindMessage ( const std::string &  name)
inline

References Messages.

Referenced by MStringParser::messageDirective().

+ Here is the caller graph for this function:

Member Data Documentation

◆ Name

std::string Module::Name { "NONAME" }

◆ SourceExtension

std::optional<std::string> Module::SourceExtension { "cpp" }

Empty optional: NOSOURCE.

Referenced by MStringParser::moduleDirective(), and SourceFileName().

◆ HeaderExtension

std::optional<std::string> Module::HeaderExtension { "hh" }

Empty optional: NOHEADER.

Referenced by HeaderFileName(), MStringParser::moduleDirective(), and ValidateModule().

◆ Inline

bool Module::Inline { false }

INLINE: definitions in the header.

Referenced by MStringParser::moduleDirective(), ValidateModule(), WriteCppInterface(), and WriteDefinitions().

◆ Export

std::string Module::Export

$EXPORT MACRO: visibility macro.

Referenced by MStringParser::directive(), WriteCppImplementation(), and WriteCppInterface().

◆ Namespaces

std::vector<std::string> Module::Namespaces

$NAMESPACE a::b → { "a", "b" }.

Referenced by MStringParser::namespaceDirective(), and WriteDefinitions().

◆ Includes

std::vector<std::string> Module::Includes

"file", <file> or a macro name.

Referenced by MStringParser::includeDirective().

◆ Usings

std::vector<std::string> Module::Usings

$USING entities.

Referenced by MStringParser::usingDirective().

◆ Messages


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