XNetwork 1.7.5; VERSION ${PROJECT_VERSION}
Loading...
Searching...
No Matches
Public Member Functions | List of all members
xnetwork::Greeter Class Reference

A class that generates localized greeting messages. More...

#include <greeter.h>

Public Member Functions

 Greeter (std::string name)
 Construct a new Greeter object.
 
std::string greet (LanguageCode lang) const
 Generate a greeting message in the specified language.
 

Detailed Description

A class that generates localized greeting messages.

This class provides functionality to generate greeting messages in multiple languages based on the provided language code.

Constructor & Destructor Documentation

◆ Greeter()

xnetwork::Greeter::Greeter ( std::string  name)
inlineexplicit

Construct a new Greeter object.

Parameters
nameThe name to include in the greeting message

Member Function Documentation

◆ greet()

std::string xnetwork::Greeter::greet ( LanguageCode  lang) const
inline

Generate a greeting message in the specified language.

Parameters
langThe language code for the greeting
Returns
std::string A localized greeting message containing the name

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