rasdaman complete source
octettype.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 */
23 // -*-C++-*- (for Emacs)
24 
25 /*************************************************************
26  *
27  *
28  * PURPOSE:
29  * The ULongType class is the superclass for all classes
30  * describing the type of a cell
31  *
32  *
33  * COMMENTS:
34  * This file is patched by O2!
35  *
36  ************************************************************/
37 
38 #ifndef _OCTETTYPE_HH_
39 #define _OCTETTYPE_HH_
40 
41 #include <iostream>
42 #include "integraltype.hh"
43 #include "catalogmgr/ops.hh"
44 
45 class OId;
46 
47 //@ManMemo: Module: {\bf relcatalogif}.
48 
49 /*@Doc:
50 
51 OctetType is the base type used for boolean cell values (e.g. result
52 of comparison operations, see \Ref{Ops}). The value of a Octet is
53 stored in one char. OctetType is a persistence capable class.
54 */
55 
59 class OctetType : public IntegralType
60 {
61 public:
62  OctetType(const OId& id);
63 
64  OctetType();
65  /*@Doc:
66  default constructor, no initialization needed for OctetType.
67  */
68 
69  OctetType(const OctetType& old);
70  /*@Doc:
71  copy constructor.
72  */
73 
74  OctetType& operator=(const OctetType& old);
75  /*@Doc:
76  assignment operator.
77  */
78 
79  virtual ~OctetType();
80  /*@Doc:
81  virtual destructor.
82  */
83 
84  virtual void printCell(ostream& stream, const char* cell) const;
85  /*@Doc:
86  */
87 
88  virtual r_Long* convertToCLong(const char* cell, r_Long* value) const;
89  /*@Doc:
90  */
91 
92  virtual char* makeFromCLong(char* cell, const r_Long* value) const;
93 
94  static const char* Name;
95 
96 protected:
97 
98  virtual void readFromDb() throw (r_Error);
99  /*@Doc:
100  initializes the attributes of this type.
101  there is no database activity. this is hard coded.
102  */
103 
104 };
105 
106 #endif
virtual char * makeFromCLong(char *cell, const r_Long *value) const
Definition: error.hh:88
virtual void printCell(ostream &stream, const char *cell) const
Definition: oidif.hh:67
Definition: octettype.hh:59
OctetType & operator=(const OctetType &old)
virtual r_Long * convertToCLong(const char *cell, r_Long *value) const
virtual ~OctetType()
Definition: integraltype.hh:53
static const char * Name
Definition: octettype.hh:94
virtual void readFromDb()
int r_Long
Definition: odmgtypes.hh:100