Odil
A C++11 library for the DICOM standard
Selector.h
Go to the documentation of this file.
1 /*************************************************************************
2  * odil - Copyright (C) Universite de Strasbourg
3  * Distributed under the terms of the CeCILL-B license, as published by
4  * the CEA-CNRS-INRIA. Refer to the LICENSE file or to
5  * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
6  * for details.
7  ************************************************************************/
8 
9 #ifndef _b1a6d333_684d_4b50_a9b9_68af24027a10
10 #define _b1a6d333_684d_4b50_a9b9_68af24027a10
11 
12 #include <string>
13 #include <vector>
14 #include <map>
15 
16 #include "odil/odil.h"
17 #include "odil/Exception.h"
18 
19 namespace odil
20 {
21 
22 namespace webservices
23 {
24 
27 {
28 public:
29 
31  Selector(
32  std::map<std::string, std::string> const & selector=std::map<std::string, std::string>(),
33  std::vector<int> const & frames=std::vector<int>());
34 
35 
37  bool operator==(Selector const & other) const;
38 
40  bool operator!=(Selector const & other) const;
41 
46  std::string get_path(bool include_frames) const;
47 
49  bool is_study_present() const;
51  bool is_series_present() const;
53  bool is_instance_present() const;
54 
56  std::string const & get_study() const;
58  std::string const & get_series() const;
60  std::string const & get_instance() const;
62  std::vector<int> const & get_frames() const;
63 
65  Selector& set_study(std::string const & study);
67  Selector& set_series(std::string const & series);
69  Selector& set_instance(std::string const & instance);
71  Selector& set_frames(std::vector<int> const & frames);
72 
73 private:
74  std::string _study;
75  std::string _series;
76  std::string _instance;
77  std::vector<int> _frames;
78  bool _study_present;
79  bool _series_present;
80  bool _instance_present;
81 
82 
83 };
84 
85 }
86 
87 }
88 
89 
90 #endif // _b1a6d333_684d_4b50_a9b9_68af24027a10
Definition: Association.h:24
#define ODIL_API
Definition: odil.h:28
Target (in the DICOM data model) of the request.
Definition: Selector.h:26