|
Odil
A C++11 library for the DICOM standard
|
A value held in a DICOM element. More...
#include <Value.h>
Public Types | |
| enum | Type { Type::Integers, Type::Reals, Type::Strings, Type::DataSets, Type::Binary } |
| Possible types stored in the value. More... | |
| typedef int64_t | Integer |
| Integer type. More... | |
| typedef double | Real |
| Real type. More... | |
| typedef std::string | String |
| String type. More... | |
| typedef std::vector< Integer > | Integers |
| Integer container. More... | |
| typedef std::vector< Real > | Reals |
| Real container. More... | |
| typedef std::vector< String > | Strings |
| String container. More... | |
| typedef std::vector< DataSet > | DataSets |
| Data sets container. More... | |
| typedef std::vector< std::vector< uint8_t > > | Binary |
| Binary data container. More... | |
Public Member Functions | |
| Value (Integers const &value) | |
| Value (Integers &&value) | |
| Value (std::initializer_list< Integers ::value_type > const &value) | |
| Value (Reals const &value) | |
| Value (Reals &&value) | |
| Value (std::initializer_list< Reals ::value_type > const &value) | |
| Value (Strings const &value) | |
| Value (Strings &&value) | |
| Value (std::initializer_list< Strings ::value_type > const &value) | |
| Value (DataSets const &value) | |
| Value (DataSets &&value) | |
| Value (std::initializer_list< DataSets ::value_type > const &value) | |
| Value (Binary const &value) | |
| Value (Binary &&value) | |
| Value (std::initializer_list< Binary ::value_type > const &value) | |
| Value (std::initializer_list< int > const &value) | |
| Value (std::initializer_list< std::initializer_list< uint8_t >> const &value) | |
| ~Value ()=default | |
| Value (Value const &)=default | |
| Value (Value &&)=default | |
| Value & | operator= (Value const &)=default |
| Value & | operator= (Value &&)=default |
| Type | get_type () const |
| Return the type store in the value. More... | |
| bool | empty () const |
| Test whether the value is empty. More... | |
| std::size_t | size () const |
| Return the number of items. More... | |
| Integers const & | as_integers () const |
| Return the integers contained in the value. More... | |
| Integers & | as_integers () |
| Return the integers contained in the value. More... | |
| Reals const & | as_reals () const |
| Return the reals contained in the value. More... | |
| Reals & | as_reals () |
| Return the reals contained in the value. More... | |
| Strings const & | as_strings () const |
| Return the strings contained in the value. More... | |
| Strings & | as_strings () |
| Return the strings contained in the value. More... | |
| DataSets const & | as_data_sets () const |
| Return the data sets contained in the value. More... | |
| DataSets & | as_data_sets () |
| Return the data sets contained in the value. More... | |
| Binary const & | as_binary () const |
| Return the binary data contained in the value. More... | |
| Binary & | as_binary () |
| Return the binary data contained in the value. More... | |
| bool | operator== (Value const &other) const |
| Equality test. More... | |
| bool | operator!= (Value const &other) const |
| Difference test. More... | |
| void | clear () |
| Clear the value (value.empty() will be true). More... | |
A value held in a DICOM element.
| typedef std::vector<std::vector<uint8_t> > odil::Value::Binary |
Binary data container.
| typedef std::vector<DataSet> odil::Value::DataSets |
Data sets container.
| typedef int64_t odil::Value::Integer |
Integer type.
| typedef std::vector<Integer> odil::Value::Integers |
Integer container.
| typedef double odil::Value::Real |
Real type.
| typedef std::vector<Real> odil::Value::Reals |
Real container.
| typedef std::string odil::Value::String |
String type.
| typedef std::vector<String> odil::Value::Strings |
String container.
|
strong |
| odil::Value::Value | ( | Integers const & | value | ) |
| odil::Value::Value | ( | Integers && | value | ) |
| odil::Value::Value | ( | std::initializer_list< Integers ::value_type > const & | value | ) |
| odil::Value::Value | ( | Reals const & | value | ) |
| odil::Value::Value | ( | Reals && | value | ) |
| odil::Value::Value | ( | std::initializer_list< Reals ::value_type > const & | value | ) |
| odil::Value::Value | ( | Strings const & | value | ) |
| odil::Value::Value | ( | Strings && | value | ) |
| odil::Value::Value | ( | std::initializer_list< Strings ::value_type > const & | value | ) |
| odil::Value::Value | ( | DataSets const & | value | ) |
| odil::Value::Value | ( | DataSets && | value | ) |
| odil::Value::Value | ( | std::initializer_list< DataSets ::value_type > const & | value | ) |
| odil::Value::Value | ( | Binary const & | value | ) |
| odil::Value::Value | ( | Binary && | value | ) |
| odil::Value::Value | ( | std::initializer_list< Binary ::value_type > const & | value | ) |
| odil::Value::Value | ( | std::initializer_list< int > const & | value | ) |
| odil::Value::Value | ( | std::initializer_list< std::initializer_list< uint8_t >> const & | value | ) |
| Binary const& odil::Value::as_binary | ( | ) | const |
Return the binary data contained in the value.
If the value does not contain binary data, a odil::Exception is raised.
| Binary& odil::Value::as_binary | ( | ) |
Return the binary data contained in the value.
If the value does not contain binary data, a odil::Exception is raised.
| DataSets const& odil::Value::as_data_sets | ( | ) | const |
Return the data sets contained in the value.
If the value does not contain data sets, a odil::Exception is raised.
| DataSets& odil::Value::as_data_sets | ( | ) |
Return the data sets contained in the value.
If the value does not contain data sets, a odil::Exception is raised.
| Integers const& odil::Value::as_integers | ( | ) | const |
Return the integers contained in the value.
If the value does not contain integers, a odil::Exception is raised.
| Integers& odil::Value::as_integers | ( | ) |
Return the integers contained in the value.
If the value does not contain integers, a odil::Exception is raised.
| Reals const& odil::Value::as_reals | ( | ) | const |
Return the reals contained in the value.
If the value does not contain reals, a odil::Exception is raised.
| Reals& odil::Value::as_reals | ( | ) |
Return the reals contained in the value.
If the value does not contain reals, a odil::Exception is raised.
| Strings const& odil::Value::as_strings | ( | ) | const |
Return the strings contained in the value.
If the value does not contain strings, a odil::Exception is raised.
| Strings& odil::Value::as_strings | ( | ) |
Return the strings contained in the value.
If the value does not contain strings, a odil::Exception is raised.
| void odil::Value::clear | ( | ) |
Clear the value (value.empty() will be true).
| bool odil::Value::empty | ( | ) | const |
Test whether the value is empty.
| Type odil::Value::get_type | ( | ) | const |
Return the type store in the value.
| bool odil::Value::operator!= | ( | Value const & | other | ) | const |
Difference test.
| bool odil::Value::operator== | ( | Value const & | other | ) | const |
Equality test.
| std::size_t odil::Value::size | ( | ) | const |
Return the number of items.
1.8.13