Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
PostProcessorWriterBase.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* PostProcessorWriterBase.h (C) 2000-2026 */
9/* */
10/* Base class for a writer for post-processing information. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_POSTPROCESSORWRITERBASE_H
13#define ARCANE_CORE_POSTPROCESSORWRITERBASE_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/core/BasicService.h"
18#include "arcane/core/IPostProcessorWriter.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
30
31/*---------------------------------------------------------------------------*/
32/*---------------------------------------------------------------------------*/
33
34/*!
35 * \brief Base class for a writer for post-processing information.
36 */
37class ARCANE_CORE_EXPORT PostProcessorWriterCommonBase
39{
40 public:
41
42 PostProcessorWriterCommonBase();
43 ~PostProcessorWriterCommonBase() override;
44
45 public:
46
47 void setBaseDirectoryName(const String& dirname) override;
48 const String& baseDirectoryName() override;
49
50 void setBaseFileName(const String& filename) override;
51 const String& baseFileName() override;
52
53 void setTimes(ConstArrayView<Real> times) override;
54 ConstArrayView<Real> times() override;
55
58
60 ItemGroupCollection groups() override;
61
62 private:
63
64 PostProcessorWriterBasePrivate* m_p = nullptr; //! Implementation
65};
66
67/*---------------------------------------------------------------------------*/
68/*---------------------------------------------------------------------------*/
69
70/*!
71 * \ingroup StandardService
72 * \brief Base class for a writer service for post-processing information.
73 */
74class ARCANE_CORE_EXPORT PostProcessorWriterBase
75: public BasicService
76, public PostProcessorWriterCommonBase
77{
78 public:
79
80 explicit PostProcessorWriterBase(const ServiceBuildInfo& sbi);
81
82 public:
83
84 void build() override {}
85};
86
87/*---------------------------------------------------------------------------*/
88/*---------------------------------------------------------------------------*/
89
90} // namespace Arcane
91
92/*---------------------------------------------------------------------------*/
93/*---------------------------------------------------------------------------*/
94
95#endif
Constant view of an array of type T.
Interface for a writer for post-processing information.
void build() override
Build-level construction of the service.
ItemGroupCollection groups() override
List of groups to save.
VariableCollection variables() override
List of variables to save.
ConstArrayView< Real > times() override
List of saved times.
const String & baseDirectoryName() override
Name of the output directory for files.
void setTimes(ConstArrayView< Real > times) override
Positions the list of times.
const String & baseFileName() override
Name of the file containing the outputs.
void setBaseDirectoryName(const String &dirname) override
Positions the output directory name for files.
void setGroups(ItemGroupCollection groups) override
Positions the list of groups to output.
void setVariables(VariableCollection variables) override
Positions the list of variables to output.
void setBaseFileName(const String &filename) override
Positions the name of the file containing the outputs.
Structure containing the information to create a service.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Collection< ItemGroup > ItemGroupCollection
Collection of mesh item groups.