Mercurial > hg > orthanc
diff Core/Compression/ZlibCompressor.cpp @ 59:c996319e90bc orthanc-renaming
renaming in Core
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 16 Sep 2012 09:28:56 +0200 |
parents | a15e90e5d6fc |
children | 0ec5e2e327b1 |
line wrap: on
line diff
--- a/Core/Compression/ZlibCompressor.cpp Sun Sep 16 09:24:13 2012 +0200 +++ b/Core/Compression/ZlibCompressor.cpp Sun Sep 16 09:28:56 2012 +0200 @@ -1,5 +1,5 @@ /** - * Palanthir - A Lightweight, RESTful DICOM Store + * Orthanc - A Lightweight, RESTful DICOM Store * Copyright (C) 2012 Medical Physics Department, CHU of Liege, * Belgium * @@ -23,15 +23,15 @@ #include <stdio.h> #include <string.h> #include <zlib.h> -#include "../PalanthirException.h" +#include "../OrthancException.h" -namespace Palanthir +namespace Orthanc { void ZlibCompressor::SetCompressionLevel(uint8_t level) { if (level >= 10) { - throw PalanthirException("Zlib compression level must be between 0 (no compression) and 9 (highest compression"); + throw OrthancException("Zlib compression level must be between 0 (no compression) and 9 (highest compression"); } } @@ -70,10 +70,10 @@ switch (error) { case Z_MEM_ERROR: - throw PalanthirException(ErrorCode_NotEnoughMemory); + throw OrthancException(ErrorCode_NotEnoughMemory); default: - throw PalanthirException(ErrorCode_InternalError); + throw OrthancException(ErrorCode_InternalError); } } } @@ -91,7 +91,7 @@ if (compressedSize < sizeof(size_t)) { - throw PalanthirException("Zlib: The compressed buffer is ill-formed"); + throw OrthancException("Zlib: The compressed buffer is ill-formed"); } size_t uncompressedLength; @@ -112,13 +112,13 @@ switch (error) { case Z_DATA_ERROR: - throw PalanthirException("Zlib: Corrupted or incomplete compressed buffer"); + throw OrthancException("Zlib: Corrupted or incomplete compressed buffer"); case Z_MEM_ERROR: - throw PalanthirException(ErrorCode_NotEnoughMemory); + throw OrthancException(ErrorCode_NotEnoughMemory); default: - throw PalanthirException(ErrorCode_InternalError); + throw OrthancException(ErrorCode_InternalError); } } }