-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDcmtkScu.hpp
44 lines (35 loc) · 965 Bytes
/
DcmtkScu.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef DCMTK_SCU_HPP
#define DCMTK_SCU_HPP
#pragma once
#include "DicomScu.hpp"
#include "DimseEchoCommand.hpp"
#include "DimseStoreCommand.hpp"
#include "dcmtk/dcmnet/assoc.h"
#include "dcmtk/dcmnet/diutil.h"
namespace dicom {
/**
* @brief DICOM Service Class User implementation based-on Dcmtk libray
*
*/
using DimseCommandPtr = std::unique_ptr<DimseCommand>;
class DcmtkScu : public DicomScu {
private:
T_ASC_Network *network; // network struct, contains DICOM upper layer FSM etc.
T_ASC_Parameters *associationParameters; // parameters of association request
T_ASC_Association *association;
DimseCommandPtr echoCommand;
DimseCommandPtr storeCommand;
public:
DcmtkScu(ServiceUserParameters params);
DcmtkScu();
~DcmtkScu();
bool start() override;
bool stop() override;
bool echo() override;
bool store(std::string filename) override;
private:
void initialize();
void notifyForFileTransfer();
};
} // namespace spm
#endif