SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Go to the documentation of this file.
11 #ifndef smtk_task_Instances_h
12 #define smtk_task_Instances_h
14 #include "smtk/common/Instances.h"
15 #include "smtk/common/Managers.h"
18 #include "smtk/string/Token.h"
20 #include "smtk/task/Task.h"
46 std::shared_ptr<smtk::common::Managers>>,
51 std::shared_ptr<smtk::common::Managers>>>;
65 void operator=(
const Instances&) =
delete;
72 Task::Ptr createFromName(
const std::string& taskType);
73 Task::Ptr createFromName(
74 const std::string& taskType,
76 std::shared_ptr<smtk::common::Managers> managers);
77 Task::Ptr createFromName(
78 const std::string& taskType,
81 std::shared_ptr<smtk::common::Managers> managers);
85 std::set<smtk::task::Task::Ptr> findByName(
const std::string& name)
const;
86 SMTK_DEPRECATED_IN_24_01(
"Use findByName() instead.")
87 std::set<smtk::task::Task::Ptr> findByTitle(
const std::string& name)
const
89 return this->findByName(name);
102 #endif // smtk_task_Instances_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
nlohmann::json Configuration
Tasks are configured with arbitrary JSON objects, though this may change.
Definition: Task.h:89
std::set< Ptr > PassedDependencies
A task's dependencies are other tasks passed as shared pointers.
Definition: Task.h:87
@ Resuming
Notifications had been paused and now are not.
@ Created
A workflow has been created.
The Instances class is used to manage instances of objects which share an inherited base type (the Ba...
Definition: Instances.h:43
A task manager is responsible for creating new tasks.
Definition: Manager.h:68
Track smtk::task::Task objects with smtk::common::Instances.
Definition: Instances.h:57
WorkflowEvent
An enum for events in the lifecycle of a workflow (tree of tasks).
Definition: Instances.h:29
@ TaskRemoved
A task has been removed from the workflow.
smtk::common::Singleton< detail::Manager > Manager
The Manager is a singleton interface for registering available plugins to manager instances.
Definition: Manager.h:92
#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
@ Destroyed
The tasks in the workflow have become unmanaged or dependent on another workflow.
smtk::common::Instances< smtk::task::Adaptor, void, std::tuple< smtk::task::Adaptor::Configuration & >, std::tuple< smtk::task::Adaptor::Configuration &, smtk::task::Task *, smtk::task::Task * > > Instances
Track smtk::task::Adaptor objects with smtk::common::Instances.
Definition: Instances.h:39
#define smtkTypeMacroBase(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:131
@ TaskAdded
A task has been added to the workflow.