Mercurial > hg > orthanc
diff Resources/EmbedResources.py @ 49:e1a3ae0dadf3
renaming of resources
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 05 Sep 2012 15:38:08 +0200 |
parents | a56b6a8b89ba |
children | 601ee9b7f2c7 |
line wrap: on
line diff
--- a/Resources/EmbedResources.py Wed Sep 05 15:36:45 2012 +0200 +++ b/Resources/EmbedResources.py Wed Sep 05 15:38:08 2012 +0200 @@ -88,7 +88,7 @@ #include <string> -namespace Palantir +namespace Palanthir { namespace EmbeddedResources { @@ -172,12 +172,12 @@ cpp.write(""" #include "%s.h" -#include "%s/Core/PalantirException.h" +#include "%s/Core/PalanthirException.h" #include <stdint.h> #include <string.h> -namespace Palantir +namespace Palanthir { namespace EmbeddedResources { @@ -211,7 +211,7 @@ cpp.write(""" default: - throw PalantirException(ErrorCode_ParameterOutOfRange); + throw PalanthirException(ErrorCode_ParameterOutOfRange); } } @@ -228,7 +228,7 @@ cpp.write(""" default: - throw PalantirException(ErrorCode_ParameterOutOfRange); + throw PalanthirException(ErrorCode_ParameterOutOfRange); } } """) @@ -253,10 +253,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 PalantirException("Unknown path in a directory resource");\n\n') + cpp.write(' throw PalanthirException("Unknown path in a directory resource");\n\n') cpp.write(""" default: - throw PalantirException(ErrorCode_ParameterOutOfRange); + throw PalanthirException(ErrorCode_ParameterOutOfRange); } } @@ -273,10 +273,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 PalantirException("Unknown path in a directory resource");\n\n') + cpp.write(' throw PalanthirException("Unknown path in a directory resource");\n\n') cpp.write(""" default: - throw PalantirException(ErrorCode_ParameterOutOfRange); + throw PalanthirException(ErrorCode_ParameterOutOfRange); } } """)