Odil
A C++11 library for the DICOM standard
Toggle main menu visibility
Loading...
Searching...
No Matches
ElementTraits.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 _3ae28d18_6f01_4e10_98e2_1c0d21fdcab7
10
#define _3ae28d18_6f01_4e10_98e2_1c0d21fdcab7
11
12
#include <functional>
13
#include <string>
14
15
#include <dcmtk/config/osconfig.h>
16
#include <dcmtk/dcmdata/dcelem.h>
17
#include <dcmtk/dcmdata/dcvr.h>
18
19
namespace
odil
20
{
21
22
namespace
dcmtk
23
{
24
35
template
<
typename
TValueType>
36
struct
ElementTraits
37
{
39
typedef
std::function<OFCondition(DcmElement &, TValueType &,
unsigned
long
const
)>
GetterType
;
41
static
GetterType
const
getter
;
43
typedef
std::function<OFCondition(DcmElement &, TValueType
const
,
unsigned
long
const
)>
SetterType
;
45
static
SetterType
const
setter
;
46
};
47
48
}
49
50
}
51
52
#endif
// _3ae28d18_6f01_4e10_98e2_1c0d21fdcab7
odil::dcmtk
Definition
conversion.h:25
odil
Definition
Association.h:25
odil::dcmtk::ElementTraits
Definition
ElementTraits.h:37
odil::dcmtk::ElementTraits::SetterType
std::function< OFCondition(DcmElement &, TValueType const, unsigned long const)> SetterType
Type of the setter function.
Definition
ElementTraits.h:43
odil::dcmtk::ElementTraits::setter
static SetterType const setter
Setter function (one of the put??? functions of DcmElement).
Definition
ElementTraits.h:45
odil::dcmtk::ElementTraits::GetterType
std::function< OFCondition(DcmElement &, TValueType &, unsigned long const)> GetterType
Type of the getter function.
Definition
ElementTraits.h:39
odil::dcmtk::ElementTraits::getter
static GetterType const getter
Getter function (one of the get??? functions of DcmElement).
Definition
ElementTraits.h:41
src
odil
dcmtk
ElementTraits.h
Generated by
1.17.0