Odil
A C++11 library for the DICOM standard
Loading...
Searching...
No Matches
PDataTF.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 _b3062f12_8a06_46a8_9dda_8a7edf96e4a6
10#define _b3062f12_8a06_46a8_9dda_8a7edf96e4a6
11
12#include <cstdint>
13#include <istream>
14#include <vector>
15
16#include "odil/odil.h"
17#include "odil/pdu/Object.h"
18
19namespace odil
20{
21
22namespace pdu
23{
24
26class ODIL_API PDataTF: public Object
27{
28public:
30 {
31 public:
33 uint8_t presentation_context_id, uint8_t control_header,
34 std::string const & fragment);
35
36 PresentationDataValueItem(std::istream & stream);
37
39 void set_presentation_context_id(uint8_t value);
40
41 uint8_t get_control_header() const;
42 void set_control_header(uint8_t value);
43
44 bool is_command() const;
45 bool is_last_fragment() const;
46
47 std::string const & get_fragment() const;
48 void set_fragment(std::string const & fragment);
49 };
50
52 PDataTF(std::vector<PresentationDataValueItem> const & pdv_items);
53
55 PDataTF(std::istream & stream);
56
58 std::vector<PresentationDataValueItem> get_pdv_items() const;
59
61 void set_pdv_items(std::vector<PresentationDataValueItem> const &pdv_items);
62};
63
64}
65
66}
67
68#endif // _b3062f12_8a06_46a8_9dda_8a7edf96e4a6
Base class for all PDU-related high-level objects (PDU, items and sub-items).
Definition Object.h:28
PresentationDataValueItem(uint8_t presentation_context_id, uint8_t control_header, std::string const &fragment)
std::string const & get_fragment() const
void set_fragment(std::string const &fragment)
P-DATA-TF PDU, cf. PS 3.8, 9.3.5.
Definition PDataTF.h:27
std::vector< PresentationDataValueItem > get_pdv_items() const
Return the Presentation Data Value Items.
void set_pdv_items(std::vector< PresentationDataValueItem > const &pdv_items)
Set the Presentation Data Value Items.
PDataTF(std::vector< PresentationDataValueItem > const &pdv_items)
Constructor.
PDataTF(std::istream &stream)
Constructor from stream.
Definition Association.h:25
#define ODIL_API
Definition odil.h:28