Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
PostProcessorWriterBase.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 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.cc (C) 2000-2014 */
9/* */
10/* Classe de base d'un écrivain pour les informations de post-traitement. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/ArcanePrecomp.h"
15
16#include "arcane/utils/Array.h"
17#include "arcane/utils/Collection.h"
18#include "arcane/utils/String.h"
19
20#include "arcane/ArcaneTypes.h"
21#include "arcane/PostProcessorWriterBase.h"
22#include "arcane/ISubDomain.h"
23#include "arcane/ItemGroup.h"
24#include "arcane/VariableCollection.h"
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
29ARCANE_BEGIN_NAMESPACE
30
31/*---------------------------------------------------------------------------*/
32/*---------------------------------------------------------------------------*/
33
35{
36 public:
38 public:
39 String m_base_dirname;
40 String m_base_filename;
41 VariableCollection m_variables;
42 ItemGroupCollection m_groups;
43 SharedArray<Real> m_times;
44};
45
46/*---------------------------------------------------------------------------*/
47/*---------------------------------------------------------------------------*/
48
49PostProcessorWriterBasePrivate::
50PostProcessorWriterBasePrivate()
51: m_base_dirname(".")
52{
53}
54
55/*---------------------------------------------------------------------------*/
56/*---------------------------------------------------------------------------*/
57
58/*---------------------------------------------------------------------------*/
59/*---------------------------------------------------------------------------*/
60
61PostProcessorWriterBase::
62PostProcessorWriterBase(const ServiceBuildInfo& sbi)
63: BasicService(sbi)
64, m_p(new PostProcessorWriterBasePrivate())
65{
66}
67
68/*---------------------------------------------------------------------------*/
69/*---------------------------------------------------------------------------*/
70
71PostProcessorWriterBase::
72~PostProcessorWriterBase()
73{
74 delete m_p;
75}
76
77/*---------------------------------------------------------------------------*/
78/*---------------------------------------------------------------------------*/
79
82{
83 m_p->m_base_dirname = dirname;
84}
85
86/*---------------------------------------------------------------------------*/
87/*---------------------------------------------------------------------------*/
88
91{
92 return m_p->m_base_dirname;
93}
94
95/*---------------------------------------------------------------------------*/
96/*---------------------------------------------------------------------------*/
97
99setBaseFileName(const String& filename)
100{
101 m_p->m_base_filename = filename;
102}
103
104/*---------------------------------------------------------------------------*/
105/*---------------------------------------------------------------------------*/
106
109{
110 return m_p->m_base_filename;
111}
112
113/*---------------------------------------------------------------------------*/
114/*---------------------------------------------------------------------------*/
115
118{
119 m_p->m_times = times;
120}
121
122/*---------------------------------------------------------------------------*/
123/*---------------------------------------------------------------------------*/
124
127{
128 m_p->m_variables = variables;
129}
130
131/*---------------------------------------------------------------------------*/
132/*---------------------------------------------------------------------------*/
133
136{
137 m_p->m_groups = groups;
138}
139
140/*---------------------------------------------------------------------------*/
141/*---------------------------------------------------------------------------*/
142
144times()
145{
146 return m_p->m_times;
147}
148
149/*---------------------------------------------------------------------------*/
150/*---------------------------------------------------------------------------*/
151
153variables()
154{
155 return m_p->m_variables;
156}
157
158/*---------------------------------------------------------------------------*/
159/*---------------------------------------------------------------------------*/
160
162groups()
163{
164 return m_p->m_groups;
165}
166
167/*---------------------------------------------------------------------------*/
168/*---------------------------------------------------------------------------*/
169
170ARCANE_END_NAMESPACE
171
172/*---------------------------------------------------------------------------*/
173/*---------------------------------------------------------------------------*/
174
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
virtual const String & baseFileName()
Nom du fichier contenant les sorties.
virtual void setBaseFileName(const String &filename)
Positionne le nom du fichier contenant les sorties.
virtual RealConstArrayView times()
Liste des temps sauvés.
virtual void setGroups(ItemGroupCollection groups)
Positionne la liste des groupes à sortir.
virtual const String & baseDirectoryName()
Nom du répertoire de sortie des fichiers.
virtual void setVariables(VariableCollection variables)
Positionne la liste des variables à sortir.
virtual ItemGroupCollection groups()
Liste des groupes à sauver.
virtual void setTimes(RealConstArrayView times)
Positionne la liste des temps.
virtual void setBaseDirectoryName(const String &dirname)
Positionne le nom du répertoire de sortie des fichiers. Ce répertoire doit exister.
virtual VariableCollection variables()
Liste des variables à sauver.
Collection de variables.
Vue constante d'un tableau de type T.
Chaîne de caractères unicode.