CWorkflowTaskIOFactory

class ikomia.core.pycore.CWorkflowTaskIOFactory

Abstract class defining the core structure of the task I/O factory. The system extensibility is based on the factory design pattern. Each task input/output must implement a factory class derived from this class. Then the system is able to instantiate dynamically any I/O object (even user-defined).

Import

from ikomia.core import CWorkflowTaskIOFactory

Methods

__init__(arg1)

create(self, datatype)

Pure virtual method to create new task I/O instance with the given data type.

Details

__init__((object)arg1) None
create((CWorkflowTaskIOFactory)self, (IODataType)datatype) CWorkflowTaskIO :

Pure virtual method to create new task I/O instance with the given data type. Must be implemented.

Args:

data type (IODataType)

Returns:

CWorkflowTaskIO based object

create( (CWorkflowTaskIOFactory)arg1, (IODataType)arg2) -> None