fw4spl
core/fwMedDataTools/include/fwMedDataTools/helper/SeriesDB.hpp
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 #ifndef __FWMEDDATATOOLS_HELPER_SERIESDB_HPP__
8 #define __FWMEDDATATOOLS_HELPER_SERIESDB_HPP__
9 
10 #include "fwMedDataTools/config.hpp"
11 
12 #include <fwMedData/Series.hpp>
13 #include <fwMedData/SeriesDB.hpp>
14 
15 namespace fwMedDataTools
16 {
17 namespace helper
18 {
19 
23 class FWMEDDATATOOLS_CLASS_API SeriesDB
24 {
25 
26 public:
27 
29  FWMEDDATATOOLS_API SeriesDB( ::fwMedData::SeriesDB::wptr seriesDB );
30 
32  FWMEDDATATOOLS_API ~SeriesDB();
33 
40  FWMEDDATATOOLS_API void add( ::fwMedData::Series::sptr newSeries );
41 
48  FWMEDDATATOOLS_API void remove( ::fwMedData::Series::sptr oldSeries );
49 
55  FWMEDDATATOOLS_API void clear();
56 
62  FWMEDDATATOOLS_API void merge(::fwMedData::SeriesDB::sptr seriesDBIn);
63 
65  FWMEDDATATOOLS_API void notify();
66 
67 private:
68 
69  ::fwMedData::SeriesDB::ContainerType m_addedSeries;
70  ::fwMedData::SeriesDB::ContainerType m_removedSeries;
71  ::fwMedData::SeriesDB::wptr m_seriesDB;
72 };
73 
74 } // namespace helper
75 } // namespace fwMedDataTools
76 
77 #endif // __FWMEDDATATOOLS_HELPER_SERIESDB_HPP__
Defines an helper to modify an fwMedData::SeriesDB and create in parallel the message to announce thi...
Contains utilities dedicated to fwMedData.