Kristina Chodorow | f01b229 | 2015-03-02 16:08:28 +0000 | [diff] [blame] | 1 | #ifndef EXAMPLES_CPP_HELLO_LIB_H_ |
| 2 | #define EXAMPLES_CPP_HELLO_LIB_H_ |
Han-Wen Nienhuys | d08b27f | 2015-02-25 16:45:20 +0100 | [diff] [blame] | 3 | |
Kristina Chodorow | f01b229 | 2015-03-02 16:08:28 +0000 | [diff] [blame] | 4 | #include <string> |
| 5 | #include <memory> |
Han-Wen Nienhuys | d08b27f | 2015-02-25 16:45:20 +0100 | [diff] [blame] | 6 | |
Kristina Chodorow | f01b229 | 2015-03-02 16:08:28 +0000 | [diff] [blame] | 7 | namespace hello { |
| 8 | |
| 9 | class HelloLib { |
| 10 | public: |
Kristina Chodorow | f01b229 | 2015-03-02 16:08:28 +0000 | [diff] [blame] | 11 | 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_ |