Odil
A C++11 library for the DICOM standard
Loading...
Searching...
No Matches
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
19namespace odil
20{
21
22namespace pdu
23{
24
27{
28public:
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
51
53 void set_scu_role_support(bool value);
54
57
59 void set_scp_role_support(bool value);
60};
61
62}
63
64}
65
66#endif // _8a990556_f9c3_49f3_bb84_6e604ec9b8f4
Base class for all PDU-related high-level objects (PDU, items and sub-items).
Definition Object.h:28
SCU/SCP Role Selection Sub-Item (PS 3.7, D.3.3.4.1 and D.3.3.4.2).
Definition RoleSelection.h:27
RoleSelection(std::string const &sop_class_uid="", bool scu_role_support=false, bool scp_role_support=false)
Create a Role Selection Sub-Item.
void set_scp_role_support(bool value)
Set whether the SCP role is supported.
bool get_scu_role_support() const
Return whether the SCU role is supported, defaults to false.
void set_sop_class_uid(std::string const &value)
Set the SOP class uid identifying the abstract syntax.
bool get_scp_role_support() const
Return whether the SCP role is supported, defaults to false.
RoleSelection(std::istream &stream)
Read a Role Selection Sub-Item from a stream.
std::string const & get_sop_class_uid() const
Return the SOP class uid identifying the abstract syntax, defaults to "".
void set_scu_role_support(bool value)
Set whether the SCP role is supported.
Definition Association.h:25
#define ODIL_API
Definition odil.h:28