SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Write.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_attribute_operators_Write_h
11 #define smtk_attribute_operators_Write_h
12 
13 #include "smtk/operation/XMLOperation.h"
14 
15 namespace smtk
16 {
17 namespace attribute
18 {
19 
22 class SMTKCORE_EXPORT Write : public smtk::operation::XMLOperation
23 {
24 public:
29 
30 protected:
31  Result operateInternal() override;
32  const char* xmlDescription() const override;
33  void markModifiedResources(Result&) override;
34 };
35 
36 SMTKCORE_EXPORT bool write(
38  const std::shared_ptr<smtk::common::Managers>&);
39 } // namespace attribute
40 } // namespace smtk
41 
42 #endif // smtk_attribute_operators_Write_h
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
smtk::operation::XMLOperation
A specialization of smtk::operation::Operation for operations whose specifications are defined by an ...
Definition: XMLOperation.h:23
smtkCreateMacro
#define smtkCreateMacro(...)
Add static create() methods to a class.
Definition: SharedFromThis.h:113
smtkSharedFromThisMacro
#define smtkSharedFromThisMacro(...)
A macro to help with derived classes whose bases enable shared_from_this().
Definition: SharedFromThis.h:190
smtk::operation::Operation
Operation is a base class for all SMTK operations.
Definition: Operation.h:51
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::attribute::Write
Write an attribute resource.
Definition: Write.h:22
smtk::resource::ResourcePtr
smtk::shared_ptr< smtk::resource::Resource > ResourcePtr
Definition: PublicPointerDefs.h:295