SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
task
json
jsonConfigureOperation.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_ConfigureOperation_h
11
#define smtk_task_json_ConfigureOperation_h
12
13
#include "smtk/task/adaptor/ConfigureOperation.h"
14
15
#include "nlohmann/json.hpp"
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
// NB: ConfigureOperation is serialized/deserialized by methods in smtk/task/json/jsonAdaptor.h
30
// that use the Configurator to swizzle/unswizzle pointers held by tasks.
31
// This file just declares a functor to fetch a ConfigureOperation from the Configurator.
32
33
struct
SMTKCORE_EXPORT
jsonConfigureOperation
34
{
35
Adaptor::Configuration
operator()(
const
Adaptor
* task,
Helper
& helper)
const
;
36
};
37
38
}
// namespace json
39
}
// namespace task
40
}
// namespace smtk
41
42
#endif // smtk_task_json_ConfigureOperation_h
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::task::json::jsonConfigureOperation
Definition:
jsonConfigureOperation.h:33
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