OGS
GMSHLine.cpp
Go to the documentation of this file.
1
11#include "GMSHLine.h"
12
13#include <ostream>
14
15namespace FileIO
16{
17namespace GMSH
18{
19GMSHLine::GMSHLine(std::size_t start_point_id, std::size_t end_point_id)
20 : _start_pnt_id(start_point_id), _end_pnt_id(end_point_id)
21{
22}
23
24void GMSHLine::write(std::ostream& os, std::size_t id) const
25{
26 os << "Line(" << id << ") = {" << _start_pnt_id << "," << _end_pnt_id
27 << "};\n";
28}
29
30} // end namespace GMSH
31} // end namespace FileIO
void write(std::ostream &os, std::size_t id) const
Definition: GMSHLine.cpp:24
GMSHLine(std::size_t start_point_id, std::size_t end_point_id)
Definition: GMSHLine.cpp:19
std::size_t _start_pnt_id
Definition: GMSHLine.h:27
std::size_t _end_pnt_id
Definition: GMSHLine.h:28