Odil
A C++11 library for the DICOM standard
|
Target (in the DICOM data model) of the request. More...
#include <Selector.h>
Public Member Functions | |
Selector (std::map< std::string, std::string > const &selector={}, std::vector< int > const &frames={}) | |
Default constructor. More... | |
Selector (Selector const &)=default | |
Selector (Selector &&)=default | |
Selector & | operator= (Selector const &)=default |
Selector & | operator= (Selector &&)=default |
~Selector ()=default | |
bool | operator== (Selector const &other) const |
Equality operator. More... | |
bool | operator!= (Selector const &other) const |
Difference operator. More... | |
std::string | get_path (bool include_frames) const |
Return the associated URL path, with the optional "frames" component. More... | |
bool | is_study_present () const |
return if study field is present in the selector More... | |
bool | is_series_present () const |
return if series field is present in the selector More... | |
bool | is_instance_present () const |
return if instance field is present in the selector More... | |
std::string const & | get_study () const |
return the wanted study More... | |
std::string const & | get_series () const |
return the wanted series More... | |
std::string const & | get_instance () const |
return the wanted instance More... | |
std::vector< int > const & | get_frames () const |
return the wanted frames More... | |
Selector & | set_study (std::string const &study) |
set the wanted study More... | |
Selector & | set_series (std::string const &series) |
set the wanted series More... | |
Selector & | set_instance (std::string const &instance) |
set the wanted instance More... | |
Selector & | set_frames (std::vector< int > const &frames) |
set the wanted frames More... | |
Static Public Member Functions | |
static std::pair< std::string, Selector > | from_path (std::string const &path) |
Build selector from URL path, return service path and selector. More... | |
Target (in the DICOM data model) of the request.
odil::webservices::Selector::Selector | ( | std::map< std::string, std::string > const & | selector = {} , |
std::vector< int > const & | frames = {} |
||
) |
Default constructor.
|
default |
|
default |
|
default |
|
static |
Build selector from URL path, return service path and selector.
std::vector<int> const& odil::webservices::Selector::get_frames | ( | ) | const |
return the wanted frames
std::string const& odil::webservices::Selector::get_instance | ( | ) | const |
return the wanted instance
std::string odil::webservices::Selector::get_path | ( | bool | include_frames | ) | const |
Return the associated URL path, with the optional "frames" component.
std::string const& odil::webservices::Selector::get_series | ( | ) | const |
return the wanted series
std::string const& odil::webservices::Selector::get_study | ( | ) | const |
return the wanted study
bool odil::webservices::Selector::is_instance_present | ( | ) | const |
return if instance field is present in the selector
bool odil::webservices::Selector::is_series_present | ( | ) | const |
return if series field is present in the selector
bool odil::webservices::Selector::is_study_present | ( | ) | const |
return if study field is present in the selector
bool odil::webservices::Selector::operator!= | ( | Selector const & | other | ) | const |
Difference operator.
bool odil::webservices::Selector::operator== | ( | Selector const & | other | ) | const |
Equality operator.
Selector& odil::webservices::Selector::set_frames | ( | std::vector< int > const & | frames | ) |
set the wanted frames
Selector& odil::webservices::Selector::set_instance | ( | std::string const & | instance | ) |
set the wanted instance
Selector& odil::webservices::Selector::set_series | ( | std::string const & | series | ) |
set the wanted series
Selector& odil::webservices::Selector::set_study | ( | std::string const & | study | ) |
set the wanted study