rasdaman complete source
settype.hh
Go to the documentation of this file.
1 // -*-C++-*- (for Emacs)
2 
3 /*
4 * This file is part of rasdaman community.
5 *
6 * Rasdaman community is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * Rasdaman community is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
18 *
19 * Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Peter Baumann /
20 rasdaman GmbH.
21 *
22 * For more information please see <http://www.rasdaman.org>
23 * or contact Peter Baumann via <baumann@rasdaman.com>.
24 */
25 /*************************************************************
26  *
27  *
28  * PURPOSE:
29  * The SetType class represents the type for sets of MDD
30  * objects.
31  *
32  *
33  * COMMENTS:
34  *
35  ************************************************************/
36 
37 #ifndef _SETTYPE_HH_
38 #define _SETTYPE_HH_
39 
40 class SetType;
41 
42 #include <iostream>
43 #include "collectiontype.hh"
44 #include "catalogmgr/ops.hh"
45 class OId;
46 
47 //@ManMemo: Module: {\bf relcatalogif}.
48 
49 /*@Doc:
50  The SetType class represents the type for sets of MDD
51  objects.
52 */
53 
57 class SetType : public CollectionType
58 {
59 public:
60  SetType(const OId& id) throw (r_Error);
61 
62  virtual char* getTypeStructure() const;
63 
65  SetType(const char* newTypeName, const MDDType* newMDDType);
67  SetType();
69  SetType(const SetType& old);
71  SetType& operator=(const SetType& old);
72 
74  virtual ~SetType();
75 
76 protected:
77 
78  virtual void deleteFromDb() throw (r_Error);
79 
80  virtual void insertInDb() throw (r_Error);
81 
82  virtual void readFromDb() throw (r_Error);
83 };
84 
85 #endif
Definition: settype.hh:57
virtual void insertInDb()
virtual void deleteFromDb()
Definition: oidif.hh:67
virtual char * getTypeStructure() const
returns the structure of the type as a C string.
SetType()
default constructor, cannot be used.
Definition: mddtype.hh:58
Definition: relcatalogif/collectiontype.hh:59
SetType & operator=(const SetType &old)
assignment operator.
virtual void readFromDb()
virtual ~SetType()
virtual destructor.