SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Comment.h
1 //=========================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //=========================================================================
10 #ifndef smtk_markup_Comment_h
11 #define smtk_markup_Comment_h
12 
13 #include "smtk/markup/Label.h"
14 
15 #include "smtk/string/Token.h"
16 
17 namespace smtk
18 {
19 namespace markup
20 {
21 
22 class SMTKMARKUP_EXPORT Comment : public smtk::markup::Label
23 {
24 public:
27 
28  template<typename... Args>
29  Comment(Args&&... args)
30  : smtk::markup::Label(std::forward<Args>(args)...)
31  {
32  }
33 
34  ~Comment() override;
35 
37  bool setData(const smtk::string::Token& data);
38  const smtk::string::Token& data() const;
39  smtk::string::Token& data();
40 
42  bool setMimetype(const smtk::string::Token& mimetype);
43  const smtk::string::Token& mimetype() const;
44  smtk::string::Token& mimetype();
45 
46 protected:
47  smtk::string::Token m_data;
48  smtk::string::Token m_mimetype;
49 };
50 
51 } // namespace markup
52 } // namespace smtk
53 
54 #endif // smtk_markup_Comment_h
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
smtk::markup::Comment
Definition: Comment.h:22
smtk::markup::Label
Definition: Label.h:20
smtkTypeMacro
#define smtkTypeMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:51
smtkSuperclassMacro
#define smtkSuperclassMacro(...)
Add a typedef to the superclass of this class.
Definition: SharedFromThis.h:87
smtk::string::Token
A string token identified by an integer.
Definition: Token.h:30