SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
task
json
jsonAdaptor.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_Adaptor_h
11
#define smtk_task_json_Adaptor_h
12
13
#include "nlohmann/json.hpp"
14
15
#include "smtk/task/Adaptor.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
jsonAdaptor
30
{
31
Adaptor::Configuration
operator()(
const
Adaptor
* adaptor,
Helper
& helper)
const
;
32
};
33
34
}
// namespace json
35
36
SMTKCORE_EXPORT
void
to_json(nlohmann::json& j,
const
smtk::task::Adaptor::Ptr& adaptor);
37
38
SMTKCORE_EXPORT
void
from_json(
const
nlohmann::json& j, smtk::task::Adaptor::Ptr& adaptor);
39
40
}
// namespace task
41
}
// namespace smtk
42
43
#endif // smtk_task_json_Adaptor_h
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::task::json::jsonAdaptor
Definition:
jsonAdaptor.h:29
smtk::task::Adaptor::Configuration
nlohmann::json Configuration
Task adaptors are configured using JSON.
Definition:
Adaptor.h:31
smtk::task::Adaptor
This object provides applications a way to configure a task using information adapted from its depend...
Definition:
Adaptor.h:23
smtk::task::json::Helper
A helper for serializing task configurations.
Definition:
Helper.h:36
Generated by
1.8.17