GDCM  2.0.18
gdcmByteSwapFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program: GDCM (Grassroots DICOM). A DICOM library
00004 
00005   Copyright (c) 2006-2011 Mathieu Malaterre
00006   All rights reserved.
00007   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
00008 
00009      This software is distributed WITHOUT ANY WARRANTY; without even
00010      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00011      PURPOSE.  See the above copyright notice for more information.
00012 
00013 =========================================================================*/
00014 #ifndef GDCMBYTESWAPFILTER_H
00015 #define GDCMBYTESWAPFILTER_H
00016 
00017 #include "gdcmDataSet.h"
00018 
00019 namespace gdcm
00020 {
00021 
00027 class GDCM_EXPORT ByteSwapFilter
00028 {
00029 public:
00030   ByteSwapFilter(DataSet& ds):DS(ds),ByteSwapTag(false) {}
00031   ~ByteSwapFilter();
00032 
00033   bool ByteSwap();
00034   void SetByteSwapTag(bool b) { ByteSwapTag = b; }
00035 
00036 private:
00037   DataSet &DS;
00038   bool ByteSwapTag;
00039 };
00040 
00041 } // end namespace gdcm
00042 
00043 #endif //GDCMBYTESWAPFILTER_H

Generated on Tue Dec 6 2011 20:36:26 for GDCM by doxygen 1.7.5.1
SourceForge.net Logo