Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
DataStorageBuildInfo.h
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/* IDataStorageFactory.h (C) 2000-2020 */
9/* */
10/* Informations pour construire une instance de 'IData'. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_DATATYPE_DATASTORAGEBUILDINFO_H
13#define ARCANE_DATATYPE_DATASTORAGEBUILDINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/ArcaneTypes.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27/*!
28 * \brief Informations pour construire une instance de 'IData'.
29 */
30class ARCANE_CORE_EXPORT DataStorageBuildInfo
31{
32 public:
33
34 DataStorageBuildInfo(ITraceMng* tm) : m_trace_mng(tm){}
35
36 public:
37
38 ITraceMng* traceMng() const { return m_trace_mng; }
39 IMemoryAllocator* memoryAllocator() const { return m_memory_allocator; }
40 void setMemoryAllocator(IMemoryAllocator* a) { m_memory_allocator = a; }
41
42 private:
43
44 ITraceMng* m_trace_mng;
45 IMemoryAllocator* m_memory_allocator = nullptr;
46};
47
48/*---------------------------------------------------------------------------*/
49/*---------------------------------------------------------------------------*/
50
51} // End namespace Arcane
52
53/*---------------------------------------------------------------------------*/
54/*---------------------------------------------------------------------------*/
55
56#endif
Informations pour construire une instance de 'IData'.
Interface du gestionnaire de traces.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-