Greeter  1.0
greeter::Greeter Class Reference

#include <greeter.h>

Public Member Functions

 Greeter (std::string name)
 
std::string greet (LanguageCode lang=LanguageCode::EN) const
 

Detailed Description

A class for saying hello in multiple languages

Constructor & Destructor Documentation

◆ Greeter()

Greeter::Greeter ( std::string  name)

Creates a new greeter

Parameters
namethe name to greet

Member Function Documentation

◆ greet()

std::string Greeter::greet ( LanguageCode  lang = LanguageCode::EN) const

Creates a localized string containing the greeting

Parameters
langthe language to greet in
Returns
a string containing the greeting

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