14#ifndef ARCANE_SRC_ARCANE_MESH_ITEMFAMILYSERIALIZER_H_
15#define ARCANE_SRC_ARCANE_MESH_ITEMFAMILYSERIALIZER_H_
20#include "arcane/mesh/MeshGlobal.h"
22#include "arcane/core/IItemFamilySerializer.h"
23#include "arcane/core/IItemFamilyModifier.h"
25#include "arcane/mesh/ItemData.h"
26#include "arcane/mesh/DynamicMeshIncrementalBuilder.h"
51 , m_family_modifier(family_modifier)
52 , m_mesh_builder(mesh_builder)
54 if (!
family->mesh()->itemFamilyNetwork())
55 throw FatalErrorException(
"Cannot create ItemFamilySerializer if IItemFamilyNetwork is not defined. Exiting.");
57 ~ItemFamilySerializer() {}
Exception when a fatal error has occurred.
Interface for modifying a family.
Manages the serialization/deserialization of entities in a family.
Interface of an entity family.
Construction of a mesh incrementally.
void serializeItemRelations(ISerializer *buf, Int32ConstArrayView cells_local_id) override
Serializes the relations of the entities of the family family() into buf.
void deserializeItems(ISerializer *buf, Int32Array *local_ids) override
Deserializes the entities of the family family() from buf.
IItemFamily * family() const override
Associated family.
void deserializeItemRelations(ISerializer *buf, Int32Array *cells_local_id) override
Deserializes the relations of the entities of the family family() from buf.
void serializeItems(ISerializer *buf, Int32ConstArrayView local_ids) override
Serializes the entities of the family family() into buf.
ConstArrayView< Int32 > Int32ConstArrayView
C equivalent of a 1D array of 32-bit integers.
Array< Int32 > Int32Array
Dynamic one-dimensional array of 32-bit integers.