12#ifndef ARCANE_CORE_CHECKPOINTSERVICE_H
13#define ARCANE_CORE_CHECKPOINTSERVICE_H
17#include "arcane/utils/String.h"
18#include "arcane/utils/Array.h"
20#include "arcane/core/BasicService.h"
21#include "arcane/core/ICheckpointReader.h"
22#include "arcane/core/ICheckpointWriter.h"
44class ARCANE_CORE_EXPORT CheckpointService
66 void setCurrentTimeAndIndex(
Real current_time,
Integer current_index)
override;
75 Integer currentIndex()
const {
return m_current_index; }
76 Real currentTime()
const {
return m_current_time; }
81 UniqueArray<Real> m_checkpoint_times;
82 Real m_current_time = -1.0;
84 String m_reader_meta_data;
85 String m_base_directory_name;
String readerMetaData() const override
Metadata for the reader associated with this writer.
void setBaseDirectoryName(const String &dirname) override
Sets the name of the checkpoint base directory.
String baseDirectoryName() const override
Name of the checkpoint base directory.
void setReaderMetaData(const String &s) override
Metadata associated with this reader.
void setFileName(const String &file_name) override
Sets the name of the checkpoint file.
RealConstArrayView checkpointTimes() const override
Checkpoint times.
String fileName() const override
Name of the checkpoint file.
void build() override
Build-level construction of the service.
Interface for the protection/recovery reading service.
Interface of the checkpoint/recovery write service.
Interface of the subdomain manager.
Structure containing the information to create a service.
Unicode character string.
Information about a version.
-- 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.
ConstArrayView< Real > RealConstArrayView
C equivalent of a 1D array of reals.