Odil
A C++11 library for the DICOM standard
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
odil::webservices::Selector Class Reference

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.
 
 Selector (Selector const &)=default
 
 Selector (Selector &&)=default
 
Selectoroperator= (Selector const &)=default
 
Selectoroperator= (Selector &&)=default
 
 ~Selector ()=default
 
bool operator== (Selector const &other) const
 Equality operator.
 
bool operator!= (Selector const &other) const
 Difference operator.
 
std::string get_path (bool include_frames) const
 Return the associated URL path, with the optional "frames" component.
 
bool is_study_present () const
 return if study field is present in the selector
 
bool is_series_present () const
 return if series field is present in the selector
 
bool is_instance_present () const
 return if instance field is present in the selector
 
std::string const & get_study () const
 return the wanted study
 
std::string const & get_series () const
 return the wanted series
 
std::string const & get_instance () const
 return the wanted instance
 
std::vector< int > const & get_frames () const
 return the wanted frames
 
Selectorset_study (std::string const &study)
 set the wanted study
 
Selectorset_series (std::string const &series)
 set the wanted series
 
Selectorset_instance (std::string const &instance)
 set the wanted instance
 
Selectorset_frames (std::vector< int > const &frames)
 set the wanted frames
 

Static Public Member Functions

static std::pair< std::string, Selectorfrom_path (std::string const &path)
 Build selector from URL path, return service path and selector.
 

Detailed Description

Target (in the DICOM data model) of the request.

Constructor & Destructor Documentation

◆ Selector() [1/3]

odil::webservices::Selector::Selector ( std::map< std::string, std::string > const &  selector = {},
std::vector< int > const &  frames = {} 
)

Default constructor.

◆ Selector() [2/3]

odil::webservices::Selector::Selector ( Selector const &  )
default

◆ Selector() [3/3]

odil::webservices::Selector::Selector ( Selector &&  )
default

◆ ~Selector()

odil::webservices::Selector::~Selector ( )
default

Member Function Documentation

◆ from_path()

static std::pair< std::string, Selector > odil::webservices::Selector::from_path ( std::string const &  path)
static

Build selector from URL path, return service path and selector.

◆ get_frames()

std::vector< int > const & odil::webservices::Selector::get_frames ( ) const

return the wanted frames

◆ get_instance()

std::string const & odil::webservices::Selector::get_instance ( ) const

return the wanted instance

◆ get_path()

std::string odil::webservices::Selector::get_path ( bool  include_frames) const

Return the associated URL path, with the optional "frames" component.

◆ get_series()

std::string const & odil::webservices::Selector::get_series ( ) const

return the wanted series

◆ get_study()

std::string const & odil::webservices::Selector::get_study ( ) const

return the wanted study

◆ is_instance_present()

bool odil::webservices::Selector::is_instance_present ( ) const

return if instance field is present in the selector

◆ is_series_present()

bool odil::webservices::Selector::is_series_present ( ) const

return if series field is present in the selector

◆ is_study_present()

bool odil::webservices::Selector::is_study_present ( ) const

return if study field is present in the selector

◆ operator!=()

bool odil::webservices::Selector::operator!= ( Selector const &  other) const

Difference operator.

◆ operator=() [1/2]

Selector & odil::webservices::Selector::operator= ( Selector &&  )
default

◆ operator=() [2/2]

Selector & odil::webservices::Selector::operator= ( Selector const &  )
default

◆ operator==()

bool odil::webservices::Selector::operator== ( Selector const &  other) const

Equality operator.

◆ set_frames()

Selector & odil::webservices::Selector::set_frames ( std::vector< int > const &  frames)

set the wanted frames

◆ set_instance()

Selector & odil::webservices::Selector::set_instance ( std::string const &  instance)

set the wanted instance

◆ set_series()

Selector & odil::webservices::Selector::set_series ( std::string const &  series)

set the wanted series

◆ set_study()

Selector & odil::webservices::Selector::set_study ( std::string const &  study)

set the wanted study


The documentation for this class was generated from the following file: