SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
task
json
jsonGroup.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_task_json_Group_h
11
#define smtk_task_json_Group_h
12
13
#include "smtk/task/Task.h"
14
15
#include <exception>
16
#include <string>
17
18
namespace
smtk
19
{
20
namespace
task
21
{
22
namespace
json
23
{
24
25
class
Helper;
26
27
// NB: Group is serialized/deserialized by methods in smtk/task/json/jsonTask.h
28
// that use the Configurator to swizzle/unswizzle pointers held by tasks.
29
// This file just declares a functor to fetch a Group from the Configurator.
30
31
struct
SMTKCORE_EXPORT
jsonGroup
32
{
33
Task::Configuration
operator()(
const
Task
* task,
Helper
& helper)
const
;
34
};
35
36
}
// namespace json
37
}
// namespace task
38
}
// namespace smtk
39
40
#endif // smtk_task_json_Group_h
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::task::Task::Configuration
nlohmann::json Configuration
Tasks are configured with arbitrary JSON objects, though this may change.
Definition:
Task.h:89
smtk::task::json::Helper
A helper for serializing task configurations.
Definition:
Helper.h:36
smtk::task::json::jsonGroup
Definition:
jsonGroup.h:31
smtk::task::Task
Task is a base class for all SMTK tasks.
Definition:
Task.h:73
Generated by
1.8.17