rasdaman API
tor.hh
Go to the documentation of this file.
1 /*
2 * This file is part of rasdaman community.
3 *
4 * Rasdaman community is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * Rasdaman community is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
18 rasdaman GmbH.
19 *
20 * For more information please see <http://www.rasdaman.org>
21 * or contact Peter Baumann via <baumann@rasdaman.com>.
22 /
36 #ifndef _R_CONV_TOR_HH_
37 #define _R_CONV_TOR_HH_
38 #include "conversion/convertor.hh"
39 
40 //@ManMemo: Module {\bf conversion}
41 
42 /*@Doc:
43  TOR convertor class.
44 
45  Supported parameters are
46 
47  \begin{tabular}{lcl}
48  {\tt swapendianness} && int && flag for swapendianness, default 0\\
49  {\tt rescale} && int && flag for rescale, default 0\\
50  {\tt domain} && string && domain string of TOR file\\
51  \end{tabular}
52 
53  The "swapendianness" parameter is a flag for endianness change operation.
54  The "rescale" parameter is a flag for rescale operation.
55 */
56 
57 
58 class r_Conv_TOR : public r_Convertor
59 {
60 public:
61  r_Conv_TOR(const char* source, const r_Minterval& lengthordomain, const r_Type* tp) throw(r_Error);
62 
63  r_Conv_TOR(const char* source, const r_Minterval& lengthordomain, int tp) throw(r_Error);
64 
65  r_convDesc& convertFrom(const char* options = NULL) throw (r_Error);
66 
67  r_convDesc& convertTo(const char* options = NULL) throw (r_Error);
68 
69  const char* get_name() const;
70 
71  r_Data_Format get_data_format() const;
72 
73  r_Convertor* clone() const;
74 
75 
76 private:
77  void initTOR();
78 
79 };
80 
81 #endif
82 
Definition: type.hh:56