GEOS
3.15.0dev
include
geos
operation
grid
Side.h
1
/**********************************************************************
2
*
3
* GEOS - Geometry Engine Open Source
4
* http://geos.osgeo.org
5
*
6
* Copyright (C) 2018-2025 ISciences, LLC
7
*
8
* This is free software; you can redistribute and/or modify it under
9
* the terms of the GNU Lesser General Public Licence as published
10
* by the Free Software Foundation.
11
* See the COPYING file for more information.
12
*
13
**********************************************************************/
14
15
#pragma once
16
17
#include <iostream>
18
19
namespace
geos::operation::grid {
20
21
enum class
Side
22
{
23
NONE
,
24
LEFT,
25
RIGHT,
26
TOP,
27
BOTTOM
28
};
29
30
inline
std::ostream&
31
operator<<(std::ostream& os,
const
Side& s)
32
{
33
switch
(s) {
34
case
Side::NONE:
35
os <<
"none"
;
36
return
os;
37
case
Side::LEFT:
38
os <<
"left"
;
39
return
os;
40
case
Side::RIGHT:
41
os <<
"right"
;
42
return
os;
43
case
Side::TOP:
44
os <<
"top"
;
45
return
os;
46
case
Side::BOTTOM:
47
os <<
"bottom"
;
48
return
os;
49
}
50
51
return
os;
// unreachable statement needed for -Werror=return-type
52
}
53
54
}
geos::geom::Location::NONE
@ NONE
Generated by
1.9.8