Odil
A C++11 library for the DICOM standard
src
odil
pdu
Object.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 _da2270e3_d393_415a_9c5c_6253152ed9da
10
#define _da2270e3_d393_415a_9c5c_6253152ed9da
11
12
#include <ostream>
13
14
#include "
odil/odil.h
"
15
#include "
odil/pdu/Item.h
"
16
17
namespace
odil
18
{
19
20
namespace
pdu
21
{
22
27
class
ODIL_API
Object
28
{
29
public
:
31
virtual
~Object();
32
34
Item
const
& get_item()
const
;
35
36
protected
:
37
Item
_item;
38
40
uint32_t _compute_length()
const
;
41
43
uint32_t _compute_length(
Item
const
& item)
const
;
44
46
uint32_t _compute_length(
Item::Field
const
& field)
const
;
47
};
48
50
ODIL_API
51
std::ostream &
52
operator<<
(std::ostream & stream,
Object
const
&
object
);
53
54
}
55
56
}
57
58
#endif // _da2270e3_d393_415a_9c5c_6253152ed9da
odil::pdu::Object
Base class for all PDU-related high-level objects (PDU, items and sub-items).
Definition:
Object.h:36
Item.h
odil
Definition:
Association.h:23
ODIL_API
#define ODIL_API
Definition:
odil.h:27
odil::pdu::Item::Field
Generic field.
Definition:
Item.h:46
odil.h
odil::registry::Item
const Tag Item(0xfffe, 0xe000)
odil::pdu::operator<<
std::ostream & operator<<(std::ostream &stream, Item const &item)
odil::pdu::Item
A sequence of fields forming a full PDU or a part of it.
Definition:
Item.h:37
Generated by
1.8.16