9 #ifndef _b1a6d333_684d_4b50_a9b9_68af24027a10
10 #define _b1a6d333_684d_4b50_a9b9_68af24027a10
32 std::map<std::string, std::string>
const & selector={},
33 std::vector<int>
const & frames={});
42 static std::pair<std::string, Selector>
from_path(std::string
const & path);
54 std::string
get_path(
bool include_frames)
const;
84 std::string _instance;
85 std::vector<int> _frames;
88 bool _instance_present;
Target (in the DICOM data model) of the request.
Definition: Selector.h:27
bool operator==(Selector const &other) const
Equality operator.
bool operator!=(Selector const &other) const
Difference operator.
static std::pair< std::string, Selector > from_path(std::string const &path)
Build selector from URL path, return service path and selector.
Selector & set_instance(std::string const &instance)
set the wanted instance
Selector & set_frames(std::vector< int > const &frames)
set the wanted frames
Selector(Selector const &)=default
Selector(std::map< std::string, std::string > const &selector={}, std::vector< int > const &frames={})
Default constructor.
Selector & operator=(Selector const &)=default
bool is_instance_present() const
return if instance field is present in the selector
Selector & operator=(Selector &&)=default
std::string get_path(bool include_frames) const
Return the associated URL path, with the optional "frames" component.
std::string const & get_study() const
return the wanted study
Selector & set_series(std::string const &series)
set the wanted series
Selector & set_study(std::string const &study)
set the wanted study
Selector(Selector &&)=default
bool is_study_present() const
return if study field is present in the selector
std::vector< int > const & get_frames() const
return the wanted frames
bool is_series_present() const
return if series field is present in the selector
std::string const & get_series() const
return the wanted series
std::string const & get_instance() const
return the wanted instance
Definition: Association.h:25
#define ODIL_API
Definition: odil.h:28