Loading [MathJax]/extensions/tex2jax.js
OGS
Toggle main menu visibility
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
z
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
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
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
i
k
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
Variables
Typedefs
Enumerations
Macros
b
c
g
m
n
o
p
r
s
t
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
}
23
std::string
convertGeoTypeToString
(
GEOTYPE
geo_type) {
…
}
39
40
}
// end namespace GeoLib
Error.h
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
GeoType.h
Definition of the GEOTYPE enumeration.
GeoLib
Definition
ProjectData.h:36
GeoLib::convertGeoTypeToString
std::string convertGeoTypeToString(GEOTYPE geo_type)
Definition
GeoType.cpp:23
GeoLib::GEOTYPE
GEOTYPE
Definition
GeoType.h:23
GeoLib::GEOTYPE::SURFACE
@ SURFACE
GeoLib::GEOTYPE::POINT
@ POINT
GeoLib::GEOTYPE::POLYLINE
@ POLYLINE
GeoLib
GeoType.cpp
Generated by
1.12.0