Mercurial > hg > orthanc
diff Core/DicomParsing/ParsedDicomFile.h @ 2394:75c779ca948c
fix compilation without Web server
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Aug 2017 16:23:10 +0200 |
parents | 7284093111b0 |
children | e4045b3c9772 |
line wrap: on
line diff
--- a/Core/DicomParsing/ParsedDicomFile.h Wed Aug 30 13:27:05 2017 +0200 +++ b/Core/DicomParsing/ParsedDicomFile.h Wed Aug 30 16:23:10 2017 +0200 @@ -33,12 +33,6 @@ #pragma once -#include "../DicomFormat/DicomInstanceHasher.h" -#include "../Images/ImageAccessor.h" -#include "../IDynamicObject.h" -#include "../RestApi/RestApiOutput.h" -#include "../Toolbox.h" - #if !defined(ORTHANC_ENABLE_JPEG) # error Macro ORTHANC_ENABLE_JPEG must be defined to use this file #endif @@ -47,6 +41,24 @@ # error Macro ORTHANC_ENABLE_PNG must be defined to use this file #endif +#if !defined(ORTHANC_ENABLE_CIVETWEB) +# error Macro ORTHANC_ENABLE_CIVETWEB must be defined to use this file +#endif + +#if !defined(ORTHANC_ENABLE_MONGOOSE) +# error Macro ORTHANC_ENABLE_MONGOOSE must be defined to use this file +#endif + +#include "../DicomFormat/DicomInstanceHasher.h" +#include "../Images/ImageAccessor.h" +#include "../IDynamicObject.h" +#include "../Toolbox.h" + +#if ORTHANC_ENABLE_CIVETWEB == 1 || ORTHANC_ENABLE_MONGOOSE == 1 +# include "../RestApi/RestApiOutput.h" +#endif + + class DcmDataset; class DcmFileFormat; @@ -96,10 +108,12 @@ ParsedDicomFile* Clone(); +#if ORTHANC_ENABLE_CIVETWEB == 1 || ORTHANC_ENABLE_MONGOOSE == 1 void SendPathValue(RestApiOutput& output, const UriComponents& uri); void Answer(RestApiOutput& output); +#endif void Remove(const DicomTag& tag);