DCMTK  Version 3.6.2
OFFIS DICOM Toolkit
Public Member Functions | List of all members
DcmSCPPool< SCP, SCPPool, BaseSCPWorker >::SCPWorker Struct Reference

Helper class to use any class as an SCPWorker as long as it is a model of the SCP Thread Concept. More...

+ Inheritance diagram for DcmSCPPool< SCP, SCPPool, BaseSCPWorker >::SCPWorker:

Public Member Functions

 SCPWorker (DcmSCPPool &pool)
 Construct a SCPWorker for being used by the given DcmSCPPool. More...
 
virtual OFCondition setSharedConfig (const DcmSharedSCPConfig &config)
 Set the shared configuration for this worker. More...
 
virtual OFBool busy ()
 Determine if the Worker is currently handling any request. More...
 
virtual OFCondition workerListen (T_ASC_Association *const assoc)
 Perform SCP's duties on an already accepted (TCP/IP) connection. More...
 

Detailed Description

template<typename SCP = DcmThreadSCP, typename SCPPool = DcmBaseSCPPool, typename BaseSCPWorker = OFTypename SCPPool::DcmBaseSCPWorker>
struct DcmSCPPool< SCP, SCPPool, BaseSCPWorker >::SCPWorker

Helper class to use any class as an SCPWorker as long as it is a model of the SCP Thread Concept.

Constructor & Destructor Documentation

◆ SCPWorker()

template<typename SCP = DcmThreadSCP, typename SCPPool = DcmBaseSCPPool, typename BaseSCPWorker = OFTypename SCPPool::DcmBaseSCPWorker>
DcmSCPPool< SCP, SCPPool, BaseSCPWorker >::SCPWorker::SCPWorker ( DcmSCPPool pool)
inline

Construct a SCPWorker for being used by the given DcmSCPPool.

Parameters
poolthe DcmSCPPool object this Worker belongs to.

Member Function Documentation

◆ busy()

template<typename SCP = DcmThreadSCP, typename SCPPool = DcmBaseSCPPool, typename BaseSCPWorker = OFTypename SCPPool::DcmBaseSCPWorker>
virtual OFBool DcmSCPPool< SCP, SCPPool, BaseSCPWorker >::SCPWorker::busy ( )
inlinevirtual

Determine if the Worker is currently handling any request.

Returns
OFTrue if the underlying SCP implementation is currently handling a request, OFFalse otherwise.

References isConnected().

◆ setSharedConfig()

template<typename SCP = DcmThreadSCP, typename SCPPool = DcmBaseSCPPool, typename BaseSCPWorker = OFTypename SCPPool::DcmBaseSCPWorker>
virtual OFCondition DcmSCPPool< SCP, SCPPool, BaseSCPWorker >::SCPWorker::setSharedConfig ( const DcmSharedSCPConfig config)
inlinevirtual

Set the shared configuration for this worker.

Parameters
configa DcmSharedSCPConfig object to be used by this worker.
Returns
the result of the underlying SCP implementation.

◆ workerListen()

template<typename SCP = DcmThreadSCP, typename SCPPool = DcmBaseSCPPool, typename BaseSCPWorker = OFTypename SCPPool::DcmBaseSCPWorker>
virtual OFCondition DcmSCPPool< SCP, SCPPool, BaseSCPWorker >::SCPWorker::workerListen ( T_ASC_Association *const  assoc)
inlinevirtual

Perform SCP's duties on an already accepted (TCP/IP) connection.

Parameters
assocThe association to be run
Returns
Returns EC_Normal if negotiation could take place and no serious network error has occurred or the given association is invalid. Error code otherwise.

References run().


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


Generated on Mon Jul 17 2017 for DCMTK Version 3.6.2 by Doxygen 1.8.13