Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
CaseDocumentLangTranslator.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/* CaseDocumentLangTranslator.h (C) 2000-2017 */
9/* */
10/* Class managing the translation of a dataset into another language. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_IMPL_CASEDOCUMENTLANGTRANSLATOR_H
13#define ARCANE_IMPL_CASEDOCUMENTLANGTRANSLATOR_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/TraceAccessor.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28class ICaseMng;
29class XmlNode;
30
31/*---------------------------------------------------------------------------*/
32/*---------------------------------------------------------------------------*/
33
37class ARCANE_IMPL_EXPORT CaseDocumentLangTranslator
38: public TraceAccessor
39{
40 public:
41
42 CaseDocumentLangTranslator(ITraceMng* tm);
43 virtual ~CaseDocumentLangTranslator();
44
45 virtual void build();
46
47 public:
48
49 String translate(ICaseMng* cm, const String& new_lang);
50
51 private:
52
53 String m_global_convert_string;
54
55 private:
56
57 void _addConvert(XmlNode node, const String& new_name);
58};
59
60/*---------------------------------------------------------------------------*/
61/*---------------------------------------------------------------------------*/
62
63} // namespace Arcane
64
65/*---------------------------------------------------------------------------*/
66/*---------------------------------------------------------------------------*/
67
68#endif
Case manager interface.
Definition ICaseMng.h:57
TraceAccessor(ITraceMng *m)
Constructs an accessor via the trace manager m.
Node of a DOM tree.
Definition XmlNode.h:51
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --