openModeller  Version 1.5.0
EnvCell.h
Go to the documentation of this file.
1 /* **************************************
2  * GARP Modeling Package
3  *
4  * **************************************
5  *
6  * Copyright (c), The Center for Research, University of Kansas, 2385 Irving Hill Road, Lawrence, KS 66044-4755, USA.
7  * Copyright (C), David R.B. Stockwell of Symbiotik Pty. Ltd.
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the license that is distributed with the software.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * license.txt file included with this software for more details.
16  */
17 
18 // ============================================================================
19 // EnvCell.h: interface for the EnvCell class.
20 //
21 // ============================================================================
22 
23 #ifndef __ENVCELL_H__
24 #define __ENVCELL_H__
25 
26 #include "Utilities.h"
27 
28 class EnvCell
29 {
30 public:
31  int intCount;
33 
34  // coordinates
35  int intPos;
36  double x, y;
37 
38 public:
39 
40  EnvCell();
41  EnvCell(int ct, BYTE * val);
42  EnvCell(int ct, BYTE * val, int pos, double x, double y);
43  virtual ~EnvCell();
44 
45  void setSize(int newSize);
46  int size();
47  void setValues(BYTE * newValues);
48  BYTE * getValues();
49 
50  char * toXML();
51 
52  bool operator==(EnvCell oCell);
53  bool operator!=(EnvCell oCell);
54 };
55 
56 // ============================================================================
57 #endif // __ENVCELL_H__
58 
EnvCell()
Definition: EnvCell.cpp:28
char * toXML()
Definition: EnvCell.cpp:113
BYTE * values
Definition: EnvCell.h:32
void setSize(int newSize)
Definition: EnvCell.cpp:64
bool operator!=(EnvCell oCell)
Definition: EnvCell.cpp:107
unsigned char BYTE
Definition: Utilities.h:36
int intCount
Definition: EnvCell.h:31
int intPos
Definition: EnvCell.h:35
BYTE * getValues()
Definition: EnvCell.cpp:82
virtual ~EnvCell()
Definition: EnvCell.cpp:59
double x
Definition: EnvCell.h:36
double y
Definition: EnvCell.h:36
bool operator==(EnvCell oCell)
Definition: EnvCell.cpp:88
void setValues(BYTE *newValues)
Definition: EnvCell.cpp:76
int size()
Definition: EnvCell.cpp:70