Odil
A C++11 library for the DICOM standard
Toggle main menu visibility
Loading...
Searching...
No Matches
StoreSCP.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 _fdbf3f51_91f5_464a_b449_c3f994297210
10
#define _fdbf3f51_91f5_464a_b449_c3f994297210
11
12
#include <functional>
13
14
#include "
odil/Association.h
"
15
#include "
odil/odil.h
"
16
#include "
odil/SCP.h
"
17
#include "
odil/Value.h
"
18
#include "
odil/message/CStoreRequest.h
"
19
#include "
odil/message/Message.h
"
20
21
namespace
odil
22
{
23
25
class
ODIL_API
StoreSCP
:
public
SCP
26
{
27
public
:
32
typedef
std::function<
33
Value::Integer
(std::shared_ptr<message::CStoreRequest>)
34
>
Callback
;
35
37
StoreSCP
(
Association
& association);
38
40
StoreSCP
(
Association
& association,
Callback
const
& callback);
41
43
Callback
const
&
get_callback
()
const
;
44
46
void
set_callback
(
Callback
const
& callback);
47
49
void
operator()
(std::shared_ptr<message::CStoreRequest> request);
50
52
virtual
void
operator()
(std::shared_ptr<message::Message>
message
);
53
private
:
54
Callback
_callback;
55
};
56
57
}
58
59
#endif
// _fdbf3f51_91f5_464a_b449_c3f994297210
Association.h
CStoreRequest.h
SCP.h
Value.h
odil::Association
Association.
Definition
Association.h:31
odil::SCP::SCP
SCP(Association &association)
Create a Service Class Provider.
odil::StoreSCP::StoreSCP
StoreSCP(Association &association, Callback const &callback)
Constructor.
odil::StoreSCP::operator()
virtual void operator()(std::shared_ptr< message::Message > message)
Process a C-Store request.
odil::StoreSCP::Callback
std::function< Value::Integer(std::shared_ptr< message::CStoreRequest >) > Callback
Callback called when a request is received, shall throw an SCP::Exception on error.
Definition
StoreSCP.h:34
odil::StoreSCP::StoreSCP
StoreSCP(Association &association)
Constructor.
odil::StoreSCP::operator()
void operator()(std::shared_ptr< message::CStoreRequest > request)
Process a C-Store request.
odil::StoreSCP::get_callback
Callback const & get_callback() const
Return the callback.
odil::StoreSCP::set_callback
void set_callback(Callback const &callback)
Set the callback.
odil::Value::Integer
int64_t Integer
Integer type.
Definition
Value.h:42
Message.h
odil::message
Definition
Cancellation.h:21
odil
Definition
Association.h:25
odil.h
ODIL_API
#define ODIL_API
Definition
odil.h:28
src
odil
StoreSCP.h
Generated by
1.17.0