JEMRIS 2.9.2
open-source MRI simulations
Loading...
Searching...
No Matches
SimpleIO.h
Go to the documentation of this file.
1
5/*
6 * JEMRIS Copyright (C)
7 * 2006-2025 Tony Stoecker
8 * 2007-2018 Kaveh Vahedipour
9 * 2009-2019 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
31class SimpleIO : public BinaryIO {
32
33public:
34
38 SimpleIO (const std::string& fname, const IO::Mode mode) :
39 BinaryIO::BinaryIO (fname, mode) {
40 m_type = IO::SIMPLE;
41 }
42
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
Implementation of binary I/O.
mode
Definition Declarations.h:112
Status
Definition Declarations.h:150
Mode
Definition Declarations.h:178
Base class for binary IO strategies.
Definition BinaryIO.h:51
Simple nd-data structure.
Definition NDData.h:53
Definition SimpleIO.h:31
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
SimpleIO(const std::string &fname, const IO::Mode mode)
Contructor.
Definition SimpleIO.h:38
~SimpleIO()
Destructor.
Definition SimpleIO.h:46

-- last change 03.01.2025 | Tony Stoecker | Imprint | Data Protection --