12#ifndef ARCANE_CORE_ITIMEHISTORYMNG_H
13#define ARCANE_CORE_ITIMEHISTORYMNG_H
19#include "arcane/utils/FatalErrorException.h"
46 , m_end_time(end_time)
47 , m_subdomain_id(subdomain_id)
76 const String& name()
const {
return m_name; }
77 bool endTime()
const {
return m_end_time; }
78 bool isLocal()
const {
return m_subdomain_id != NULL_SUB_DOMAIN_ID; }
79 Integer localSubDomainId()
const {
return m_subdomain_id; }
149 virtual void addValue(
const String& name,
Real value,
bool end_time =
true,
bool is_local =
false) = 0;
216 virtual void timeHistoryBegin() = 0;
217 virtual void timeHistoryEnd() = 0;
218 virtual void timeHistoryInit() = 0;
219 virtual void timeHistoryStartInit() = 0;
220 virtual void timeHistoryContinueInit() = 0;
221 virtual void timeHistoryRestore() = 0;
228 ARCANE_UNUSED(writer);
229 ARCANE_FATAL(
"No longer supported. Use 'ITimeHistoryCurveWriter2' interface");
235 ARCANE_UNUSED(writer);
236 ARCANE_FATAL(
"No longer supported. Use 'ITimeHistoryCurveWriter2' interface");
#define ARCANE_FATAL(...)
Macro throwing a FatalErrorException.
Declarations of Arcane's general types.
Declarations of types used in Arcane.
Class interface allowing the addition of one or more values to a value history.
Interface for a curve writer.
Interface of a curve writer.
Interface for the internal part of a value history manager.
Class managing a history of values.
virtual void removeCurveWriter(ITimeHistoryCurveWriter2 *writer)=0
Removes a writer.
virtual void dumpCurves(ITimeHistoryCurveWriter2 *writer)=0
Uses the writer writer to output all curves.
virtual bool isDumpActive() const =0
Indicates the output activation status.
virtual void setShrinkActive(bool is_active)=0
Sets the boolean indicating if the history is compressed.
virtual void addValue(const String &name, Real value, bool end_time=true, bool is_local=false)=0
Adds the value value to the history name.
virtual void addValue(const String &name, RealConstArrayView value, bool end_time=true, bool is_local=false)=0
Adds the value value to the history name.
virtual ARCANE_DEPRECATED void removeCurveWriter(ITimeHistoryCurveWriter *writer)
Removes a writer.
virtual void addValue(const String &name, Int64ConstArrayView value, bool end_time=true, bool is_local=false)=0
virtual void setDumpActive(bool is_active)=0
Sets the output activation status.
virtual bool isShrinkActive() const =0
Returns a boolean indicating if the history is compressed.
virtual ~ITimeHistoryMng()=default
Frees resources.
virtual void dumpHistory(bool is_verbose)=0
Saves the history.
virtual void setActive(bool is_active)=0
Sets the activation status.
virtual void addCurveWriter(ITimeHistoryCurveWriter2 *writer)=0
Adds a writer.
virtual void addValue(const String &name, Int64 value, bool end_time=true, bool is_local=false)=0
virtual void applyTransformation(ITimeHistoryTransformer *v)=0
Applies the transformation v to all curves.
virtual void removeCurveWriter(const String &name)=0
Removes the writer with name name.
virtual void addValue(const String &name, Int32ConstArrayView value, bool end_time=true, bool is_local=false)=0
Adds the value value to the history name.
virtual void addValue(const String &name, Int32 value, bool end_time=true, bool is_local=false)=0
Adds the value value to the history name.
virtual ARCANE_DEPRECATED void addCurveWriter(ITimeHistoryCurveWriter *writer)
Adds a writer.
virtual bool active() const =0
Indicates the activation status.
virtual ITimeHistoryMngInternal * _internalApi()
Internal Arcane API.
Interface of an object transforming history curves.
Unicode character string.
TimeHistoryAddValueArg(const String &name, bool end_time, Integer subdomain_id)
Constructor with three parameters.
TimeHistoryAddValueArg(const String &name)
Constructor with one parameter.
TimeHistoryAddValueArg(const String &name, bool end_time)
Constructor with two parameters.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int64_t Int64
Signed integer type of 64 bits.
Int32 Integer
Type representing an integer.
ConstArrayView< Int32 > Int32ConstArrayView
C equivalent of a 1D array of 32-bit integers.
ConstArrayView< Int64 > Int64ConstArrayView
C equivalent of a 1D array of 64-bit integers.
double Real
Type representing a real number.
std::int32_t Int32
Signed integer type of 32 bits.
ConstArrayView< Real > RealConstArrayView
C equivalent of a 1D array of reals.