Mark Slee | e9ce01c | 2007-05-16 02:29:53 +0000 | [diff] [blame] | 1 | // Copyright (c) 2006- Facebook |
2 | // Distributed under the Thrift Software License | ||||
3 | // | ||||
4 | // See accompanying file LICENSE or visit the Thrift site at: | ||||
5 | // http://developers.facebook.com/thrift/ | ||||
6 | |||||
Mark Slee | 74eea20 | 2007-02-05 21:47:03 +0000 | [diff] [blame] | 7 | #ifndef T_DOC_H |
8 | #define T_DOC_H | ||||
9 | |||||
10 | /** | ||||
Mark Slee | e9ce01c | 2007-05-16 02:29:53 +0000 | [diff] [blame] | 11 | * Documentation stubs |
Mark Slee | 74eea20 | 2007-02-05 21:47:03 +0000 | [diff] [blame] | 12 | * |
Mark Slee | 74eea20 | 2007-02-05 21:47:03 +0000 | [diff] [blame] | 13 | */ |
14 | class t_doc { | ||||
15 | |||||
Mark Slee | e9ce01c | 2007-05-16 02:29:53 +0000 | [diff] [blame] | 16 | public: |
David Reiss | c2532a9 | 2007-07-30 23:46:11 +0000 | [diff] [blame] | 17 | t_doc() : has_doc_(false) {} |
18 | |||||
Mark Slee | e9ce01c | 2007-05-16 02:29:53 +0000 | [diff] [blame] | 19 | void set_doc(const std::string& doc) { |
20 | doc_ = doc; | ||||
21 | has_doc_ = true; | ||||
22 | } | ||||
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 23 | |
Mark Slee | e9ce01c | 2007-05-16 02:29:53 +0000 | [diff] [blame] | 24 | const std::string& get_doc() const { |
25 | return doc_; | ||||
26 | } | ||||
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 27 | |
Mark Slee | e9ce01c | 2007-05-16 02:29:53 +0000 | [diff] [blame] | 28 | bool has_doc() { |
29 | return has_doc_; | ||||
30 | } | ||||
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 31 | |
Mark Slee | e9ce01c | 2007-05-16 02:29:53 +0000 | [diff] [blame] | 32 | private: |
33 | std::string doc_; | ||||
34 | bool has_doc_; | ||||
Mark Slee | 74eea20 | 2007-02-05 21:47:03 +0000 | [diff] [blame] | 35 | |
36 | }; | ||||
37 | |||||
38 | #endif |