1 /*=========================================================================
4 Module: $RCSfile: TestTS.cxx,v $
6 Date: $Date: 2005/01/11 14:39:03 $
7 Version: $Revision: 1.5 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
20 int TestTS(int , char *[])
23 // There should be ~150 entries
24 ts.Print( std::cout );
26 // Implicit VR Little Endian
27 std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2" ) << std::endl;
28 // Implicit VR Big Endian DLX (G.E Private)
29 std::cout << ts.IsTransferSyntax( "1.2.840.113619.5.2" ) << std::endl;
30 // Explicit VR Little Endian
31 std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.1" ) << std::endl;
32 // Deflated Explicit VR Little Endian
33 std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.1.99" ) << std::endl;
34 // Explicit VR Big Endian
35 std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.2" ) << std::endl;
36 // JPEG Baseline (Process 1)
37 std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.4.50" ) << std::endl;
38 // JPEG Extended (Process 2 & 4)
39 std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.4.51" ) << std::endl;
40 // JPEG Extended (Process 3 & 5)
41 std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.4.52" ) << std::endl;
42 // JPEG Spectral Selection, Non-Hierarchical (Process 6 & 8)
43 std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.4.53" ) << std::endl;
44 // JPEG Full Progression, Non-Hierarchical (Process 10 & 12)
45 std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.4.55" ) << std::endl;
46 // JPEG Lossless, Non-Hierarchical (Process 14)
47 std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.4.57" ) << std::endl;
48 // JPEG Lossless, Hierarchical, First-Order Prediction (Process 14, [Selection Value 1])
49 std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.4.70" ) << std::endl;
51 std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.4.90" ) << std::endl;
53 std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.4.91" ) << std::endl;
55 std::cout << ts.IsTransferSyntax( "1.2.840.10008.1.2.5" ) << std::endl;
57 std::cout << ts.IsTransferSyntax( "Unknown Transfer Syntax" ) << std::endl;
59 return ts.GetValue( "" ) != gdcm::GDCM_UNFOUND;