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