rasdaman API
convfactory.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 /
34 #include "raslib/mddtypes.hh"
35 #include "raslib/error.hh"
36 
37 
38 class r_Convertor;
39 class r_Minterval;
40 class r_Type;
41 
42 
43 //@ManMemo: Module {\bf conversion}
44 
45 /*@Doc:
46  r_Convertor_Factory is a class encapsulating static functions to
47  create convertors out of data formats. The alternative of making
48  this functionality static members of r_Converstor would have meant
49  that all code using just one convertor would have to link the libs
50  of all convertors, rendering it unusable.
51 */
52 
53 class r_Convertor_Factory
54 {
55 public:
57  static bool is_supported( r_Data_Format fmt );
59  static r_Convertor *create( r_Data_Format fmt, const char *src, const r_Minterval &interv,
60  const r_Type *tp ) throw(r_Error);
62  static r_Convertor *create( r_Data_Format fmt, const char *src, const r_Minterval &interv,
63  int type ) throw(r_Error);
64 };
Definition: type.hh:56