Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
VariableMetaData.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/* VariableMetaData.cc (C) 2000-2022 */
9/* */
10/* Meta-données sur une variable. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/StringBuilder.h"
15
16#include "arcane/VariableMetaData.h"
17
18/*---------------------------------------------------------------------------*/
19/*---------------------------------------------------------------------------*/
20
21namespace Arcane
22{
23
24/*---------------------------------------------------------------------------*/
25/*---------------------------------------------------------------------------*/
26
28VariableMetaData(const String& base_name,const String& mesh_name,
29 const String& item_family_name,const String& item_group_name,
30 bool is_partial)
31: m_base_name(base_name)
32, m_mesh_name(mesh_name)
33, m_item_family_name(item_family_name)
34, m_item_group_name(item_group_name)
35, m_property(0)
36, m_is_partial(is_partial)
37{
38 _buildFullName();
39}
40
41/*---------------------------------------------------------------------------*/
42/*---------------------------------------------------------------------------*/
43
44void VariableMetaData::
45_buildFullName()
46{
47 StringBuilder full_name_b;
48 if (!m_mesh_name.null()){
49 full_name_b += m_mesh_name;
50 full_name_b += "_";
51 }
52 if (!m_item_family_name.null()){
53 full_name_b += m_item_family_name;
54 full_name_b += "_";
55 }
56 full_name_b += m_base_name;
57 m_full_name = full_name_b.toString();
58}
59
60/*---------------------------------------------------------------------------*/
61/*---------------------------------------------------------------------------*/
62
63} // End namespace Arcane
64
65/*---------------------------------------------------------------------------*/
66/*---------------------------------------------------------------------------*/
67
VariableMetaData(const String &base_name, const String &mesh_name, const String &item_family_name, const String &item_group_name, bool is_partial)
Constructeur.
Constructeur de chaîne de caractère unicode.
String toString() const
Retourne la chaîne de caractères construite.
Chaîne de caractères unicode.
bool null() const
Retourne true si la chaîne est nulle.
Definition String.cc:304
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-