Odil
A C++11 library for the DICOM standard
Loading...
Searching...
No Matches
FindSCU.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 _0106eb3a_4e02_4d7c_93bf_4d53dcafbb05
10#define _0106eb3a_4e02_4d7c_93bf_4d53dcafbb05
11
12#include <vector>
13
14#include "odil/Association.h"
15#include "odil/DataSet.h"
17#include "odil/odil.h"
18#include "odil/SCU.h"
19
20namespace odil
21{
22
24class ODIL_API FindSCU: public SCU
25{
26public:
28 typedef std::function<void(std::shared_ptr<DataSet>)> Callback;
29
31 FindSCU(Association & association);
32
34 void find(std::shared_ptr<DataSet> query, Callback callback) const;
35
39 Value::DataSets find(std::shared_ptr<DataSet> query) const;
40
41private:
42 void _find(
43 std::shared_ptr<message::CFindRequest const> request,
44 Callback callback) const;
45};
46
47}
48
49#endif // _0106eb3a_4e02_4d7c_93bf_4d53dcafbb05
Association.
Definition Association.h:31
SCU for C-FIND services.
Definition FindSCU.h:25
FindSCU(Association &association)
Constructor.
Value::DataSets find(std::shared_ptr< DataSet > query) const
Return a list of datasets matching the query.
std::function< void(std::shared_ptr< DataSet >)> Callback
Callback called when a response is received.
Definition FindSCU.h:28
void find(std::shared_ptr< DataSet > query, Callback callback) const
Perform the C-FIND using an optional callback.
Base class for all Service Class Users.
Definition SCU.h:22
std::vector< std::shared_ptr< DataSet > > DataSets
Data sets container.
Definition Value.h:60
Definition Association.h:25
#define ODIL_API
Definition odil.h:28