JEMRIS  2.8.1
open-source MRI simulations
SimpleIO.h
Go to the documentation of this file.
1 
5 /*
6  * JEMRIS Copyright (C)
7  * 2006-2015 Tony Stoecker
8  * 2007-2015 Kaveh Vahedipour
9  * 2009-2015 Daniel Pflugfelder
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24  */
25 
26 #ifndef SIMPLE_IO_H_
27 #define SIMPLE_IO_H_
28 
29 #include "BinaryIO.h"
30 
31 class SimpleIO : public BinaryIO {
32 
33 public:
34 
38  SimpleIO (const std::string& fname, const IO::Mode mode) :
39  BinaryIO::BinaryIO (fname, mode) {
40  m_type = IO::SIMPLE;
41  }
42 
46  ~SimpleIO () {}
47 
48  template<class T> IO::Status
49  Read (NDData<T>& data, const std::string& urn,
50  const std::string& url = "") {return IO::OK; };
51 
57  template<class T> IO::Status
58  Write (const NDData<T>& data, const std::string& urn,
59  const std::string& url = "") { return IO::OK; }
60 
61 
62 };
63 
64 #endif
Definition: XMLIO.h:49
Mode
Definition: Declarations.h:176
Implementation of binary I/O.
IO::Status Write(const NDData< T > &data, const std::string &urn, const std::string &url="")
Write data from container to file.
Definition: SimpleIO.h:58
mode
Definition: Declarations.h:112
Base class for binary IO strategies.
Definition: BinaryIO.h:51
SimpleIO(const std::string &fname, const IO::Mode mode)
Contructor.
Definition: SimpleIO.h:38
Simple nd-data structure.
Definition: NDData.h:53
Definition: SimpleIO.h:31
Status
Definition: Declarations.h:148
~SimpleIO()
Destructor.
Definition: SimpleIO.h:46

-- last change 17.06.2016 | Tony Stoecker | Imprint --