Mercurial > hg > orthanc
diff Core/ImageFormats/ImageAccessor.cpp @ 1397:704de8c30ff5
modularization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 01 Jun 2015 11:50:58 +0200 |
parents | 6e7e5ed91c2d |
children | f967bdf8534e |
line wrap: on
line diff
--- a/Core/ImageFormats/ImageAccessor.cpp Mon Jun 01 11:15:55 2015 +0200 +++ b/Core/ImageFormats/ImageAccessor.cpp Mon Jun 01 11:50:58 2015 +0200 @@ -38,8 +38,12 @@ #include <stdint.h> #include <cassert> +#include <boost/lexical_cast.hpp> + +#if HAVE_GOOGLE_LOG == 1 #include <glog/logging.h> -#include <boost/lexical_cast.hpp> +#endif + namespace Orthanc { @@ -104,7 +108,10 @@ { if (readOnly_) { +#if HAVE_GOOGLE_LOG == 1 LOG(ERROR) << "Trying to write on a read-only image"; +#endif + throw OrthancException(ErrorCode_ReadOnly); } @@ -129,7 +136,10 @@ { if (readOnly_) { +#if HAVE_GOOGLE_LOG == 1 LOG(ERROR) << "Trying to write on a read-only image"; +#endif + throw OrthancException(ErrorCode_ReadOnly); }