X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FTestCopyDicom.cxx;h=2edc47f8597b8a04dc85164c64c009ea80af353e;hb=532e2ee2beaace36c3e8fb62d185b79c5c8f6e96;hp=f0f7c23388d3618ccecbdc3f9ba77658297a5df5;hpb=fc239ceba8ddb5fa780db670635559cab5d0d7bb;p=gdcm.git diff --git a/Example/TestCopyDicom.cxx b/Example/TestCopyDicom.cxx index f0f7c233..2edc47f8 100644 --- a/Example/TestCopyDicom.cxx +++ b/Example/TestCopyDicom.cxx @@ -6,6 +6,8 @@ #ifndef _WIN32 #include //for access, unlink +#else +#include //for _access #endif // return true if the file exists @@ -47,6 +49,8 @@ int main(int argc, char* argv[]) return 1; } +// don't modify identation in order to let this source xdiffable with ../Test + std::string filename = argv[1]; std::string output = argv[2]; @@ -69,7 +73,7 @@ int main(int argc, char* argv[]) TagDocEntryHT & Ht = original->GetHeader()->GetEntry(); size_t dataSize = original->GetImageDataSize(); - void *imageData = original->GetImageData(); + uint8_t* imageData = original->GetImageData(); //First of all copy the header field by field @@ -87,7 +91,7 @@ int main(int argc, char* argv[]) if ( gdcmBinEntry* b = dynamic_cast(d) ) { copy->GetHeader()->ReplaceOrCreateByNumber( - b->GetVoidArea(), + b->GetBinArea(), b->GetLength(), b->GetGroup(), b->GetElement(),