Mercurial > hg > orthanc
diff Resources/EmbedResources.py @ 64:71c4a4abe90b orthanc-renaming
renaming of resources
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 16 Sep 2012 09:35:31 +0200 |
parents | 601ee9b7f2c7 |
children | 5133cfc8db86 |
line wrap: on
line diff
--- a/Resources/EmbedResources.py Sun Sep 16 09:33:55 2012 +0200 +++ b/Resources/EmbedResources.py Sun Sep 16 09:35:31 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); } } """)