Line data Source code
1 : /* 2 : * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. 3 : * Copyright Contributors to the OpenSDN project 4 : */ 5 : 6 : #ifndef T_DOC_H 7 : #define T_DOC_H 8 : 9 : /** 10 : * Documentation stubs 11 : * 12 : */ 13 : class t_doc { 14 : 15 : public: 16 20 : t_doc() : has_doc_(false) {} 17 20 : virtual ~t_doc() {} 18 : 19 0 : void set_doc(const std::string& doc) { 20 0 : doc_ = doc; 21 0 : has_doc_ = true; 22 0 : } 23 : 24 0 : const std::string& get_doc() const { 25 0 : return doc_; 26 : } 27 : 28 0 : bool has_doc() { 29 0 : return has_doc_; 30 : } 31 : 32 : private: 33 : std::string doc_; 34 : bool has_doc_; 35 : 36 : }; 37 : 38 : #endif