Loading [MathJax]/extensions/tex2jax.js
OGS
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
Typedefs
b
c
e
f
h
j
k
l
m
n
p
q
r
s
t
v
w
x
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
l
m
n
p
r
s
t
v
y
Classes
Class List
Class Index
Class Hierarchy
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
w
x
Variables
Typedefs
Enumerations
Macros
a
b
c
e
g
h
i
l
m
n
o
p
r
s
t
v
w
x
GeoType.cpp
Go to the documentation of this file.
1
15
#include "
GeoType.h
"
16
17
#include <cstdlib>
18
19
#include "
BaseLib/Error.h
"
20
21
namespace
GeoLib
22
{
23
std::string
convertGeoTypeToString
(
GEOTYPE
geo_type)
24
{
25
switch
(geo_type)
26
{
27
case
GEOTYPE::POINT
:
28
return
"POINT"
;
29
case
GEOTYPE::POLYLINE
:
30
return
"POLYLINE"
;
31
case
GEOTYPE::SURFACE
:
32
return
"SURFACE"
;
33
}
34
35
// Cannot happen, because switch covers all cases.
36
// Used to silence compiler warning.
37
OGS_FATAL
(
"convertGeoTypeToString(): Given geo type is not supported"
);
38
}
39
40
}
// end namespace GeoLib
Error.h
OGS_FATAL
#define OGS_FATAL(...)
Definition:
Error.h:26
GeoType.h
Definition of the GEOTYPE enumeration.
GeoLib::GEOTYPE
GEOTYPE
Definition:
GeoType.h:25
GeoLib::GEOTYPE::SURFACE
@ SURFACE
GeoLib::GEOTYPE::POINT
@ POINT
GeoLib::GEOTYPE::POLYLINE
@ POLYLINE
GeoLib
Definition:
BaseItem.h:21
GeoLib::convertGeoTypeToString
std::string convertGeoTypeToString(GEOTYPE geo_type)
Definition:
GeoType.cpp:23
GeoLib
GeoType.cpp
Generated by
1.9.1