vega
|
A useful wrapper class over the more standard DataElement. More...
#include <vega/dicom/element.h>
Public Member Functions | |
Element () | |
Element (const Tag &tag) | |
Element (const std::shared_ptr< DataElement > &data_element) | |
std::shared_ptr< typename T::manipulator_type > | manipulator () |
const Tag & | tag () const |
Tag & | tag () |
const VR & | vr () const |
VR & | vr () |
A useful wrapper class over the more standard DataElement.
This is a template class, where the possible types are defined in vega/include/dictionary_data.h. This means that instead of needing to supply specific tags or VR, you can create a new element simply like
and this element will already have the correct Tag, VR, and will have the correct manipulator of vega::PN_Manipulator built in.
vega::dicom::Element< T >::Element | ( | ) |
|
explicit |
|
explicit |
Builds a new Element that wraps the given data_element
. Will raise an error if the given type T's Tag or VR does not agree with the DataElement.
std::shared_ptr< typename T::manipulator_type > vega::dicom::Element< T >::manipulator | ( | ) |
const Tag & vega::dicom::Element< T >::tag | ( | ) | const |
Tag & vega::dicom::Element< T >::tag | ( | ) |
const VR & vega::dicom::Element< T >::vr | ( | ) | const |
VR & vega::dicom::Element< T >::vr | ( | ) |