Loading [MathJax]/extensions/MathMenu.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
x
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
▼
OGS
►
OpenGeoSys 6.5.4-352-gf10a2b326e source code documentation
►
OGS CTests—Project Files
►
OGS Input File Parameters—Quality Assurance
►
OGS Input File Parameters
BulkMappingDocuPage
Todo List
OGS Input File Parameters—List of incomplete documentation pages
Bibliography
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
Applications
►
ApplicationsLib
►
CLI
►
DataExplorer
►
DataHolderLib
▼
FileIO
►
FEFLOW
►
Gmsh
▼
GocadIO
►
CoordinateSystem.cpp
►
CoordinateSystem.h
►
GenerateFaceSetMeshes.cpp
►
GenerateFaceSetMeshes.h
►
GocadAsciiReader.cpp
►
GocadAsciiReader.h
►
GocadEnums.cpp
►
GocadEnums.h
►
GocadNode.cpp
►
GocadNode.h
►
GocadSGridReader.cpp
►
GocadSGridReader.h
►
IndexCalculator.h
►
Layer.cpp
►
Layer.h
►
Property.cpp
►
Property.h
►
Region.cpp
►
Region.h
►
Legacy
►
SWMM
►
XmlIO
CsvInterface.cpp
►
CsvInterface.h
►
GMSInterface.cpp
►
GMSInterface.h
►
PetrelInterface.cpp
►
PetrelInterface.h
►
readGeometryFromFile.cpp
►
readGeometryFromFile.h
SHPInterface.cpp
►
SHPInterface.h
►
TetGenInterface.cpp
►
TetGenInterface.h
►
writeGeometryToFile.cpp
►
writeGeometryToFile.h
►
InSituLib
►
Python
►
Utils
►
BaseLib
►
build
►
ChemistryLib
Documentation
►
GeoLib
►
InfoLib
►
MaterialLib
►
MathLib
►
MeshGeoToolsLib
►
MeshLib
►
MeshToolsLib
►
NumLib
►
ParameterLib
►
ProcessLib
►
File Members
Region.cpp
Go to the documentation of this file.
1
10
#include "
Region.h
"
11
12
#include <iterator>
13
#include <sstream>
14
15
#include "
BaseLib/Logging.h
"
16
17
namespace
FileIO
18
{
19
namespace
Gocad
20
{
21
std::ostream&
operator<<
(std::ostream& os,
Region
const
& r)
22
{
23
return
os <<
"("
<< r.
name
<<
"|"
<< r.
bit
<<
")"
;
24
}
21
std::ostream&
operator<<
(std::ostream& os,
Region
const
& r) {
…
}
25
26
Region
parseRegion
(std::string
const
& line)
27
{
28
std::istringstream iss(line);
29
std::istream_iterator<std::string> it(iss);
30
// Check first word is REGION or MODEL_REGION.
31
if
(*it != std::string(
"REGION"
) && *it != std::string(
"MODEL_REGION"
))
32
{
33
ERR
(
"Expected REGION or MODEL_REGION keyword but '{:s}' found.\n"
,
34
it->c_str());
35
throw
std::runtime_error(
36
"In parseRegion() expected REGION or MODEL_REGION keyword not "
37
"found.\n"
);
38
}
39
++it;
40
41
Region
r;
42
r.
name
= *it;
43
++it;
44
r.
bit
= atoi(it->c_str());
45
46
return
r;
47
}
26
Region
parseRegion
(std::string
const
& line) {
…
}
48
49
}
// end namespace Gocad
50
}
// end namespace FileIO
Logging.h
ERR
void ERR(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:45
Region.h
FileIO::Gocad::operator<<
std::ostream & operator<<(std::ostream &os, CoordinateSystem const &c)
Definition
CoordinateSystem.cpp:111
FileIO::Gocad::parseRegion
Region parseRegion(std::string const &line)
Definition
Region.cpp:26
FileIO
Definition
SHPImportDialog.h:19
FileIO::Gocad::Region
Definition
Region.h:20
FileIO::Gocad::Region::name
std::string name
Definition
Region.h:21
FileIO::Gocad::Region::bit
unsigned bit
Definition
Region.h:22
Applications
FileIO
GocadIO
Region.cpp
Generated by
1.11.0