SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
task
json
jsonGatherResources.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_GatherResources_h
11
#define smtk_task_json_GatherResources_h
12
13
#include "smtk/task/GatherResources.h"
14
15
#include <exception>
16
#include <string>
17
18
namespace
smtk
19
{
20
namespace
task
21
{
22
23
// NB: GatherResources is serialized/deserialized by methods in smtk/task/json/jsonTask.h
24
// that use the Configurator to swizzle/unswizzle pointers held by tasks.
25
// This file just adds to_json/from_json methods for member variables of GatherResources
26
// and declares a functor to fetch a GatherResources from the Configurator.
27
28
void
from_json(
const
nlohmann::json& j,
GatherResources::ResourceSet
& resourceSet);
29
void
to_json(nlohmann::json& j,
const
GatherResources::ResourceSet
& resourceSet);
30
31
namespace
json
32
{
33
34
class
Helper;
35
36
struct
SMTKCORE_EXPORT
jsonGatherResources
37
{
38
Task::Configuration
operator()(
const
Task
* task,
Helper
& helper)
const
;
39
};
40
41
}
// namespace json
42
}
// namespace task
43
}
// namespace smtk
44
45
#endif // smtk_task_json_GatherResources_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::resource::ResourceSet
std::set< smtk::resource::ResourcePtr > ResourceSet
Definition:
PublicPointerDefs.h:324
smtk::task::json::Helper
A helper for serializing task configurations.
Definition:
Helper.h:36
smtk::task::Task
Task is a base class for all SMTK tasks.
Definition:
Task.h:73
smtk::task::json::jsonGatherResources
Definition:
jsonGatherResources.h:36
Generated by
1.8.17