diff options
Diffstat (limited to 'examples/cpp/hello-lib.h')
-rw-r--r-- | examples/cpp/hello-lib.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/cpp/hello-lib.h b/examples/cpp/hello-lib.h new file mode 100644 index 0000000000..555d177936 --- /dev/null +++ b/examples/cpp/hello-lib.h @@ -0,0 +1,23 @@ +#ifndef EXAMPLES_CPP_HELLO_LIB_H_ +#define EXAMPLES_CPP_HELLO_LIB_H_ + +#include <string> +#include <memory> + +namespace hello { + +class HelloLib { + public: + HelloLib(); + + explicit HelloLib(const std::string &greeting); + + void greet(const std::string &thing); + + private: + std::unique_ptr<const std::string> greeting_; +}; + +} // namespace hello + +#endif // EXAMPLES_CPP_HELLO_LIB_H_ |