SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
operation
groups
WriterGroup.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
11
#ifndef smtk_operation_WriterGroup_h
12
#define smtk_operation_WriterGroup_h
13
14
#include "smtk/CoreExports.h"
15
16
#include "smtk/operation/Operation.h"
17
#include "smtk/operation/groups/ResourceIOGroup.h"
18
19
#include <set>
20
#include <string>
21
22
namespace
smtk
23
{
24
namespace
operation
25
{
26
class
Manager
;
27
28
class
SMTKCORE_EXPORT
WriterGroup
:
public
ResourceIOGroup
29
{
30
public
:
31
using
ResourceIOGroup::registerOperation
;
32
33
static
constexpr
const
char
*
const
type_name =
"writer"
;
34
35
WriterGroup
(std::shared_ptr<smtk::operation::Manager> manager)
36
:
ResourceIOGroup
(type_name, manager)
37
{
38
}
39
42
bool
registerOperation(
43
const
std::string&,
44
const
std::string&,
45
const
std::string& fileItemName = m_defaultFileItemName);
46
47
bool
requiresFileItem()
const override
{
return
false
; }
48
49
// Obtain the operation associated with the resource name.
50
std::shared_ptr<smtk::operation::Operation> writerForResource(
const
std::string&)
const
;
51
};
52
}
// namespace operation
53
}
// namespace smtk
54
55
#endif // smtk_operation_WriterGroup_h
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::operation::WriterGroup
Definition:
WriterGroup.h:28
smtk::plugin::Manager
smtk::common::Singleton< detail::Manager > Manager
The Manager is a singleton interface for registering available plugins to manager instances.
Definition:
Manager.h:92
smtk::operation::ResourceIOGroup
Definition:
ResourceIOGroup.h:37
smtk::operation::ResourceIOGroup::registerOperation
bool registerOperation(const std::string &, const std::string &fileItemName=m_defaultFileItemName)
Register an IO operation identified by it's unique name, the type of resource it handles and the file...
Definition:
ResourceIOGroup.h:128
Generated by
1.8.17