SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
An OperationFactory is a factory for a Project's Operations. More...
#include <OperationFactory.h>
Public Member Functions | |
OperationFactory (const std::weak_ptr< smtk::operation::Manager > &manager) | |
bool | registerOperation (const std::string &) |
Register an operation type according to its typename, type index or class type. | |
bool | registerOperation (const smtk::operation::Operation::Index &) |
template<typename OperationType > | |
bool | registerOperation () |
bool | registerOperations (const std::set< std::string > &) |
Register a set of operation types according to their typenames. | |
bool | unregisterOperation (const std::string &) |
Unregister an operation type according to its typename, type index or class type. | |
bool | unregisterOperation (const smtk::operation::Operation::Index &) |
template<typename OperationType > | |
bool | unregisterOperation () |
std::shared_ptr< smtk::operation::Operation > | create (const std::string &) |
Construct an operation identified by its typename,type index or class type. | |
std::shared_ptr< smtk::operation::Operation > | create (const smtk::operation::Operation::Index &) |
template<typename OperationType > | |
smtk::shared_ptr< OperationType > | create () |
const std::set< std::string > & | types () const |
Return a whitelist of type names for all available operations. More... | |
std::set< std::string > & | types () |
std::set< smtk::operation::Operation::Index > | availableOperations (const smtk::resource::ComponentPtr &) const |
Given a resource component, return a set of indices for operations that can accept the component as input. | |
std::shared_ptr< smtk::operation::Manager > | manager () const |
void | setManager (const std::weak_ptr< smtk::operation::Manager > &manager) |
An OperationFactory is a factory for a Project's Operations.
It holds a whitelist of Operations that are relevant to a given Project.
|
inline |
Return a whitelist of type names for all available operations.
If the list is empty, all operations registered to the associated operation manager are available.