OGS
Layer.h
Go to the documentation of this file.
1
10#pragma once
11
12#include <algorithm>
13#include <string>
14#include <vector>
15
16#include "Region.h"
17
18namespace FileIO
19{
20namespace Gocad
21{
22// Each model layer own several regions.
23struct Layer final
24{
25 std::vector<Region> regions;
26
27 bool hasRegion(Region const& r) const
28 {
29 return (std::find(regions.begin(), regions.end(), r) != regions.end());
30 }
31};
32
33std::ostream& operator<<(std::ostream& os, Layer const& l);
34
35Layer parseLayer(std::string const& line, std::vector<Region> const& regions);
36
37} // end namespace Gocad
38} // end namespace FileIO
std::ostream & operator<<(std::ostream &os, CoordinateSystem const &c)
Layer parseLayer(std::string const &line, std::vector< Region > const &regions)
Definition Layer.cpp:29
bool hasRegion(Region const &r) const
Definition Layer.h:27
std::vector< Region > regions
Definition Layer.h:25