SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
task
json
jsonTask.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_Task_h
11
#define smtk_task_json_Task_h
12
13
#include "nlohmann/json.hpp"
14
15
#include "smtk/task/Task.h"
16
17
#include <exception>
18
#include <string>
19
20
namespace
smtk
21
{
22
namespace
task
23
{
24
namespace
json
25
{
26
27
class
Helper;
28
29
struct
SMTKCORE_EXPORT
jsonTask
30
{
31
Task::Configuration
operator()(
const
Task
* task,
Helper
& helper)
const
;
32
};
33
34
}
// namespace json
35
36
SMTKCORE_EXPORT
void
to_json(nlohmann::json& j,
const
smtk::task::Task::Ptr& task);
37
38
SMTKCORE_EXPORT
void
from_json(
const
nlohmann::json& j, smtk::task::Task::Ptr& task);
39
40
}
// namespace task
41
}
// namespace smtk
42
43
#endif // smtk_task_json_Task_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::jsonTask
Definition:
jsonTask.h:29
smtk::task::Task
Task is a base class for all SMTK tasks.
Definition:
Task.h:73
Generated by
1.8.17