gdcmCoder.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program: GDCM (Grassroots DICOM). A DICOM library
00004   Module:  $URL$
00005 
00006   Copyright (c) 2006-2009 Mathieu Malaterre
00007   All rights reserved.
00008   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 #ifndef __gdcmCoder_h
00016 #define __gdcmCoder_h
00017 
00018 #include "gdcmTypes.h"
00019 #include "gdcmDataElement.h" // FIXME
00020 
00021 namespace gdcm
00022 {
00023 
00024 class TransferSyntax;
00025 class DataElement;
00029 class GDCM_EXPORT Coder
00030 {
00031 public:
00032   virtual ~Coder() {}
00033 
00035   virtual bool CanCode(TransferSyntax const &) const = 0;
00036 
00038   virtual bool Code(DataElement const &in, DataElement &out) { (void)in; (void)out; return false; }
00039 protected:
00040   virtual bool InternalCode(const char *bv, unsigned long len, std::ostream &os) { (void)bv;(void)os;return false; } 
00041 };
00042 
00043 } // end namespace gdcm
00044 
00045 #endif //__gdcmCoder_h

Generated on Sun Mar 7 03:17:20 2010 for GDCM by doxygen 1.6.3
SourceForge.net Logo