blob: bfa66effc9fc4176c49b9776126ee9bab2575e0f [file] [log] [blame]
Mark Sleee9ce01c2007-05-16 02:29:53 +00001// 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 Slee74eea202007-02-05 21:47:03 +00007#ifndef T_DOC_H
8#define T_DOC_H
9
10/**
Mark Sleee9ce01c2007-05-16 02:29:53 +000011 * Documentation stubs
Mark Slee74eea202007-02-05 21:47:03 +000012 *
13 * @author Charlie Cheever <charlie@facebook.com>
14 */
15class t_doc {
16
Mark Sleee9ce01c2007-05-16 02:29:53 +000017 public:
David Reissc2532a92007-07-30 23:46:11 +000018 t_doc() : has_doc_(false) {}
19
Mark Sleee9ce01c2007-05-16 02:29:53 +000020 void set_doc(const std::string& doc) {
21 doc_ = doc;
22 has_doc_ = true;
23 }
24
25 const std::string& get_doc() const {
26 return doc_;
27 }
28
29 bool has_doc() {
30 return has_doc_;
31 }
32
33 private:
34 std::string doc_;
35 bool has_doc_;
Mark Slee74eea202007-02-05 21:47:03 +000036
37};
38
39#endif