Greeter
1.0
greeter.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
namespace
greeter
{
6
8
enum class
LanguageCode
{
EN
,
DE
,
ES
,
FR
};
9
13
class
Greeter
{
14
std::string name;
15
16
public
:
21
Greeter
(std::string name);
22
28
std::string
greet
(
LanguageCode
lang =
LanguageCode::EN
)
const
;
29
};
30
31
}
// namespace greeter
greeter::LanguageCode::EN
@ EN
greeter::Greeter::greet
std::string greet(LanguageCode lang=LanguageCode::EN) const
Definition:
greeter.cpp:7
greeter::LanguageCode::DE
@ DE
greeter::LanguageCode
LanguageCode
Definition:
greeter.h:8
greeter::Greeter
Definition:
greeter.h:13
greeter::LanguageCode::FR
@ FR
greeter::Greeter::Greeter
Greeter(std::string name)
Definition:
greeter.cpp:5
greeter
Definition:
greeter.h:5
greeter::LanguageCode::ES
@ ES
include
greeter.h
Generated by
1.8.18