blob: e1fe88d8c7c0951e6f06ab3af9f2542cd7b8eb2e [file] [log] [blame]
Kristina Chodorowf01b2292015-03-02 16:08:28 +00001#ifndef EXAMPLES_CPP_HELLO_LIB_H_
2#define EXAMPLES_CPP_HELLO_LIB_H_
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +01003
Kristina Chodorowf01b2292015-03-02 16:08:28 +00004#include <string>
5#include <memory>
Han-Wen Nienhuysd08b27f2015-02-25 16:45:20 +01006
Kristina Chodorowf01b2292015-03-02 16:08:28 +00007namespace hello {
8
9class HelloLib {
10 public:
Kristina Chodorowf01b2292015-03-02 16:08:28 +000011 explicit HelloLib(const std::string &greeting);
12
13 void greet(const std::string &thing);
14
15 private:
16 std::unique_ptr<const std::string> greeting_;
17};
18
19} // namespace hello
20
21#endif // EXAMPLES_CPP_HELLO_LIB_H_