fw4spl
RawZ.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 __FWMEMORY_STREAM_IN_RAWZ_HPP__
8 #define __FWMEMORY_STREAM_IN_RAWZ_HPP__
9 
10 #include <boost/filesystem/path.hpp>
11 #include <fwCore/macros.hpp>
12 
13 #include "fwMemory/stream/in/IFactory.hpp"
14 #include "fwMemory/config.hpp"
15 
16 namespace fwMemory
17 {
18 namespace stream
19 {
20 namespace in
21 {
22 
23 class FWMEMORY_CLASS_API RawZ : public IFactory
24 {
25 public:
26  RawZ(const boost::filesystem::path &path) :
27  m_path(path)
28  {
29  }
30 
31 protected:
32 
33  FWMEMORY_API SPTR(std::istream) get();
34 
35  boost::filesystem::path m_path;
36 };
37 
38 
39 
40 } // namespace in
41 } // namespace stream
42 } // namespace fwMemory
43 
44 #endif // __FWMEMORY_STREAM_IN_RAWZ_HPP__
45 
46 
#define SPTR(_cls_)
The namespace fwMemory contains tools to manage memory. Use for dump.
Definition: SReader.hpp:20
This file defines fwCore base macros.