comparison Plugins/Engine/PluginsEnumerations.cpp @ 2808:37583cd183ed

primitives to create jobs from plugins
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Sep 2018 17:57:06 +0200
parents 89b789366596
children 3638de45a08c 4e43e67f8ecf
comparison
equal deleted inserted replaced
2807:6356e2ceb493 2808:37583cd183ed
551 551
552 default: 552 default:
553 throw OrthancException(ErrorCode_ParameterOutOfRange); 553 throw OrthancException(ErrorCode_ParameterOutOfRange);
554 } 554 }
555 } 555 }
556
557
558 OrthancPluginJobStepStatus Convert(JobStepCode step)
559 {
560 switch (step)
561 {
562 case JobStepCode_Success:
563 return OrthancPluginJobStepStatus_Success;
564
565 case JobStepCode_Failure:
566 return OrthancPluginJobStepStatus_Failure;
567
568 case JobStepCode_Continue:
569 return OrthancPluginJobStepStatus_Continue;
570
571 default:
572 throw OrthancException(ErrorCode_ParameterOutOfRange);
573 }
574 }
575
576 JobStepCode Convert(OrthancPluginJobStepStatus step)
577 {
578 switch (step)
579 {
580 case OrthancPluginJobStepStatus_Success:
581 return JobStepCode_Success;
582
583 case OrthancPluginJobStepStatus_Failure:
584 return JobStepCode_Failure;
585
586 case OrthancPluginJobStepStatus_Continue:
587 return JobStepCode_Continue;
588
589 default:
590 throw OrthancException(ErrorCode_ParameterOutOfRange);
591 }
592 }
556 } 593 }
557 } 594 }