SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
11 #ifndef smtk_operation_InternalGroup_h
12 #define smtk_operation_InternalGroup_h
14 #include "smtk/CoreExports.h"
16 #include "smtk/operation/Group.h"
17 #include "smtk/operation/Manager.h"
18 #include "smtk/operation/Operation.h"
40 static constexpr
const char*
const type_name =
"internal";
42 InternalGroup(std::shared_ptr<smtk::operation::Manager> manager)
43 :
Group(type_name, manager)
50 bool registerOperation(
const std::string&);
51 bool registerOperation(
const Operation::Index&);
52 template<
typename OperationType>
53 bool registerOperation();
56 template<
typename OperationType>
57 bool InternalGroup::registerOperation()
64 #endif // smtk_operation_InternalGroup_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
std::set< std::string > operationNames() const
Return a set of operation unique names that belong to this group.
Definition: Group.cxx:228
This class describes a stateless object associated with an operation manager that provides a unified ...
Definition: Group.h:49
std::string operationLabel(const Operation::Index &) const
Given an operation index, return the operation's label.
Definition: Group.cxx:270
bool contains() const
Check if an operation identified by its class type is in the group.
Definition: Group.h:187
A group for operations that are used internally, and should therefore not be displayed to the user as...
Definition: InternalGroup.h:30
std::string operationName(const Operation::Index &) const
Given an operation index, return the operation's name.
Definition: Group.cxx:252
bool registerOperation(const std::string &, std::set< std::string > values=std::set< std::string >())
Register an operation identified by its unique name and give it values.
Definition: Group.cxx:64
std::set< Operation::Index > operations() const
Return a set of operation indices that belong to this group.
Definition: Group.cxx:204
smtk::common::Singleton< detail::Manager > Manager
The Manager is a singleton interface for registering available plugins to manager instances.
Definition: Manager.h:92
bool unregisterOperation()
Unregister an operation identified by its class type.
Definition: Group.h:175