Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef GDCMCODER_H
00016 #define GDCMCODER_H
00017
00018 #include "gdcmTypes.h"
00019 #include "gdcmDataElement.h"
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
00037
00038
00040 virtual bool Code(DataElement const &in_, DataElement &out_) { (void)in_; (void)out_; return false; }
00041 protected:
00042 virtual bool InternalCode(const char *bv, unsigned long len, std::ostream &os) { (void)bv;(void)os;(void)len;return false; }
00043 };
00044
00045 }
00046
00047 #endif //GDCMCODER_H