1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-08-30 21:51:12 +02:00
ModernCppStarter/include/greeter/greeter.h
Krishna Chaitanya 0f7ae8a3b7
Use m.css for generating doxygen docs (#49)
* Use m.css for generating doxygen docs

* pass CMake variables to Doxygen

* Setup config for Pages section

* show not explicitly documented objects

* update patch comment

* update comment on M_SHOW_UNDOCUMENTED

Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com>
2020-07-29 12:46:13 +02:00

31 lines
673 B
C++

#pragma once
#include <string>
namespace greeter {
/** Language codes to be used with the Greeter class */
enum class LanguageCode { EN, DE, ES, FR };
/**
* @brief A class for saying hello in multiple languages
*/
class Greeter {
std::string name;
public:
/**
* @brief Creates a new greeter
* @param name the name to greet
*/
Greeter(std::string name);
/**
* @brief Creates a localized string containing the greeting
* @param lang the language to greet in
* @return a string containing the greeting
*/
std::string greet(LanguageCode lang = LanguageCode::EN) const;
};
} // namespace greeter