vega
|
A class which encapsulates the DICOM transfer syntaxes. More...
#include <vega/dicom/transfer_syntax.h>
Public Member Functions | |
TransferSyntax () | |
Blank constructor. More... | |
TransferSyntax (const std::string &name) | |
TransferSyntax (const UID &uid) | |
const std::string & | name () const |
const UID & | uid () const |
bool | is_explicit_vr () const |
Endian | endianness () const |
bool | is_deflate () const |
bool | operator== (const TransferSyntax &other) const |
bool | operator!= (const TransferSyntax &other) const |
Static Public Attributes | |
static const std::vector< std::pair< std::string, UID > > | NAME_UID_PAIRS |
List of mappings from transfer syntax string to corresponding UID. More... | |
static const TransferSyntax | IMPLICIT_VR_LITTLE_ENDIAN |
Implicit VR and little endian ("1.2.840.10008.1.2" ) More... | |
static const TransferSyntax | EXPLICIT_VR_LITTLE_ENDIAN |
Explicit VR and little endian ("1.2.840.10008.1.2.1" ) More... | |
static const TransferSyntax | DEFLATED_EXPLICIT_VR_LITTLE_ENDIAN |
Explicit VR and little endian ("1.2.840.10008.1.2.1.99" ) More... | |
static const TransferSyntax | EXPLICIT_VR_BIG_ENDIAN |
Explicit VR and big endian ("1.2.840.10008.1.2.2" ) More... | |
A class which encapsulates the DICOM transfer syntaxes.
The transfer syntax is determined by the file meta DICOM tag (0x0002,0x0010)
. For a list of available syntaxes, see here. A TransferSyntax can be initialized either by supplying a string representation of the transfer syntax (e.g. "Implicit VR Little Endian"
), or the UID directly (e.g. "1.2.840.10008.1.2"
).
vega::dicom::TransferSyntax::TransferSyntax | ( | ) |
Blank constructor.
|
explicit |
Builds transfer syntax from with the given name
.
Understood values include
"Implicit VR Little Endian"
,"Explicit VR Little Endian"
,"Deflated Explicit VR Little Endian"
,"Explicit VR Big Endian"
.
|
explicit |
Builds transfer syntax with an given uid
.
Endian vega::dicom::TransferSyntax::endianness | ( | ) | const |
bool vega::dicom::TransferSyntax::is_deflate | ( | ) | const |
true
if the transfer syntax specifies that deflation should occur (zlib compression). bool vega::dicom::TransferSyntax::is_explicit_vr | ( | ) | const |
true
if the transfer syntax uses explicit VR. const std::string& vega::dicom::TransferSyntax::name | ( | ) | const |
"Implicit VR Little Endian"
. bool vega::dicom::TransferSyntax::operator!= | ( | const TransferSyntax & | other | ) | const |
bool vega::dicom::TransferSyntax::operator== | ( | const TransferSyntax & | other | ) | const |
|
static |
Explicit VR and little endian ("1.2.840.10008.1.2.1.99"
)
|
static |
Explicit VR and big endian ("1.2.840.10008.1.2.2"
)
|
static |
Explicit VR and little endian ("1.2.840.10008.1.2.1"
)
|
static |
Implicit VR and little endian ("1.2.840.10008.1.2"
)
|
static |
List of mappings from transfer syntax string to corresponding UID.