|
odil
|
Element of a DICOM data set. More...
#include <Element.h>
Public Member Functions | |
| Element (Value const &value=Value(), VR const &vr=VR::INVALID) | |
| Constructor. | |
| Element (Value::Integers const &value, VR const &vr=VR::INVALID) | |
| Constructor. | |
| Element (Value::Reals const &value, VR const &vr=VR::INVALID) | |
| Constructor. | |
| Element (Value::Strings const &value, VR const &vr=VR::INVALID) | |
| Constructor. | |
| Element (Value::DataSets const &value, VR const &vr=VR::INVALID) | |
| Constructor. | |
| Element (Value::Binary const &value, VR const &vr=VR::INVALID) | |
| Constructor. | |
| Element (std::initializer_list< int > const &value, VR const &vr=VR::INVALID) | |
| Constructor. | |
| Element (std::initializer_list< Value::Integer > const &value, VR const &vr=VR::INVALID) | |
| Constructor. | |
| Element (std::initializer_list< Value::Real > const &value, VR const &vr=VR::INVALID) | |
| Constructor. | |
| Element (std::initializer_list< Value::String > const &value, VR const &vr=VR::INVALID) | |
| Constructor. | |
| Element (std::initializer_list< DataSet > const &value, VR const &vr=VR::INVALID) | |
| Constructor. | |
| bool | empty () const |
| Test whether the element is empty. | |
| std::size_t | size () const |
| Return the number of items in the value. | |
| Value const & | get_value () const |
| bool | is_int () const |
| Test whether the value contains integers. | |
| Value::Integers const & | as_int () const |
| Return the integers contained in the element. More... | |
| Value::Integers & | as_int () |
| Return the integers contained in the element. More... | |
| bool | is_real () const |
| Test whether the value contains reals. | |
| Value::Reals const & | as_real () const |
| Return the reals contained in the element. More... | |
| Value::Reals & | as_real () |
| Return the reals contained in the element. More... | |
| bool | is_string () const |
| Test whether the value contains strings. | |
| Value::Strings const & | as_string () const |
| Return the strings contained in the element. More... | |
| Value::Strings & | as_string () |
| Return the strings contained in the element. More... | |
| bool | is_data_set () const |
| Test whether the value contains data sets. | |
| Value::DataSets const & | as_data_set () const |
| Return the data sets contained in the element. More... | |
| Value::DataSets & | as_data_set () |
| Return the data sets contained in the element. More... | |
| bool | is_binary () const |
| Test whether the value contains data sets. | |
| Value::Binary const & | as_binary () const |
| Return the binary data contained in the element. More... | |
| Value::Binary & | as_binary () |
| Return the binary data contained in the element. More... | |
| bool | operator== (Element const &other) const |
| Equality test. | |
| bool | operator!= (Element const &other) const |
| Difference test. | |
Public Attributes | |
| VR | vr |
| VR of the element. | |
Element of a DICOM data set.
| Value::Binary const & odil::Element::as_binary | ( | ) | const |
Return the binary data contained in the element.
If the element does not contain binary data, a odil::Exception is raised.
| Value::Binary & odil::Element::as_binary | ( | ) |
Return the binary data contained in the element.
If the element does not contain binary data, a odil::Exception is raised.
| Value::DataSets const & odil::Element::as_data_set | ( | ) | const |
Return the data sets contained in the element.
If the element does not contain data sets, a odil::Exception is raised.
| Value::DataSets & odil::Element::as_data_set | ( | ) |
Return the data sets contained in the element.
If the element does not contain data sets, a odil::Exception is raised.
| Value::Integers const & odil::Element::as_int | ( | ) | const |
Return the integers contained in the element.
If the element does not contain integers, a odil::Exception is raised.
| Value::Integers & odil::Element::as_int | ( | ) |
Return the integers contained in the element.
If the element does not contain integers, a odil::Exception is raised.
| Value::Reals const & odil::Element::as_real | ( | ) | const |
Return the reals contained in the element.
If the element does not contain reals, a odil::Exception is raised.
| Value::Reals & odil::Element::as_real | ( | ) |
Return the reals contained in the element.
If the element does not contain reals, a odil::Exception is raised.
| Value::Strings const & odil::Element::as_string | ( | ) | const |
Return the strings contained in the element.
If the element does not contain strings, a odil::Exception is raised.
| Value::Strings & odil::Element::as_string | ( | ) |
Return the strings contained in the element.
If the element does not contain strings, a odil::Exception is raised.
1.8.11