X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FTestFromScratch.cxx;h=7bb6884737737cc38608783b20c1fca7734d31b3;hb=b99fc00d0f4df0ddcee535b792e7ea6826fd0397;hp=d47f638d216bed4aa21288f9338a91507a96846f;hpb=ce8913daafe02955368fd2f07e777e86824467cc;p=gdcm.git diff --git a/Example/TestFromScratch.cxx b/Example/TestFromScratch.cxx index d47f638d..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/01/25 15:44:22 $ - Version: $Revision: 1.14 $ + 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,8 +35,9 @@ int main(int argc, char *argv[]) return 1; } - // Doesn't seems to do anything: - gdcm::Debug::SetDebugOn(); + + // Doesn't seem to do anything: + gdcm::Debug::DebugOn(); // Doesn't link properly: //gdcm::Debug::GetReference().SetDebug(1); @@ -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" )