From 74eea207a02fb5e3a92c0afcadd0e7a0d6313ef5 Mon Sep 17 00:00:00 2001 From: Mark Slee Date: Mon, 5 Feb 2007 21:47:03 +0000 Subject: [PATCH] svn adding t_doc.h Summary: charlie you missed this one! Reviewed By: cheever git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664973 13f79535-47bb-0310-9956-ffa450edef68 --- compiler/cpp/src/parse/t_doc.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 compiler/cpp/src/parse/t_doc.h diff --git a/compiler/cpp/src/parse/t_doc.h b/compiler/cpp/src/parse/t_doc.h new file mode 100644 index 00000000..daa277f9 --- /dev/null +++ b/compiler/cpp/src/parse/t_doc.h @@ -0,0 +1,32 @@ +#ifndef T_DOC_H +#define T_DOC_H + +/** + * + * + * @author Charlie Cheever + */ +class t_doc { + + public: + + void set_doc(const std::string& doc) { + doc_ = doc; + has_doc_ = true; + } + + const std::string& get_doc() const { + return doc_; + } + + bool has_doc() { + return has_doc_; + } + + private: + std::string doc_; + bool has_doc_; + +}; + +#endif -- 2.17.1