dcmtkpp
ElementTraits.h
1 /*************************************************************************
2  * dcmtkpp - 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 dcmtkpp
20 {
21 
32 template<typename TValueType>
34 {
36  typedef std::function<OFCondition(DcmElement &, TValueType &, unsigned long const)> GetterType;
38  static GetterType const getter;
40  typedef std::function<OFCondition(DcmElement &, TValueType const, unsigned long const)> SetterType;
42  static SetterType const setter;
43 };
44 
45 }
46 
47 #endif // _3ae28d18_6f01_4e10_98e2_1c0d21fdcab7
Definition: Association.cpp:22
static SetterType const setter
Setter function (one of the put??? functions of DcmElement).
Definition: ElementTraits.h:42
static GetterType const getter
Getter function (one of the get??? functions of DcmElement).
Definition: ElementTraits.h:38
std::function< OFCondition(DcmElement &, TValueType const, unsigned long const)> SetterType
Type of the setter function.
Definition: ElementTraits.h:40
Traits for generic data access to values of DcmElement.
Definition: ElementTraits.h:33
std::function< OFCondition(DcmElement &, TValueType &, unsigned long const)> GetterType
Type of the getter function.
Definition: ElementTraits.h:36