13#ifndef ARCANE_STD_SIMPLECSVCOMPARATORSERVICE_H
14#define ARCANE_STD_SIMPLECSVCOMPARATORSERVICE_H
18#include "arcane/core/ISimpleTableComparator.h"
19#include "arcane/core/ISimpleTableInternalMng.h"
20#include "arcane/core/ISimpleTableOutput.h"
22#include "arcane/std/SimpleCsvReaderWriter.h"
23#include "arcane/std/SimpleTableInternalComparator.h"
25#include "arcane/core/Directory.h"
26#include "arcane/core/IMesh.h"
28#include "arcane/std/SimpleCsvComparator_axl.h"
39class SimpleCsvComparatorService
46 , m_simple_table_output_ptr(
nullptr)
49 , m_output_directory(
"_ref")
52 , m_is_file_open(
false)
53 , m_is_file_read(
false)
54 , m_is_already_init(
false)
58 virtual ~SimpleCsvComparatorService() =
default;
63 void clear()
override;
91 bool _exploreColumn(
Integer position);
92 bool _exploreRows(
Integer position);
101 String m_output_directory;
105 std::ifstream m_ifstream;
115 bool m_is_already_init;
ArcaneSimpleCsvComparatorObject(const Arcane::ServiceBuildInfo &sbi)
Constructeur.
Class managing a directory.
Interface representing a simple table output.
Reference to an instance.
Structure containing the information to create a service.
void init(ISimpleTableOutput *simple_table_output_ptr) override
Method allowing the service to be initialized.
bool addColumnForComparing(const String &column_name) override
Method allowing a column to be added to the list of columns to be compared.
void editRegexColumns(const String ®ex_column) override
Method allowing a regular expression to be added to determine the columns to compare.
bool addRowForComparing(const String &row_name) override
Method allowing a row to be added to the list of rows to be compared.
void isAnArrayExclusiveColumns(bool is_exclusive) override
Method allowing definition whether the array of columns represents the columns to include in the comp...
bool addEpsilonRow(const String &row_name, Real epsilon) override
Method allowing an epsilon to be defined for a given row. This epsilon must be positive to be taken i...
bool writeReferenceFile(Integer rank) override
void isARegexExclusiveColumns(bool is_exclusive) override
Method allowing to request that the regular expression excludes columns instead of including them.
void clear() override
Method allowing the data read by readReferenceFile() to be cleared.
void print(Integer rank) override
Method allowing the read table to be displayed.
bool isReferenceExist(Integer rank) override
Method allowing to check if the reference files exist.
void isAnArrayExclusiveRows(bool is_exclusive) override
Method allowing definition whether the array of rows represents the rows to include in the comparison...
bool compareWithReference(Integer rank, bool compare_dimension_too) override
Method allowing the ISimpleTableOutput object to be compared to the reference files.
void editRegexRows(const String ®ex_row) override
Method allowing a regular expression to be added to determine the rows to compare.
bool readReferenceFile(Integer rank) override
Method allowing reference files to be read.
bool addEpsilonColumn(const String &column_name, Real epsilon) override
Method allowing an epsilon to be defined for a given column. This epsilon must be positive to be take...
void isARegexExclusiveRows(bool is_exclusive) override
Method allowing to request that the regular expression excludes rows instead of including them.
bool compareElemWithReference(const String &column_name, const String &row_name, Integer rank) override
Method allowing only an element to be compared. Both SimpleTableInternals are represented by Refs,...
void editRootDirectory(const Directory &root_directory) override
Method allowing the root directory to be modified. This allows writing or searching for reference fil...
Unicode character string.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.
double Real
Type representing a real number.