GeoTessCPP 2.6.1 Software to facilitate storage and retrieval of 3D information about the Earth.

Loading...
Searching...
No Matches
GeoTessInterpolatorType.h
Go to the documentation of this file.
1//- ****************************************************************************
2//-
3//- Copyright 2009 Sandia Corporation. Under the terms of Contract
4//- DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government
5//- retains certain rights in this software.
6//-
7//- BSD Open Source License.
8//- All rights reserved.
9//-
10//- Redistribution and use in source and binary forms, with or without
11//- modification, are permitted provided that the following conditions are met:
12//-
13//- * Redistributions of source code must retain the above copyright notice,
14//- this list of conditions and the following disclaimer.
15//- * Redistributions in binary form must reproduce the above copyright
16//- notice, this list of conditions and the following disclaimer in the
17//- documentation and/or other materials provided with the distribution.
18//- * Neither the name of Sandia National Laboratories nor the names of its
19//- contributors may be used to endorse or promote products derived from
20//- this software without specific prior written permission.
21//-
22//- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23//- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24//- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25//- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
26//- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27//- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28//- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29//- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30//- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31//- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32//- POSSIBILITY OF SUCH DAMAGE.
33//-
34//- ****************************************************************************
35
36#ifndef INTERPOLATORTYPE_OBJECT_H
37#define INTERPOLATORTYPE_OBJECT_H
38
39// **** _SYSTEM INCLUDES_ ******************************************************
40
41#include <iostream>
42#include <string>
43
44// use standard library objects
45 using namespace std;
46
47// **** _LOCAL INCLUDES_ *******************************************************
48
49#include "GeoTessEnumType.h"
50
51// **** _BEGIN GEOTESS NAMESPACE_ **********************************************
52
53 namespace geotess {
54
55// **** _FORWARD REFERENCES_ ***************************************************
56
57// **** _CLASS DEFINITION_ *****************************************************
58
71 class GEOTESS_EXP_IMP GeoTessInterpolatorType : public GeoTessEnumType
72{
73 private:
74
78 GeoTessInterpolatorType() : GeoTessEnumType() {}
79
83 GeoTessInterpolatorType(const GeoTessInterpolatorType& it) : GeoTessEnumType(it) {}
84
88 GeoTessInterpolatorType& operator=(const GeoTessInterpolatorType& it)
89 { return *this; };
90
94 static const int aSize;
95
100 static inline int nextOrdinal ()
101 { static int firstOrdinal = 0;
102 return firstOrdinal++; };
103
109 GeoTessInterpolatorType (const string& name) :
110 GeoTessEnumType(name, nextOrdinal()) {};
111
112 public:
113
114// /**
115// * Assignment Operator.
116// */
117// InterpolatorType& InterpolatorType::operator=(const InterpolatorType& it)
118// {
119// EnumType::operator=(it);
120//
121// return *this;
122// }
123
127 static const GeoTessInterpolatorType LINEAR;
128 static const GeoTessInterpolatorType NATURAL_NEIGHBOR;
129 static const GeoTessInterpolatorType CUBIC_SPLINE;
130
134 static const GeoTessInterpolatorType* aArray[];
135
139 virtual ~GeoTessInterpolatorType() {};
140
148 static const GeoTessInterpolatorType* valueOf(const string& s)
149 { return (const GeoTessInterpolatorType*) GeoTessEnumType::valueOf(s, (GeoTessEnumType const* const* const) aArray, aSize); };
150
154 static GeoTessInterpolatorType const* const* const values() { return aArray; };
155
159 static int size() { return aSize; };
160
161}; // end class InterpolatorType
162
163} // end namespace geotess
164
165#endif // INTERPOLATORTYPE_OBJECT_H
GEOTESS_EXP_IMP
#define GEOTESS_EXP_IMP
Definition CPPGlobals.h:71
GeoTessEnumType.h
geotess::GeoTessEnumType::GeoTessEnumType
GeoTessEnumType()
Definition GeoTessEnumType.h:74
geotess::GeoTessEnumType::valueOf
static const GeoTessEnumType * valueOf(const string &s, GeoTessEnumType const *const *const array, int n)
geotess::GeoTessEnumType::name
string name() const
Definition GeoTessEnumType.h:143
geotess::GeoTessInterpolatorType::values
static GeoTessInterpolatorType const *const *const values()
Definition GeoTessInterpolatorType.h:154
geotess::GeoTessInterpolatorType::LINEAR
static const GeoTessInterpolatorType LINEAR
Definition GeoTessInterpolatorType.h:127
geotess::GeoTessInterpolatorType::NATURAL_NEIGHBOR
static const GeoTessInterpolatorType NATURAL_NEIGHBOR
Definition GeoTessInterpolatorType.h:128
geotess::GeoTessInterpolatorType::~GeoTessInterpolatorType
virtual ~GeoTessInterpolatorType()
Definition GeoTessInterpolatorType.h:139
geotess::GeoTessInterpolatorType::aArray
static const GeoTessInterpolatorType * aArray[]
Definition GeoTessInterpolatorType.h:134
geotess::GeoTessInterpolatorType::size
static int size()
Definition GeoTessInterpolatorType.h:159
geotess::GeoTessInterpolatorType::CUBIC_SPLINE
static const GeoTessInterpolatorType CUBIC_SPLINE
Definition GeoTessInterpolatorType.h:129
geotess::GeoTessInterpolatorType::valueOf
static const GeoTessInterpolatorType * valueOf(const string &s)
Definition GeoTessInterpolatorType.h:148
geotess
Definition ArrayReuse.h:55