X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FTestFromScratch.cxx;h=7bb6884737737cc38608783b20c1fca7734d31b3;hb=b99fc00d0f4df0ddcee535b792e7ea6826fd0397;hp=7f23231cae8c314a43dce4b4eb29d9e63b902a96;hpb=8670efa6c3fc51c51fe71c2f62af2297a19b07e2;p=gdcm.git diff --git a/Example/TestFromScratch.cxx b/Example/TestFromScratch.cxx index 7f23231c..7bb68847 100644 --- a/Example/TestFromScratch.cxx +++ b/Example/TestFromScratch.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestFromScratch.cxx,v $ Language: C++ - Date: $Date: 2005/02/01 10:34:59 $ - Version: $Revision: 1.15 $ + Date: $Date: 2005/02/02 10:06:32 $ + Version: $Revision: 1.17 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -35,7 +35,8 @@ int main(int argc, char *argv[]) return 1; } - // Doesn't seems to do anything: + + // Doesn't seem to do anything: gdcm::Debug::DebugOn(); // Doesn't link properly: @@ -48,16 +49,16 @@ int main(int argc, char *argv[]) int dataSize = f1->GetImageDataSize(); std::cout << "DataSize: " << dataSize << std::endl; // Since we know the image is 16bits: - uint8_t* imageData = f1->GetImageData(); + uint8_t *imageData = f1->GetImageData(); // Hopefully default to something gdcm::File *h2 = new gdcm::File(); // Copy of the header content - gdcm::DocEntry* d = h1->GetFirstEntry(); + gdcm::DocEntry *d = h1->GetFirstEntry(); while(d) { - if ( gdcm::ValEntry* v = dynamic_cast(d) ) + if ( gdcm::ValEntry *v = dynamic_cast(d) ) { // Do not bother with field from private dict if( v->GetName() != "gdcm::Unknown" )