Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

gdcmTS.h

Go to the documentation of this file.
00001 /*=========================================================================
00002                                                                                 
00003   Program:   gdcm
00004   Module:    $RCSfile: gdcmTS.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/01/23 10:12:34 $
00007   Version:   $Revision: 1.18 $
00008                                                                                 
00009   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
00010   l'Image). All rights reserved. See Doc/License.txt or
00011   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
00012                                                                                 
00013      This software is distributed WITHOUT ANY WARRANTY; without even
00014      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00015      PURPOSE.  See the above copyright notices for more information.
00016                                                                                 
00017 =========================================================================*/
00018 
00019 #ifndef GDCMTS_H
00020 #define GDCMTS_H
00021 
00022 #include "gdcmCommon.h"
00023 
00024 #include <map>
00025 #include <string>
00026 #include <iostream>
00027 
00028 namespace gdcm 
00029 {
00030 //-----------------------------------------------------------------------------
00031 typedef std::string TSKey;
00032 typedef std::string TSAtr;
00033 typedef std::map<TSKey, TSAtr> TSHT;    // Transfer Syntax Hash Table
00034 
00035 
00036 //-----------------------------------------------------------------------------
00041 class GDCM_EXPORT TS
00042 {
00043 public:
00044 enum SpecialType {
00045   ImplicitVRLittleEndian = 0,
00046   ImplicitVRLittleEndianDLXGE,
00047   ExplicitVRLittleEndian,
00048   DeflatedExplicitVRLittleEndian,
00049   ExplicitVRBigEndian,
00050   JPEGBaselineProcess1,
00051   JPEGExtendedProcess2_4,
00052   JPEGExtendedProcess3_5,
00053   JPEGSpectralSelectionProcess6_8,
00054   JPEGFullProgressionProcess10_12,
00055   JPEGLosslessProcess14,
00056   JPEGLosslessProcess14_1,
00057   JPEGLSLossless,
00058   JPEGLSNearLossless,
00059   JPEG2000Lossless,  
00060   JPEG2000,
00061   RLELossless,
00062   UnknownTS
00063 };
00064 
00065 public:
00066    TS();
00067    ~TS();
00068 
00069    void Print(std::ostream &os = std::cout);
00070 
00071    int Count(TSKey const &key);
00072    TSAtr const &GetValue(TSKey const &key);
00073    bool IsTransferSyntax(TSKey const &key);
00074    bool IsRLELossless(TSKey const &key);
00075    bool IsJPEGLossless(TSKey const&key);
00076    bool IsJPEGLossy(TSKey const&key);
00077    bool IsJPEG2000(TSKey const &key);
00078    bool IsJPEG(TSKey const &key);
00079    bool IsJPEGLS(TSKey const &key);
00080 
00081    // This should be deprecated very soon
00082    SpecialType GetSpecialTransferSyntax(TSKey const &key);
00083    const char* GetSpecialTransferSyntax(SpecialType t);
00084 
00085 private:
00086    TSHT TsMap;
00087 };
00088 } // end namespace gdcm
00089 
00090 //-----------------------------------------------------------------------------
00091 #endif

Generated on Thu Feb 10 22:17:33 2005 for gdcm by doxygen 1.3.6