X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FexReadWriteFile.cxx;h=792ab82350fc8c01ffb84471b0decf1b9414c58c;hb=4695af60407895e5f0851ffcb9afdb138c9870f7;hp=c6d0bb2f52027bfe3b63a7cf100de761a7bec583;hpb=8c10737e97f1eff61304cfac871c54c3168f0cbc;p=gdcm.git diff --git a/Example/exReadWriteFile.cxx b/Example/exReadWriteFile.cxx index c6d0bb2f..792ab823 100644 --- a/Example/exReadWriteFile.cxx +++ b/Example/exReadWriteFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: exReadWriteFile.cxx,v $ Language: C++ - Date: $Date: 2005/02/09 14:00:41 $ - Version: $Revision: 1.2 $ + Date: $Date: 2005/07/06 15:49:31 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -23,6 +23,7 @@ #include "gdcmBinEntry.h" #include "gdcmSeqEntry.h" +#include // for exit int main(int argc, char *argv[]) { @@ -57,7 +58,7 @@ std::cout << " --- WARNING --- WARNING --- WARNING --- WARNING ---" <GetValue(); - group = valEntry->GetGroup(); - elem = valEntry->GetElement(); vr = valEntry->GetVR(); // user wants really to know everything about entry! vm = valEntry->GetVM(); name = valEntry->GetName(); - offset = valEntry->GetOffset(); std::cout //<< std::hex << group << "," << elem << valEntry->GetKey() @@ -216,6 +211,9 @@ std::cout << " --- WARNING --- WARNING --- WARNING --- WARNING ---" <GetEntryValue(0x0020,0x0052) << "]" << std::endl; + + // User wants to get info about the 'real world' vs image + // ------ User wants to load the pixels---------------------------------