rasdaman complete source
sintervaltype.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 Lesser 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 Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with rasdaman community. If not, see <http://www.gnu.org/licenses/>.
16  *
17  * Copyright 2003 - 2010 Peter Baumann / rasdaman GmbH.
18  *
19  * For more information please see <http://www.rasdaman.org>
20  * or contact Peter Baumann via <baumann@rasdaman.com>.
21 */
22 
33 #ifndef _D_SINTERVAL_TYPE_
34 #define _D_SINTERVAL_TYPE_
35 
36 #include "raslib/type.hh"
37 
38 //@ManMemo: Module: {\bf raslib}
39 
40 /*@Doc:
41  This class represents the sinterval type in the ODMG conformant
42  representation of the RasDaMan type system.
43 */
44 
45 class r_Sinterval_Type : public r_Type
46 {
47 public:
50 
52  r_Sinterval_Type( const r_Sinterval_Type& oldObj );
53 
55  virtual r_Type* clone() const;
56 
58  virtual r_Type::r_Type_Id type_id() const;
59 
61  virtual void convertToLittleEndian(char* cells, r_Area noCells) const;
62 
64  virtual void convertToBigEndian(char* cells, r_Area noCells) const;
65 
67  virtual void print_status( std::ostream& s = std::cout ) const;
68 
69  virtual bool isSintervalType() const;
70 
73 };
74 
75 //@Doc: write the status of a sinterval type to a stream
76 extern std::ostream &operator<<( std::ostream &str, const r_Sinterval_Type &type );
77 
78 #endif
79 
80 
81 
virtual void print_status(std::ostream &s=std::cout) const
writes state of object to specified stream
std::ostream & operator<<(std::ostream &str, const r_Sinterval_Type &type)
Definition: raslib/type.hh:56
virtual r_Type * clone() const
clone operation
virtual r_Type::r_Type_Id type_id() const
retrieve id of the type.
r_Sinterval_Type()
default constructor
virtual void convertToBigEndian(char *cells, r_Area noCells) const
converts array of cells from Unix byte order to NT byte order.
r_Type_Id
Definition: raslib/type.hh:61
virtual bool isSintervalType() const
check, if type is a Sinterval
virtual void convertToLittleEndian(char *cells, r_Area noCells) const
converts array of cells from NT byte order to Unix byte order.
~r_Sinterval_Type()
destructor
Definition: sintervaltype.hh:45