9#ifndef _5ff4d940_4db7_4d85_9d3a_230b944b31fe
10#define _5ff4d940_4db7_4d85_9d3a_230b944b31fe
40 typedef std::function<
41 void(std::shared_ptr<message::CMoveResponse>)
60 std::shared_ptr<DataSet> query,
StoreCallback store_callback)
const;
64 std::shared_ptr<DataSet> query,
MoveCallback move_callback)
const;
74 std::vector<std::shared_ptr<DataSet>>
move(
75 std::shared_ptr<DataSet> query)
const;
78 std::string _move_destination;
79 uint16_t _incoming_port;
82 std::shared_ptr<message::CMoveRequest const> request,
89 bool _handle_main_association(
MoveCallback callback)
const;
90 bool _handle_store_association(
Association.
Definition: Association.h:31
SCU for C-MOVE services.
Definition: MoveSCU.h:28
std::function< void(std::shared_ptr< DataSet >)> StoreCallback
Callback called when a C-STORE request is received.
Definition: MoveSCU.h:31
MoveSCU(Association &association)
Constructor.
std::vector< std::shared_ptr< DataSet > > move(std::shared_ptr< DataSet > query) const
Return a list of datasets matching the query.
uint16_t get_incoming_port() const
Return the port for incoming associations, defaults to 0.
void move(std::shared_ptr< DataSet > query, MoveCallback move_callback) const
Perform the C-MOVE using callbacks.
void move(std::shared_ptr< DataSet > query, StoreCallback store_callback) const
Perform the C-MOVE using callbacks.
void set_incoming_port(uint16_t port)
Set the port for incoming associations, use 0 to disable.
void set_move_destination(std::string const &move_destination)
Set the AE title of the destination.
std::function< void(std::shared_ptr< message::CMoveResponse >) > MoveCallback
Callback called when a C-MOVE response is received.
Definition: MoveSCU.h:42
StoreCallback Callback
Typedef to keep compatibility with previous versions.
Definition: MoveSCU.h:37
void move(std::shared_ptr< DataSet > query, StoreCallback store_callback, MoveCallback move_callback) const
Perform the C-MOVE using callbacks.
std::string const & get_move_destination() const
Return the AE title of the destination, defaults to "".
Base class for all Service Class Users.
Definition: SCU.h:22
Definition: Association.h:25
#define ODIL_API
Definition: odil.h:28