SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
11 #ifndef smtk_task_Adaptor_h
12 #define smtk_task_Adaptor_h
14 #include "smtk/task/Task.h"
42 std::string name()
const override;
51 virtual bool updateDownstreamTask(
State upstreamPrev,
State upstreamNext) = 0;
59 void configureId(
const Configuration& config);
62 Task* m_from{
nullptr };
63 Task* m_to{
nullptr };
64 smtk::task::Task::Observers::Key m_observer;
69 #endif // smtk_task_Adaptor_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
Task * to() const
The task to which this adaptor applies configuration parameters.
Definition: Adaptor.h:56
nlohmann::json Configuration
Task adaptors are configured using JSON.
Definition: Adaptor.h:31
State
The set of states that a task may take on.
Definition: State.h:29
This object provides applications a way to configure a task using information adapted from its depend...
Definition: Adaptor.h:23
#define smtkSharedFromThisMacro(...)
A macro to help with derived classes whose bases enable shared_from_this().
Definition: SharedFromThis.h:250
#define smtkTypeMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:128
Task * from() const
The task this adaptor uses to fetch configuration parameters.
Definition: Adaptor.h:54
const common::UUID & id() const override
Return a unique identifier for the object which will be persistent across sessions.
Definition: Adaptor.h:43
#define smtkSuperclassMacro(...)
Add a typedef to the superclass of this class.
Definition: SharedFromThis.h:147
Task is a base class for all SMTK tasks.
Definition: Task.h:73
Component is the base class for records stored in an smtk::resource::Resource.
Definition: Component.h:43
An abstract base class for SMTK resources and their components.
Definition: PersistentObject.h:39
smtk::shared_ptr< smtk::resource::Resource > ResourcePtr
Definition: PublicPointerDefs.h:302