mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactoring to be able to compile on Linux
This commit is contained in:
parent
7b4b13906f
commit
69116784ff
@ -132,22 +132,21 @@ void RicWellPathExportCompletionDataFeature::exportToFolder(RimWellPath* wellPat
|
||||
|
||||
// COMPDAT
|
||||
{
|
||||
std::vector<RifEclipseOutputTableColumn> header = {
|
||||
RifEclipseOutputTableColumn{"Well", LEFT},
|
||||
RifEclipseOutputTableColumn{"I", LEFT},
|
||||
RifEclipseOutputTableColumn{"J", LEFT},
|
||||
RifEclipseOutputTableColumn{"K1", LEFT},
|
||||
RifEclipseOutputTableColumn{"K2", LEFT},
|
||||
RifEclipseOutputTableColumn{"Status", LEFT},
|
||||
RifEclipseOutputTableColumn{"SAT", LEFT},
|
||||
RifEclipseOutputTableColumn{"TR", LEFT},
|
||||
RifEclipseOutputTableColumn{"DIAM", LEFT},
|
||||
RifEclipseOutputTableColumn{"KH", LEFT},
|
||||
RifEclipseOutputTableColumn{"S", LEFT},
|
||||
RifEclipseOutputTableColumn{"Df", LEFT},
|
||||
RifEclipseOutputTableColumn{"DIR", LEFT},
|
||||
RifEclipseOutputTableColumn{"r0", LEFT}
|
||||
};
|
||||
std::vector<RifEclipseOutputTableColumn> header;
|
||||
header.push_back(RifEclipseOutputTableColumn("Well", LEFT));
|
||||
header.push_back(RifEclipseOutputTableColumn("I", LEFT));
|
||||
header.push_back(RifEclipseOutputTableColumn("J", LEFT));
|
||||
header.push_back(RifEclipseOutputTableColumn("K1", LEFT));
|
||||
header.push_back(RifEclipseOutputTableColumn("K2", LEFT));
|
||||
header.push_back(RifEclipseOutputTableColumn("Status", LEFT));
|
||||
header.push_back(RifEclipseOutputTableColumn("SAT", LEFT));
|
||||
header.push_back(RifEclipseOutputTableColumn("TR", LEFT));
|
||||
header.push_back(RifEclipseOutputTableColumn("DIAM", LEFT));
|
||||
header.push_back(RifEclipseOutputTableColumn("KH", LEFT));
|
||||
header.push_back(RifEclipseOutputTableColumn("S", LEFT));
|
||||
header.push_back(RifEclipseOutputTableColumn("Df", LEFT));
|
||||
header.push_back(RifEclipseOutputTableColumn("DIR", LEFT));
|
||||
header.push_back(RifEclipseOutputTableColumn("r0", LEFT));
|
||||
|
||||
formatter.keyword("COMPDAT");
|
||||
formatter.header(header);
|
||||
|
@ -18,6 +18,8 @@
|
||||
|
||||
#include "RifEclipseOutputTableFormatter.h"
|
||||
|
||||
#include "cvfAssert.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -18,8 +18,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "cvfObject.h"
|
||||
|
||||
#include <QString>
|
||||
#include <QTextStream>
|
||||
|
||||
@ -57,16 +55,23 @@ struct RifEclipseOutputTableLine
|
||||
//==================================================================================================
|
||||
struct RifEclipseOutputTableColumn
|
||||
{
|
||||
RifEclipseOutputTableColumn(const QString& title, RifEclipseOutputTableAlignment alignment)
|
||||
: title(title),
|
||||
alignment(alignment),
|
||||
width(-1)
|
||||
{
|
||||
}
|
||||
|
||||
QString title;
|
||||
RifEclipseOutputTableAlignment alignment;
|
||||
int width = -1;
|
||||
int width;
|
||||
};
|
||||
|
||||
|
||||
//==================================================================================================
|
||||
//
|
||||
//==================================================================================================
|
||||
class RifEclipseOutputTableFormatter : public cvf::Object
|
||||
class RifEclipseOutputTableFormatter
|
||||
{
|
||||
public:
|
||||
RifEclipseOutputTableFormatter(QTextStream& out);
|
||||
|
Loading…
Reference in New Issue
Block a user