fw4spl
AcquisitionNumberSplitter.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2016.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include "fwDicomIOFilter/splitter/AcquisitionNumberSplitter.hpp"
8 #include "fwDicomIOFilter/registry/macros.hpp"
9 
10 #include <dcmtk/dcmdata/dcdeftag.h>
11 
12 #include <string>
13 
14 fwDicomIOFilterRegisterMacro( ::fwDicomIOFilter::splitter::AcquisitionNumberSplitter );
15 
16 namespace fwDicomIOFilter
17 {
18 namespace splitter
19 {
20 
21 const std::string AcquisitionNumberSplitter::s_FILTER_NAME = "Acquisition number splitter";
23  "Split instances according to acquisition number tag.";
24 
25 //-----------------------------------------------------------------------------
26 
28 {
29  this->setTag(DCM_AcquisitionNumber);
30 }
31 
32 //-----------------------------------------------------------------------------
33 
35 {
36 }
37 
38 //-----------------------------------------------------------------------------
39 
41 {
43 }
44 
45 //-----------------------------------------------------------------------------
46 
48 {
50 }
51 
52 //-----------------------------------------------------------------------------
53 
55 {
56  return false;
57 }
58 
59 //-----------------------------------------------------------------------------
60 
61 } // namespace splitter
62 } // namespace fwDicomIOFilter
static const std::string s_FILTER_DESCRIPTION
Filter description.
virtual FWDICOMIOFILTER_API std::string getName() const override
Return the name of the filter.
fwDicomIOFilter contains filters used to pre-process images before reading.
Filter that uses the AcquisitionNumber tag to split the instances.
Key class used to restrict access to Filter construction. See http://www.drdobbs.com/184402053.
FWDICOMIOFILTER_API AcquisitionNumberSplitter(::fwDicomIOFilter::IFilter::Key key)
Constructor.
virtual FWDICOMIOFILTER_API bool isConfigurationRequired() const override
Return true if a configuration is required.
virtual FWDICOMIOFILTER_API ~AcquisitionNumberSplitter()
Destructor.
void setTag(const DcmTagKey &_tag)
Tag used to sort instances.
Filter that uses a tag to split the instances.
virtual FWDICOMIOFILTER_API std::string getDescription() const override
Return the description of the filter.