dcmtkpp
Classes | Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
dcmtkpp::ServiceRole Class Reference

Base class for all Service Class Users and Providers. More...

#include <ServiceRole.h>

Inheritance diagram for dcmtkpp::ServiceRole:
dcmtkpp::SCP dcmtkpp::SCU dcmtkpp::StoreSCP dcmtkpp::FindSCU dcmtkpp::GetSCU dcmtkpp::MoveSCU dcmtkpp::StoreSCU

Classes

struct  ProgressCallbackData
 Wrapper class for DMCTK progress callbacks. More...
 

Public Types

typedef std::function< void(void *, unsigned long)> ProgressCallback
 Progress callback, following the semantics of DCMTK.
 

Public Member Functions

 ServiceRole ()
 Create a default Service Role with no network and no association.
 
 ServiceRole (ServiceRole const &other)
 Copy the other service role.
 
ServiceRole const & operator= (ServiceRole const &other)
 Copy the other service role.
 
virtual ~ServiceRole ()
 Destructor, network and association are not modified.
 
Networkget_network () const
 Return the network used by the ServiceRole.
 
void set_network (Network *network)
 Set the network used by the ServiceRole.
 
Associationget_association () const
 Return the association used by the ServiceRole.
 
void set_association (Association *association)
 Set the association used by the ServiceRole.
 

Protected Member Functions

T_ASC_PresentationContextID _find_presentation_context (std::string const &abstract_syntax) const
 Find an accepted presentation context.
 
void _send (Message const &message, std::string const &abstract_syntax, ProgressCallback callback=NULL, void *callback_data=NULL) const
 Send a DIMSE message.
 
Message _receive (ProgressCallback callback=NULL, void *callback_data=NULL) const
 Receive a generic DIMSE message.
 
template<typename TMessage >
TMessage _receive (ProgressCallback callback=NULL, void *callback_data=NULL) const
 Receive a DIMSE message of specific type. More...
 

Static Protected Member Functions

static void _progress_callback_wrapper (void *data, unsigned long bytes_count)
 Wrapper from ProgressCallback to DIMSE_ProgressCallback.
 

Protected Attributes

Network_network
 Network used by the ServiceRole.
 
Association_association
 Association used by the ServiceRole.
 

Detailed Description

Base class for all Service Class Users and Providers.

Member Function Documentation

template<typename TMessage >
TMessage dcmtkpp::ServiceRole::_receive ( ProgressCallback  callback = NULL,
void *  callback_data = NULL 
) const
protected

Receive a DIMSE message of specific type.

Throw an exception if the received message is not of the requested type.


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