Mercurial > hg > orthanc
diff Resources/EmbedResources.py @ 67:9193041c8018
merge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 16 Sep 2012 09:48:01 +0200 |
parents | 71c4a4abe90b |
children | 5133cfc8db86 |
line wrap: on
line diff
--- a/Resources/EmbedResources.py Tue Sep 11 12:19:42 2012 +0200 +++ b/Resources/EmbedResources.py Sun Sep 16 09:48:01 2012 +0200 @@ -88,7 +88,7 @@ #include <string> -namespace Palanthir +namespace Orthanc { namespace EmbeddedResources { @@ -179,12 +179,12 @@ cpp.write(""" #include "%s.h" -#include "%s/Core/PalanthirException.h" +#include "%s/Core/OrthancException.h" #include <stdint.h> #include <string.h> -namespace Palanthir +namespace Orthanc { namespace EmbeddedResources { @@ -218,7 +218,7 @@ cpp.write(""" default: - throw PalanthirException(ErrorCode_ParameterOutOfRange); + throw OrthancException(ErrorCode_ParameterOutOfRange); } } @@ -235,7 +235,7 @@ cpp.write(""" default: - throw PalanthirException(ErrorCode_ParameterOutOfRange); + throw OrthancException(ErrorCode_ParameterOutOfRange); } } """) @@ -260,10 +260,10 @@ for path in resources[name]['Files']: cpp.write(' if (!strcmp(path, "%s"))\n' % path) cpp.write(' return resource%dBuffer;\n' % resources[name]['Files'][path]['Index']) - cpp.write(' throw PalanthirException("Unknown path in a directory resource");\n\n') + cpp.write(' throw OrthancException("Unknown path in a directory resource");\n\n') cpp.write(""" default: - throw PalanthirException(ErrorCode_ParameterOutOfRange); + throw OrthancException(ErrorCode_ParameterOutOfRange); } } @@ -280,10 +280,10 @@ for path in resources[name]['Files']: cpp.write(' if (!strcmp(path, "%s"))\n' % path) cpp.write(' return resource%dSize;\n' % resources[name]['Files'][path]['Index']) - cpp.write(' throw PalanthirException("Unknown path in a directory resource");\n\n') + cpp.write(' throw OrthancException("Unknown path in a directory resource");\n\n') cpp.write(""" default: - throw PalanthirException(ErrorCode_ParameterOutOfRange); + throw OrthancException(ErrorCode_ParameterOutOfRange); } } """)