SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_task_Gallery_h
11 #define smtk_task_Gallery_h
13 #include "smtk/CoreExports.h"
15 #include "smtk/SystemConfig.h"
17 #include "smtk/task/Worklet.h"
47 bool add(
const Worklet::Ptr& worklet,
bool makeUnique =
false);
53 bool remove(
const Worklet::Ptr& worklet);
57 Worklet::Ptr find(
const std::string& name)
const;
61 const std::unordered_map<smtk::string::Token, Worklet::Ptr>&
worklets()
const
71 bool rename(
const Worklet::Ptr& worklet,
const std::string& newName);
79 std::string createUniqueName(
const std::string& name)
const;
87 std::unordered_map<smtk::string::Token, Worklet::Ptr> m_worklets;
88 std::string m_uniqueNameSeparator =
"-";
94 #endif // smtk_task_Gallery_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
void setUniqueNameSeparator(const std::string &newSep)
Set the unique name separator for the gallery.
Definition: Gallery.h:83
Gallery represents a map of tasks worklets.
Definition: Gallery.h:34
A task manager is responsible for creating new tasks.
Definition: Manager.h:68
smtk::common::Singleton< detail::Manager > Manager
The Manager is a singleton interface for registering available plugins to manager instances.
Definition: Manager.h:92
Macros for dealing with shared-pointer classes.
const std::unordered_map< smtk::string::Token, Worklet::Ptr > & worklets() const
Returns a constant map of all of the worklets in the gallery.
Definition: Gallery.h:61