Odil
A C++11 library for the DICOM standard
Toggle main menu visibility
Loading...
Searching...
No Matches
SCPDispatcher.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 _f0b69ac6_7d52_401d_a2f3_d5d3f7d69376
10
#define _f0b69ac6_7d52_401d_a2f3_d5d3f7d69376
11
12
#include <map>
13
#include <memory>
14
15
#include "
odil/Association.h
"
16
#include "
odil/odil.h
"
17
#include "
odil/SCP.h
"
18
#include "
odil/Value.h
"
19
20
namespace
odil
21
{
22
24
class
ODIL_API
SCPDispatcher
25
{
26
public
:
28
SCPDispatcher
(
Association
& association);
29
31
bool
has_scp
(
Value::Integer
command)
const
;
32
34
std::shared_ptr<SCP>
const
&
get_scp
(
Value::Integer
command)
const
;
35
37
void
set_scp
(
Value::Integer
command, std::shared_ptr<SCP>
const
& scp);
38
40
void
dispatch
();
41
42
private
:
43
typedef
std::shared_ptr<SCP> SCPPointer;
44
45
Association
& _association;
46
std::map<Value::Integer, std::shared_ptr<SCP> > _providers;
47
48
};
49
50
}
51
52
#endif
// _f0b69ac6_7d52_401d_a2f3_d5d3f7d69376
Association.h
SCP.h
Value.h
odil::Association
Association.
Definition
Association.h:31
odil::SCPDispatcher::get_scp
std::shared_ptr< SCP > const & get_scp(Value::Integer command) const
Return the SCP registered with command.
odil::SCPDispatcher::has_scp
bool has_scp(Value::Integer command) const
Test whether command has an SCP registered.
odil::SCPDispatcher::SCPDispatcher
SCPDispatcher(Association &association)
Create a dispatcher with network and association.
odil::SCPDispatcher::set_scp
void set_scp(Value::Integer command, std::shared_ptr< SCP > const &scp)
Registered an SCP with command.
odil::SCPDispatcher::dispatch
void dispatch()
Receive and dispatch an incoming message.
odil::Value::Integer
int64_t Integer
Integer type.
Definition
Value.h:42
odil
Definition
Association.h:25
odil.h
ODIL_API
#define ODIL_API
Definition
odil.h:28
src
odil
SCPDispatcher.h
Generated by
1.17.0