2025-04-25 10:44:55 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2025 Equinor ASA
|
|
|
|
|
//
|
|
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Summary/RiaSummaryDefines.h"
|
|
|
|
|
|
|
|
|
|
#include <QStringList>
|
|
|
|
|
|
|
|
|
|
class RimSummaryCase;
|
|
|
|
|
|
|
|
|
|
namespace RiaEnsembleImportTools
|
|
|
|
|
{
|
|
|
|
|
struct CreateConfig
|
|
|
|
|
{
|
|
|
|
|
RiaDefines::FileType fileType;
|
|
|
|
|
bool ensembleOrGroup;
|
|
|
|
|
bool allowDialogs;
|
2025-07-17 16:29:40 +02:00
|
|
|
bool buildSummaryAddresses = true;
|
2025-04-25 10:44:55 +02:00
|
|
|
};
|
2025-05-12 12:30:15 +02:00
|
|
|
std::vector<RimSummaryCase*> createSummaryCasesFromFiles( const QStringList& fileNames, CreateConfig createConfig );
|
2025-04-25 10:44:55 +02:00
|
|
|
|
2025-05-03 09:02:07 +02:00
|
|
|
std::pair<QString, QString> findPathPattern( const QStringList& filePaths, const QString& placeholderString );
|
2025-06-11 15:43:53 +02:00
|
|
|
|
|
|
|
|
QStringList createPathsFromPattern( const QString& basePath, const QString& numberRange, const QString& placeholderString );
|
2025-07-24 14:29:30 +02:00
|
|
|
QStringList createPathsBySearchingFileSystem_obsolete( const QString& pathPattern,
|
|
|
|
|
const QString& placeholderString,
|
|
|
|
|
const QString& enumerationString );
|
|
|
|
|
QStringList createPathsBySearchingFileSystem( const QString& pathPattern, const QString& extension, const QString& placeholderString );
|
2025-06-11 15:43:53 +02:00
|
|
|
QStringList getMatchingFiles( const QString& basePath, const QString& regexPattern );
|
|
|
|
|
|
2025-04-25 10:44:55 +02:00
|
|
|
} // namespace RiaEnsembleImportTools
|