comparison Plugins/Engine/PluginsEnumerations.cpp @ 3786:3801435e34a1 SylvainRouquette/fix-issue169-95b752c

integration Orthanc-1.6.0->SylvainRouquette
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 19 Mar 2020 11:48:30 +0100
parents d8371b4302ff
children a2e4edc7b9aa
comparison
equal deleted inserted replaced
3785:763533d6dd67 3786:3801435e34a1
1 /** 1 /**
2 * Orthanc - A Lightweight, RESTful DICOM Store 2 * Orthanc - A Lightweight, RESTful DICOM Store
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
4 * Department, University Hospital of Liege, Belgium 4 * Department, University Hospital of Liege, Belgium
5 * Copyright (C) 2017-2019 Osimis S.A., Belgium 5 * Copyright (C) 2017-2020 Osimis S.A., Belgium
6 * 6 *
7 * This program is free software: you can redistribute it and/or 7 * This program is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as 8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation, either version 3 of the 9 * published by the Free Software Foundation, either version 3 of the
10 * License, or (at your option) any later version. 10 * License, or (at your option) any later version.
547 547
548 default: 548 default:
549 throw OrthancException(ErrorCode_ParameterOutOfRange); 549 throw OrthancException(ErrorCode_ParameterOutOfRange);
550 } 550 }
551 } 551 }
552
553
554 StorageCommitmentFailureReason Convert(OrthancPluginStorageCommitmentFailureReason reason)
555 {
556 switch (reason)
557 {
558 case OrthancPluginStorageCommitmentFailureReason_Success:
559 return StorageCommitmentFailureReason_Success;
560
561 case OrthancPluginStorageCommitmentFailureReason_ProcessingFailure:
562 return StorageCommitmentFailureReason_ProcessingFailure;
563
564 case OrthancPluginStorageCommitmentFailureReason_NoSuchObjectInstance:
565 return StorageCommitmentFailureReason_NoSuchObjectInstance;
566
567 case OrthancPluginStorageCommitmentFailureReason_ResourceLimitation:
568 return StorageCommitmentFailureReason_ResourceLimitation;
569
570 case OrthancPluginStorageCommitmentFailureReason_ReferencedSOPClassNotSupported:
571 return StorageCommitmentFailureReason_ReferencedSOPClassNotSupported;
572
573 case OrthancPluginStorageCommitmentFailureReason_ClassInstanceConflict:
574 return StorageCommitmentFailureReason_ClassInstanceConflict;
575
576 case OrthancPluginStorageCommitmentFailureReason_DuplicateTransactionUID:
577 return StorageCommitmentFailureReason_DuplicateTransactionUID;
578
579 default:
580 throw OrthancException(ErrorCode_ParameterOutOfRange);
581 }
582 }
552 } 583 }
553 } 584 }