SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
11 #ifndef smtk_operation_ReaderGroup_h
12 #define smtk_operation_ReaderGroup_h
14 #include "smtk/CoreExports.h"
16 #include "smtk/operation/Operation.h"
17 #include "smtk/operation/groups/ResourceIOGroup.h"
33 static constexpr
const char*
const type_name =
"reader";
35 ReaderGroup(std::shared_ptr<smtk::operation::Manager> manager)
42 bool registerOperation(
45 const std::string& fileItemName = m_defaultFileItemName);
49 template<
typename OperationType>
50 std::set<std::string> readsResources()
const;
53 std::shared_ptr<smtk::operation::Operation> readerForResource(
const std::string&)
const;
58 std::set<std::string> readsResources(
const Operation::Index&)
const;
61 template<
typename OperationType>
64 return readsResources(std::type_index(
typeid(OperationType)).hash_code());
69 #endif // smtk_operation_ReaderGroup_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
Definition: ReaderGroup.h:28
std::set< std::string > readsResources() const
Obtain the resource names associated with the operation identified by its class type.
Definition: ReaderGroup.h:62
smtk::common::Singleton< detail::Manager > Manager
The Manager is a singleton interface for registering available plugins to manager instances.
Definition: Manager.h:92
Definition: ResourceIOGroup.h:37
bool registerOperation(const std::string &, const std::string &fileItemName=m_defaultFileItemName)
Register an IO operation identified by it's unique name, the type of resource it handles and the file...
Definition: ResourceIOGroup.h:128