Mercurial > hg > orthanc
comparison Plugins/Engine/OrthancPlugins.cpp @ 2120:4b02ec79728a
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 07 Nov 2016 11:19:19 +0100 |
parents | a657f7772e69 |
children | 2b1520efa282 |
comparison
equal
deleted
inserted
replaced
2119:e0517f25919e | 2120:4b02ec79728a |
---|---|
1561 s = writer.write(instance.GetJson()); | 1561 s = writer.write(instance.GetJson()); |
1562 } | 1562 } |
1563 else | 1563 else |
1564 { | 1564 { |
1565 Json::Value simplified; | 1565 Json::Value simplified; |
1566 Toolbox::SimplifyTags(simplified, instance.GetJson(), DicomToJsonFormat_Human); | 1566 ServerToolbox::SimplifyTags(simplified, instance.GetJson(), DicomToJsonFormat_Human); |
1567 s = writer.write(simplified); | 1567 s = writer.write(simplified); |
1568 } | 1568 } |
1569 | 1569 |
1570 *p.resultStringToFree = CopyString(s); | 1570 *p.resultStringToFree = CopyString(s); |
1571 return; | 1571 return; |
2782 LOG(ERROR) << "The service ReconstructMainDicomTags can only be invoked by custom database plugins"; | 2782 LOG(ERROR) << "The service ReconstructMainDicomTags can only be invoked by custom database plugins"; |
2783 throw OrthancException(ErrorCode_DatabasePlugin); | 2783 throw OrthancException(ErrorCode_DatabasePlugin); |
2784 } | 2784 } |
2785 | 2785 |
2786 IStorageArea& storage = *reinterpret_cast<IStorageArea*>(p.storageArea); | 2786 IStorageArea& storage = *reinterpret_cast<IStorageArea*>(p.storageArea); |
2787 Toolbox::ReconstructMainDicomTags(*pimpl_->database_, storage, Plugins::Convert(p.level)); | 2787 ServerToolbox::ReconstructMainDicomTags(*pimpl_->database_, storage, Plugins::Convert(p.level)); |
2788 | 2788 |
2789 return true; | 2789 return true; |
2790 } | 2790 } |
2791 | 2791 |
2792 default: | 2792 default: |