blob: 6d5f959b3b86b7d2bf046e7e8a26a91fac6b60af [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 *
Mark Slee74eea202007-02-05 21:47:03 +000013 */
14class t_doc {
15
Mark Sleee9ce01c2007-05-16 02:29:53 +000016 public:
David Reissc2532a92007-07-30 23:46:11 +000017 t_doc() : has_doc_(false) {}
18
Mark Sleee9ce01c2007-05-16 02:29:53 +000019 void set_doc(const std::string& doc) {
20 doc_ = doc;
21 has_doc_ = true;
22 }
David Reiss0c90f6f2008-02-06 22:18:40 +000023
Mark Sleee9ce01c2007-05-16 02:29:53 +000024 const std::string& get_doc() const {
25 return doc_;
26 }
David Reiss0c90f6f2008-02-06 22:18:40 +000027
Mark Sleee9ce01c2007-05-16 02:29:53 +000028 bool has_doc() {
29 return has_doc_;
30 }
David Reiss0c90f6f2008-02-06 22:18:40 +000031
Mark Sleee9ce01c2007-05-16 02:29:53 +000032 private:
33 std::string doc_;
34 bool has_doc_;
Mark Slee74eea202007-02-05 21:47:03 +000035
36};
37
38#endif