CreateProcessingBlock¶
-
virtual PProcessingBlock IController::CreateProcessingBlock(const std::string &name, PTemplate template_) = 0¶
Creates a processing block with the specified name, using the specified template.
- Parameters
name – Name of the processing block.
template – Template used to create the processing block.
- Returns
PProcessingBlock – Created processing block.
- Throws
CInvalidArgumentException– Invalid name specified.CInvalidArgumentException– Specified template is not of type ETemplateType::ProcessingBlock.CUnknownObjectException– Template is unknown, belongs to an other controller.CInvalidConfigException– Invalid template definition.CUnsupportedException– Processing blocks are not supported.CInvalidOperationException– Processing block can not be created while top-controller state is not “Config”.COutOfResourcesException– Maximum number of processing blocks exceeded.CCommunicationErrorException– Protocol error.CConnectionLostException– Connection to controller lost.CRebootedException– Controller has been rebooted since this object reference was retrieved, invalidating this reference.CIncompatibleException– Incompatible firmware version loaded.CObjectDestroyedException– Object is destroyed.