aimsdata  5.0.5
Neuroimaging data handling
sparseMatrixItemR.h
Go to the documentation of this file.
1 /* Copyright (c) 1995-2005 CEA
2  *
3  * This software and supporting documentation were developed by
4  * CEA/DSV/SHFJ
5  * 4 place du General Leclerc
6  * 91401 Orsay cedex
7  * France
8  *
9  * This software is governed by the CeCILL license version 2 under
10  * French law and abiding by the rules of distribution of free software.
11  * You can use, modify and/or redistribute the software under the
12  * terms of the CeCILL license version 2 as circulated by CEA, CNRS
13  * and INRIA at the following URL "http://www.cecill.info".
14  *
15  * As a counterpart to the access to the source code and rights to copy,
16  * modify and redistribute granted by the license, users are provided only
17  * with a limited warranty and the software's author, the holder of the
18  * economic rights, and the successive licensors have only limited
19  * liability.
20  *
21  * In this respect, the user's attention is drawn to the risks associated
22  * with loading, using, modifying and/or developing or reproducing the
23  * software by the user in light of its specific status of free software,
24  * that may mean that it is complicated to manipulate, and that also
25  * therefore means that it is reserved for developers and experienced
26  * professionals having in-depth computer knowledge. Users are therefore
27  * encouraged to load and test the software's suitability as regards their
28  * requirements in conditions enabling the security of their systems and/or
29  * data to be ensured and, more generally, to use and operate it in the
30  * same conditions as regards security.
31  *
32  * The fact that you are presently reading this means that you have had
33  * knowledge of the CeCILL license version 2 and that you accept its terms.
34  */
35 
36 /*
37  * SparseMatrix item reader class
38  */
39 #ifndef AIMS_SPARSEMATRIX_SPARSEMATRIXITEMR_H
40 #define AIMS_SPARSEMATRIX_SPARSEMATRIXITEMR_H
41 
43 #include <aims/io/defaultItemR.h>
45 
46 namespace aims
47 {
48 
49 #ifndef DOXYGEN_HIDE_INTERNAL_CLASSES
50 
51  template <>
52  class AIMSDATA_API DefaultItemReader<SparseMatrix> : public ItemReader<SparseMatrix>
53  {
54  public:
56  virtual ~DefaultItemReader() { }
57 
58  virtual void read( std::istream & is, SparseMatrix & pitem ) const;
59  virtual void read( std::istream & is, SparseMatrix * pitem, size_t n ) const;
60  virtual ItemReader<SparseMatrix>*
61  reader( const std::string & openmode = "binar",
62  bool bswap = false ) const;
63  };
64 
65 
66  template <>
68  : public DefaultItemReader<SparseMatrix>
69  {
70  public:
73 
74  virtual void read( std::istream & is, SparseMatrix & pitem ) const;
75  };
76 
77 
78  template <>
80  : public DefaultItemReader<SparseMatrix>
81  {
82  public:
85 
86  virtual void read( std::istream & is, SparseMatrix & pitem ) const;
87  };
88 
89 #endif // DOXYGEN_HIDE_INTERNAL_CLASSES
90 
91 }
92 
93 
94 #endif
#define AIMSDATA_API
The class for EcatSino data write operation.
Definition: border.h:44
Default low-levels readers.
Definition: defaultItemR.h:55
Low-level "small item" reader, used by higher-level file readers.
Definition: itemR.h:98