Odil
A C++11 library for the DICOM standard
RoleSelection.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 _8a990556_f9c3_49f3_bb84_6e604ec9b8f4
10 #define _8a990556_f9c3_49f3_bb84_6e604ec9b8f4
11 
12 #include <cstdint>
13 #include <istream>
14 #include <string>
15 
16 #include "odil/odil.h"
17 #include "odil/pdu/Object.h"
18 
19 namespace odil
20 {
21 
22 namespace pdu
23 {
24 
27 {
28 public:
30  static uint8_t const type=0x54;
31 
34  std::string const & sop_class_uid="",
35  bool scu_role_support=false, bool scp_role_support=false);
36 
38  RoleSelection(std::istream & stream);
39 
44  std::string const & get_sop_class_uid() const;
45 
47  void set_sop_class_uid(std::string const & value);
48 
50  bool get_scu_role_support() const;
51 
53  void set_scu_role_support(bool value);
54 
56  bool get_scp_role_support() const;
57 
59  void set_scp_role_support(bool value);
60 };
61 
62 }
63 
64 }
65 
66 #endif // _8a990556_f9c3_49f3_bb84_6e604ec9b8f4
odil::pdu::Object
Base class for all PDU-related high-level objects (PDU, items and sub-items).
Definition: Object.h:28
odil::pdu::RoleSelection::set_scu_role_support
void set_scu_role_support(bool value)
Set whether the SCP role is supported.
odil
Definition: Association.h:25
ODIL_API
#define ODIL_API
Definition: odil.h:28
odil::pdu::RoleSelection
SCU/SCP Role Selection Sub-Item (PS 3.7, D.3.3.4.1 and D.3.3.4.2).
Definition: RoleSelection.h:27
odil.h
odil::pdu::RoleSelection::get_scu_role_support
bool get_scu_role_support() const
Return whether the SCU role is supported, defaults to false.
odil::pdu::RoleSelection::set_scp_role_support
void set_scp_role_support(bool value)
Set whether the SCP role is supported.
odil::pdu::RoleSelection::RoleSelection
RoleSelection(std::string const &sop_class_uid="", bool scu_role_support=false, bool scp_role_support=false)
Create a Role Selection Sub-Item.
Object.h
odil::pdu::RoleSelection::RoleSelection
RoleSelection(std::istream &stream)
Read a Role Selection Sub-Item from a stream.
odil::pdu::RoleSelection::get_scp_role_support
bool get_scp_role_support() const
Return whether the SCP role is supported, defaults to false.
odil::pdu::RoleSelection::get_sop_class_uid
std::string const & get_sop_class_uid() const
Return the SOP class uid identifying the abstract syntax, defaults to "".
odil::pdu::RoleSelection::set_sop_class_uid
void set_sop_class_uid(std::string const &value)
Set the SOP class uid identifying the abstract syntax.