12#ifndef ARCANE_CORE_VERIFIERSERVICE_H
13#define ARCANE_CORE_VERIFIERSERVICE_H
17#include "arcane/utils/String.h"
20#include "arcane/core/AbstractService.h"
21#include "arcane/core/IVerifierService.h"
22#include "arcane/core/VariableComparer.h"
44class ARCANE_CORE_EXPORT VerifierService
59 : m_variable_name(var_name)
87 String resultfileName()
const override {
return m_result_file_name; }
91 eCompareMode compareMode()
const override {
return m_compare_mode; }
98 m_compute_diff_method = v;
102 return m_compute_diff_method;
107 virtual void _doVerif(IDataReader* reader,
const VariableCollection& variables,
bool compare_ghost);
109 virtual void _getVariables(VariableList variables,
bool parallel_sequential);
113 ISubDomain* subDomain() {
return m_sub_domain; }
118 ISubDomain* m_sub_domain =
nullptr;
119 IServiceInfo* m_service_info =
nullptr;
121 String m_result_file_name;
123 eCompareMode m_compare_mode = eCompareMode::Values;
128 template <
typename ReaderType>
void
129 _doVerif2(ReaderType reader,
const VariableList& variables,
bool compare_ghost);
Declarations of Arcane's general types.
AbstractService(const ServiceBuildInfo &)
Constructor from a ServiceBuildInfo.
Interface of the base class for main arcane objects.
Interface for reading variable data.
Interface for service or module information.
Interface of the data verification service between two executions.
eCompareMode
Comparison mode.
Structure containing the information to create a service.
Unicode character string.
IBase * serviceParent() const override
Access to the base interface of main Arcane objects.
String fileName() const override
Name of the file containing the reference values.
void setComputeDifferenceMethod(eVariableComparerComputeDifferenceMethod v) override
Method to use for calculating the difference between two values.
IService * serviceInterface() override
Returns the low-level IService interface of the service.
void setFileName(const String &file_name) override
Sets the name of the file containing the reference values.
void setCompareMode(eCompareMode v) override
Desired comparison type.
void setSubDir(const String &sub_dir) override
Sets the name of the subdirectory containing the reference values.
IServiceInfo * serviceInfo() const override
Access to service information. See IServiceInfo for details.
void setResultFileName(const String &file_name) override
Name of the file containing the results.
String subDir() const override
Name of the file containing the reference values.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int64_t Int64
Signed integer type of 64 bits.
eVariableComparerComputeDifferenceMethod
Method used to calculate the difference between two values v1 and v2.