fw4spl
Reader.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
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 __FWATOMSBOOSTIO_READER_HPP__
8 #define __FWATOMSBOOSTIO_READER_HPP__
9 
10 #include <boost/filesystem/path.hpp>
11 
12 #include <fwCore/macros.hpp>
13 
14 #include "fwAtomsBoostIO/types.hpp"
15 #include "fwAtomsBoostIO/config.hpp"
16 
17 namespace fwAtoms
18 {
19 class Base;
20 }
21 namespace fwZip
22 {
23 class IReadArchive;
24 }
25 
26 namespace fwAtomsBoostIO
27 {
28 
29 class FWATOMSBOOSTIO_CLASS_API Reader
30 {
31 
32 public:
33 
34  FWATOMSBOOSTIO_API SPTR(::fwAtoms::Base) read( const SPTR(::fwZip::IReadArchive)& archive,
35  const ::boost::filesystem::path& rootFilename = "root.json",
36  FormatType format = JSON ) const;
37 
38 protected:
39 
40  SPTR(::fwAtoms::Base) m_atom;
41 
42 };
43 
44 }
45 
46 #endif /* __FWATOMSBOOSTIO_READER_HPP__ */
47 
#define SPTR(_cls_)
fwAtoms contains basic objects to represent any other kind of object
The namespace fwAtomsBoostIO contains atom reader and writer.
This file defines fwCore base macros.
The namespace fwZip provides IO for compress/uncompress .zip files using zlib .
Definition: Read.hpp:14
This interface defines functions to read a file in an archive.
Base class for all Atom classes.