swh:1:snp:6088ab52ef49920e01e3f334cdf4d5d6c8a822b9
Raw File
Tip revision: 805d917b35b70ff779a3963230bcdd3eb289525d authored by Lars Bilke on 25 March 2021, 07:30:19 UTC
[cmake] Replace file(REAL_PATH ..) with get_filename_component.
Tip revision: 805d917
GMSHLine.cpp
/**
 *
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#include <ostream>
#include "GMSHLine.h"

namespace FileIO
{
namespace GMSH
{

GMSHLine::GMSHLine(std::size_t start_point_id, std::size_t end_point_id) :
    _start_pnt_id(start_point_id), _end_pnt_id(end_point_id)
{}

void GMSHLine::write(std::ostream &os, std::size_t id) const
{
    os << "Line(" << id << ") = {" << _start_pnt_id << "," << _end_pnt_id << "};\n";
}

} // end namespace GMSH
} // end namespace FileIO
back to top