Odil
A C++11 library for the DICOM standard
Public Member Functions | Static Public Attributes | List of all members
odil::pdu::RoleSelection Class Reference

SCU/SCP Role Selection Sub-Item (PS 3.7, D.3.3.4.1 and D.3.3.4.2). More...

#include <RoleSelection.h>

Inheritance diagram for odil::pdu::RoleSelection:
Inheritance graph
[legend]
Collaboration diagram for odil::pdu::RoleSelection:
Collaboration graph
[legend]

Public Member Functions

 RoleSelection (std::string const &sop_class_uid="", bool scu_role_support=false, bool scp_role_support=false)
 Create a Role Selection Sub-Item. More...
 
 RoleSelection (std::istream &stream)
 Read a Role Selection Sub-Item from a stream. More...
 
const std::string & get_sop_class_uid () const
 Return the SOP class uid identifying the abstract syntax, defaults to "". More...
 
void set_sop_class_uid (std::string const &value)
 Set the SOP class uid identifying the abstract syntax. More...
 
bool get_scu_role_support () const
 Return whether the SCU role is supported, defaults to false. More...
 
void set_scu_role_support (bool value)
 Set whether the SCP role is supported. More...
 
bool get_scp_role_support () const
 Return whether the SCP role is supported, defaults to false. More...
 
void set_scp_role_support (bool value)
 Set whether the SCP role is supported. More...
 
- Public Member Functions inherited from odil::pdu::Object
virtual ~Object ()
 Destructor, makes the type polymorphic. More...
 
const Itemget_item () const
 Get the underlying item. More...
 

Static Public Attributes

static const uint8_t type =0x54
 Item type. More...
 

Additional Inherited Members

- Protected Member Functions inherited from odil::pdu::Object
uint32_t _compute_length () const
 Compute the value of the length field of the object. More...
 
uint32_t _compute_length (Item const &item) const
 Compute the full size of an item. More...
 
uint32_t _compute_length (Item::Field const &field) const
 Compute the full size of a field. More...
 
- Protected Attributes inherited from odil::pdu::Object
Item _item
 

Detailed Description

SCU/SCP Role Selection Sub-Item (PS 3.7, D.3.3.4.1 and D.3.3.4.2).

Constructor & Destructor Documentation

◆ RoleSelection() [1/2]

odil::pdu::RoleSelection::RoleSelection ( std::string const &  sop_class_uid = "",
bool  scu_role_support = false,
bool  scp_role_support = false 
)

Create a Role Selection Sub-Item.

◆ RoleSelection() [2/2]

odil::pdu::RoleSelection::RoleSelection ( std::istream &  stream)

Read a Role Selection Sub-Item from a stream.

Member Function Documentation

◆ get_scp_role_support()

bool odil::pdu::RoleSelection::get_scp_role_support ( ) const

Return whether the SCP role is supported, defaults to false.

◆ get_scu_role_support()

bool odil::pdu::RoleSelection::get_scu_role_support ( ) const

Return whether the SCU role is supported, defaults to false.

◆ get_sop_class_uid()

const std::string& odil::pdu::RoleSelection::get_sop_class_uid ( ) const

Return the SOP class uid identifying the abstract syntax, defaults to "".

◆ set_scp_role_support()

void odil::pdu::RoleSelection::set_scp_role_support ( bool  value)

Set whether the SCP role is supported.

◆ set_scu_role_support()

void odil::pdu::RoleSelection::set_scu_role_support ( bool  value)

Set whether the SCP role is supported.

◆ set_sop_class_uid()

void odil::pdu::RoleSelection::set_sop_class_uid ( std::string const &  value)

Set the SOP class uid identifying the abstract syntax.

Member Data Documentation

◆ type

const uint8_t odil::pdu::RoleSelection::type =0x54
static

Item type.


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