1 /*=========================================================================
4 Module: $RCSfile: gdcmTS.h,v $
6 Date: $Date: 2005/11/28 15:20:34 $
7 Version: $Revision: 1.25 $
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 =========================================================================*/
22 #include "gdcmCommandManager.h"
30 //-----------------------------------------------------------------------------
31 typedef std::string TSKey;
32 typedef std::string TSAtr;
33 typedef std::map<TSKey, TSAtr> TSHT; // Transfer Syntax Hash Table
36 //-----------------------------------------------------------------------------
38 * \brief Container for dicom 'Transfer Syntax' Hash Table
39 * \note This is a singleton
41 class GDCM_EXPORT TS : public CommandManager
47 ImplicitVRLittleEndian = 0,
48 ImplicitVRBigEndianPrivateGE,
49 ExplicitVRLittleEndian,
50 DeflatedExplicitVRLittleEndian,
53 JPEGExtendedProcess2_4,
54 JPEGExtendedProcess3_5,
55 JPEGSpectralSelectionProcess6_8,
56 JPEGFullProgressionProcess10_12,
57 JPEGLosslessProcess14,
58 JPEGLosslessProcess14_1,
69 /// \brief Constructs a gdcmTS with a RefCounter
70 static TS *New() {return new TS();}
72 virtual void Print(std::ostream &os = std::cout,
73 std::string const &indent = "" );
75 int Count(TSKey const &key);
76 TSAtr const &GetValue(TSKey const &key);
77 bool IsTransferSyntax(TSKey const &key);
78 bool IsRLELossless(TSKey const &key);
79 bool IsJPEGLossless(TSKey const&key);
80 bool IsJPEGLossy(TSKey const&key);
81 bool IsJPEG2000(TSKey const &key);
82 bool IsJPEG(TSKey const &key);
83 bool IsJPEGLS(TSKey const &key);
84 bool IsMPEG(TSKey const &key);
86 // This should be deprecated very soon
87 SpecialType GetSpecialTransferSyntax(TSKey const &key);
88 const char* GetSpecialTransferSyntax(SpecialType t);
97 } // end namespace gdcm
99 //-----------------------------------------------------------------------------