Mark Slee | 74eea20 | 2007-02-05 21:47:03 +0000 | [diff] [blame] | 1 | #ifndef T_DOC_H |
2 | #define T_DOC_H | ||||
3 | |||||
4 | /** | ||||
5 | * | ||||
6 | * | ||||
7 | * @author Charlie Cheever <charlie@facebook.com> | ||||
8 | */ | ||||
9 | class t_doc { | ||||
10 | |||||
11 | public: | ||||
12 | |||||
13 | void set_doc(const std::string& doc) { | ||||
14 | doc_ = doc; | ||||
15 | has_doc_ = true; | ||||
16 | } | ||||
17 | |||||
18 | const std::string& get_doc() const { | ||||
19 | return doc_; | ||||
20 | } | ||||
21 | |||||
22 | bool has_doc() { | ||||
23 | return has_doc_; | ||||
24 | } | ||||
25 | |||||
26 | private: | ||||
27 | std::string doc_; | ||||
28 | bool has_doc_; | ||||
29 | |||||
30 | }; | ||||
31 | |||||
32 | #endif |