Find the VR of elements in an implicit VR data set.
More...
#include <VRFinder.h>
|
typedef std::function< VR(Tag const &, std::shared_ptr< DataSet const >, std::string const &)> | Finder |
| Prototype of finder functions.
|
|
|
| VRFinder (bool strict=false) |
| Constructor.
|
|
VR | operator() (Tag const &tag, std::shared_ptr< DataSet const > data_set, std::string const &transfer_syntax) const |
| Return a VR for the given tag, partially-constructed data set and transfer-syntax. If no VR can be found, raise an exception.
|
|
|
static VR | public_dictionary (Tag const &tag, std::shared_ptr< DataSet const >, std::string const &) |
| Return the VR from the public dictionary.
|
|
static VR | group_length (Tag const &tag, std::shared_ptr< DataSet const >, std::string const &) |
| Return the VR of group-length (gggg,0000) elements.
|
|
static VR | private_tag (Tag const &tag, std::shared_ptr< DataSet const >, std::string const &) |
| Return a default VR (UN) for private tags.
|
|
static VR | implicit_vr_little_endian (Tag const &tag, std::shared_ptr< DataSet const > data_set, std::string const &transfer_syntax) |
| Return the VR of elements defined in PS3.5, A.1 (c).
|
|
static VR | explicit_vr_little_endian (Tag const &tag, std::shared_ptr< DataSet const > data_set, std::string const &transfer_syntax) |
| Return the VR of elements defined in PS3.5, A.2 (c).
|
|
|
std::vector< Finder > | finders |
| User-defined finder functions, empty by default.
|
|
bool | strict |
| Whether to raise an exception when a VR is not found, or to return VR::UN.
|
|
Find the VR of elements in an implicit VR data set.
◆ Finder
Prototype of finder functions.
Finder functions must raise an exception if they are not applicable.
◆ VRFinder()
odil::VRFinder::VRFinder |
( |
bool |
strict = false | ) |
|
◆ explicit_vr_little_endian()
static VR odil::VRFinder::explicit_vr_little_endian |
( |
Tag const & |
tag, |
|
|
std::shared_ptr< DataSet const > |
data_set, |
|
|
std::string const & |
transfer_syntax |
|
) |
| |
|
static |
Return the VR of elements defined in PS3.5, A.2 (c).
◆ group_length()
static VR odil::VRFinder::group_length |
( |
Tag const & |
tag, |
|
|
std::shared_ptr< DataSet const > |
, |
|
|
std::string const & |
|
|
) |
| |
|
static |
Return the VR of group-length (gggg,0000) elements.
◆ implicit_vr_little_endian()
static VR odil::VRFinder::implicit_vr_little_endian |
( |
Tag const & |
tag, |
|
|
std::shared_ptr< DataSet const > |
data_set, |
|
|
std::string const & |
transfer_syntax |
|
) |
| |
|
static |
Return the VR of elements defined in PS3.5, A.1 (c).
◆ operator()()
VR odil::VRFinder::operator() |
( |
Tag const & |
tag, |
|
|
std::shared_ptr< DataSet const > |
data_set, |
|
|
std::string const & |
transfer_syntax |
|
) |
| const |
Return a VR for the given tag, partially-constructed data set and transfer-syntax. If no VR can be found, raise an exception.
The user-defined finders are tried first, then the default_finders.
◆ private_tag()
static VR odil::VRFinder::private_tag |
( |
Tag const & |
tag, |
|
|
std::shared_ptr< DataSet const > |
, |
|
|
std::string const & |
|
|
) |
| |
|
static |
Return a default VR (UN) for private tags.
◆ public_dictionary()
static VR odil::VRFinder::public_dictionary |
( |
Tag const & |
tag, |
|
|
std::shared_ptr< DataSet const > |
, |
|
|
std::string const & |
|
|
) |
| |
|
static |
Return the VR from the public dictionary.
◆ default_finders
std::vector<Finder> const odil::VRFinder::default_finders |
|
static |
Default finder functions.
◆ finders
std::vector<Finder> odil::VRFinder::finders |
User-defined finder functions, empty by default.
◆ strict
bool odil::VRFinder::strict |
Whether to raise an exception when a VR is not found, or to return VR::UN.
The documentation for this class was generated from the following file:
- /build/odil-71Ip5Q/odil-0.12.2/src/odil/VRFinder.h