swh:1:snp:6088ab52ef49920e01e3f334cdf4d5d6c8a822b9
Raw File
Tip revision: df2b56d9fed0cc4e2743742efa76f8c0ed443d19 authored by Dmitri Naumov on 25 February 2021, 21:50:39 UTC
[PL] Use constexpr if replacing enable_if.
Tip revision: df2b56d
PetrelInterface.h
/**
 * \file
 * \author Thomas Fischer
 * \date   2010-02-16
 * \brief  Definition of the PetrelInterface class.
 *
 * \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
 *
 * @file PetrelInterface.h
 * @date 2010-02-16
 * @author Thomas Fischer
 */

#pragma once

#include <iosfwd>
#include <list>
#include <string>
#include <vector>

namespace GeoLib
{
    class GEOObjects;
    class Point;
    class Polyline;
}

namespace FileIO
{
class PetrelInterface final
{
public:
    PetrelInterface(std::list<std::string> &sfc_fnames,
                    std::list<std::string> &well_path_fnames,
                    std::string &unique_model_name,
                    GeoLib::GEOObjects* geo_obj);

    PetrelInterface(PetrelInterface const& other) = delete;
    PetrelInterface(PetrelInterface&& other) = delete;
    PetrelInterface& operator=(PetrelInterface const&) = delete;
    PetrelInterface& operator=(PetrelInterface&&) = delete;

private:
    void readPetrelSurface (std::istream &in);
    void readPetrelWellTrace (std::istream &in);
    void readPetrelWellTraceData (std::istream &in);
    std::string _unique_name;
    std::vector<GeoLib::Point*>* pnt_vec;
    std::vector<GeoLib::Point*>* well_vec;
    std::vector<GeoLib::Polyline*>* ply_vec;
    static const std::size_t MAX_COLS_PER_ROW = 256;
};
} // end namespace FileIO
back to top