blob: 6bdcc298c4b7366747bff81fce36273d8dab4518 [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 }
David Reiss0c90f6f2008-02-06 22:18:40 +000024
Mark Sleee9ce01c2007-05-16 02:29:53 +000025 const std::string& get_doc() const {
26 return doc_;
27 }
David Reiss0c90f6f2008-02-06 22:18:40 +000028
Mark Sleee9ce01c2007-05-16 02:29:53 +000029 bool has_doc() {
30 return has_doc_;
31 }
David Reiss0c90f6f2008-02-06 22:18:40 +000032
Mark Sleee9ce01c2007-05-16 02:29:53 +000033 private:
34 std::string doc_;
35 bool has_doc_;
Mark Slee74eea202007-02-05 21:47:03 +000036
37};
38
39#endif