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