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 | * |
13 | * @author Charlie Cheever <charlie@facebook.com> | ||||
14 | */ | ||||
15 | class t_doc { | ||||
16 | |||||
Mark Slee | e9ce01c | 2007-05-16 02:29:53 +0000 | [diff] [blame] | 17 | public: |
David Reiss | c2532a9 | 2007-07-30 23:46:11 +0000 | [diff] [blame] | 18 | t_doc() : has_doc_(false) {} |
19 | |||||
Mark Slee | e9ce01c | 2007-05-16 02:29:53 +0000 | [diff] [blame] | 20 | void set_doc(const std::string& doc) { |
21 | doc_ = doc; | ||||
22 | has_doc_ = true; | ||||
23 | } | ||||
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 24 | |
Mark Slee | e9ce01c | 2007-05-16 02:29:53 +0000 | [diff] [blame] | 25 | const std::string& get_doc() const { |
26 | return doc_; | ||||
27 | } | ||||
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 28 | |
Mark Slee | e9ce01c | 2007-05-16 02:29:53 +0000 | [diff] [blame] | 29 | bool has_doc() { |
30 | return has_doc_; | ||||
31 | } | ||||
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 32 | |
Mark Slee | e9ce01c | 2007-05-16 02:29:53 +0000 | [diff] [blame] | 33 | private: |
34 | std::string doc_; | ||||
35 | bool has_doc_; | ||||
Mark Slee | 74eea20 | 2007-02-05 21:47:03 +0000 | [diff] [blame] | 36 | |
37 | }; | ||||
38 | |||||
39 | #endif |