Odil
A C++11 library for the DICOM standard
|
Dispatch an incoming message to one of the registered SCPs. More...
#include <SCPDispatcher.h>
Public Member Functions | |
SCPDispatcher (Association &association) | |
Create a dispatcher with network and association. More... | |
~SCPDispatcher () | |
Destructor. More... | |
bool | has_scp (Value::Integer command) const |
Test whether command has an SCP registered. More... | |
std::shared_ptr< SCP > const & | get_scp (Value::Integer command) const |
Return the SCP registered with command. More... | |
void | set_scp (Value::Integer command, std::shared_ptr< SCP > const &scp) |
Registered an SCP with command. More... | |
void | dispatch () |
Receive and dispatch an incoming message. More... | |
Dispatch an incoming message to one of the registered SCPs.
odil::SCPDispatcher::SCPDispatcher | ( | Association & | association | ) |
Create a dispatcher with network and association.
odil::SCPDispatcher::~SCPDispatcher | ( | ) |
Destructor.
void odil::SCPDispatcher::dispatch | ( | ) |
Receive and dispatch an incoming message.
std::shared_ptr<SCP> const& odil::SCPDispatcher::get_scp | ( | Value::Integer | command | ) | const |
Return the SCP registered with command.
bool odil::SCPDispatcher::has_scp | ( | Value::Integer | command | ) | const |
Test whether command has an SCP registered.
void odil::SCPDispatcher::set_scp | ( | Value::Integer | command, |
std::shared_ptr< SCP > const & | scp | ||
) |
Registered an SCP with command.