4 int main(int argc, char* argv[])
10 std::cout << argv[0] << " fileName" << std::endl;
19 fileName += GDCM_DATA_ROOT;
20 fileName += "/test.acr";
23 gdcmFile *e2 = new gdcmFile( fileName.c_str() );
24 gdcmHeader *e1 = e2->GetHeader();
27 int level = atoi(argv[2]);
28 e1->SetPrintLevel(level);
33 std::cout << "\n\n" << std::endl;
34 std::string transferSyntaxName = e1->GetTransfertSyntaxName();
35 std::cout << " TransferSyntaxName= [" << transferSyntaxName << "]" << std::endl;
37 if ( transferSyntaxName != "Implicit VR - Little Endian"
38 && transferSyntaxName != "Explicit VR - Little Endian"
39 && transferSyntaxName != "Deflated Explicit VR - Little Endian"
40 && transferSyntaxName != "Explicit VR - Big Endian"
41 && transferSyntaxName != "Uncompressed ACR-NEMA" )
43 std::cout << std::endl << "==========================================="
46 std::cout << std::endl << "==========================================="
51 std::cout <<std::endl<<fileName<<" is Readable"<<std::endl;
53 std::cout <<std::endl<<fileName<<" is NOT Readable"<<std::endl;
54 std::cout<<std::flush;