fw4spl
fwMedDataCamp/src/fwMedDataCamp/AttachmentSeries.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 "fwMedDataCamp/AttachmentSeries.hpp"
8 
9 #include <fwCamp/UserObject.hpp>
10 
11 #include <fwMemory/BufferObject.hpp>
12 
13 //------------------------------------------------------------------------------
14 
15 fwCampImplementDataMacro((fwMedData)(AttachmentSeries))
16 {
17  builder
18  .tag("object_version", "1")
19  .tag("lib_name", "fwMedData")
20  .base< ::fwMedData::Series>()
21  .property("attachment_availability", &::fwMedData::AttachmentSeries::m_attachmentAvailability)
22  .property("attachment_path", &::fwMedData::AttachmentSeries::m_attachmentPath)
23  .property("media_type", &::fwMedData::AttachmentSeries::m_mediaType)
24  .property("buffer", &::fwMedData::AttachmentSeries::m_buffer)
25  ;
26 }
27 
28 
29 fwCampImplementEnumMacro((fwMedData)(AttachmentSeries)(AttachmentAvailability))
30 {
31  builder
32  .value("NONE", ::fwMedData::AttachmentSeries::NONE)
33  .value("LOCAL", ::fwMedData::AttachmentSeries::LOCAL)
34  .value("EMBEDDED", ::fwMedData::AttachmentSeries::EMBEDDED)
35  ;
36 }
Namespace containing medical data.
AttachmentAvailability m_attachmentAvailability
Attachment availability.
std::string m_mediaType
Media type of the attached file.
::boost::filesystem::path m_attachmentPath
Local path of attachment file.
::fwMemory::BufferObject::sptr m_buffer
BufferObject of the current attachment file.