GDCM
2.2.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
Source
MediaStorageAndFileFormat
gdcmCoder.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: GDCM (Grassroots DICOM). A DICOM library
4
5
Copyright (c) 2006-2011 Mathieu Malaterre
6
All rights reserved.
7
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notice for more information.
12
13
=========================================================================*/
14
#ifndef GDCMCODER_H
15
#define GDCMCODER_H
16
17
#include "
gdcmTypes.h
"
18
#include "
gdcmDataElement.h
"
// FIXME
19
20
namespace
gdcm
21
{
22
23
class
TransferSyntax;
24
class
DataElement;
28
class
GDCM_EXPORT
Coder
29
{
30
public
:
31
virtual
~Coder
() {}
32
34
virtual
bool
CanCode(
TransferSyntax
const
&)
const
= 0;
35
36
// Note: in / out are reserved keyword in C#. Change to in_ / out_
37
39
virtual
bool
Code
(
DataElement
const
&in_,
DataElement
&out_) { (void)in_; (void)out_;
return
false
; }
40
protected
:
41
virtual
bool
InternalCode
(
const
char
*bv,
unsigned
long
len, std::ostream &os) { (void)bv;(void)os;(void)len;
return
false
; }
42
};
43
44
}
// end namespace gdcm
45
46
#endif //GDCMCODER_H
Generated on Wed Jun 13 2012 20:40:37 for GDCM by
1.8.1