SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
markup
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
:
25
smtkTypeMacro
(
smtk::markup::Comment
);
26
smtkSuperclassMacro
(
smtk::markup::Label
);
27
28
template
<
typename
... Args>
29
Comment
(Args&&... args)
30
: Superclass(std::forward<Args>(args)...)
31
{
32
}
33
34
~
Comment
()
override
;
35
37
void
initialize(
const
nlohmann::json& data, smtk::resource::json::Helper& helper)
override
;
38
40
bool
setData(
const
smtk::string::Token
& data);
41
const
smtk::string::Token
& data()
const
;
42
smtk::string::Token
& data();
43
45
bool
setMimetype(
const
smtk::string::Token
& mimetype);
46
const
smtk::string::Token
& mimetype()
const
;
47
smtk::string::Token
& mimetype();
48
50
bool
assign(
const
smtk::graph::Component::ConstPtr& source,
smtk::resource::CopyOptions
& options)
51
override
;
52
53
protected
:
54
smtk::string::Token
m_data;
55
smtk::string::Token
m_mimetype;
56
};
57
58
}
// namespace markup
59
}
// namespace smtk
60
61
#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:128
smtk::resource::CopyOptions
Definition:
CopyOptions.h:31
smtkSuperclassMacro
#define smtkSuperclassMacro(...)
Add a typedef to the superclass of this class.
Definition:
SharedFromThis.h:147
smtk::string::Token
A string token identified by an integer.
Definition:
Token.h:29
Generated by
1.8.17