Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
AbstractCaseDocumentVisitor.cc
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/* AbstractCaseOptionVisitor.cc (C) 2000-2017 */
9/* */
10/* Abstract visitor for a dataset option. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/NotImplementedException.h"
15#include "arcane/core/AbstractCaseDocumentVisitor.h"
16
17/*---------------------------------------------------------------------------*/
18/*---------------------------------------------------------------------------*/
19
20namespace Arcane
21{
22
23/*---------------------------------------------------------------------------*/
24/*---------------------------------------------------------------------------*/
25
26void AbstractCaseDocumentVisitor::
27_throwException()
28{
29 String s = String::format("visitor not implemented for this case option");
30 throw NotImplementedException(A_FUNCINFO, s);
31}
32
33/*---------------------------------------------------------------------------*/
34/*---------------------------------------------------------------------------*/
35
36void AbstractCaseDocumentVisitor::
37beginVisit(const ICaseOptions* opt)
38{
39 ARCANE_UNUSED(opt);
40 _throwException();
41}
42
43/*---------------------------------------------------------------------------*/
44/*---------------------------------------------------------------------------*/
45
46void AbstractCaseDocumentVisitor::
47endVisit(const ICaseOptions* opt)
48{
49 ARCANE_UNUSED(opt);
50 _throwException();
51}
52
53/*---------------------------------------------------------------------------*/
54/*---------------------------------------------------------------------------*/
55
56void AbstractCaseDocumentVisitor::
57applyVisitor(const CaseOptionSimple* opt)
58{
59 ARCANE_UNUSED(opt);
60 _throwException();
61}
62
63/*---------------------------------------------------------------------------*/
64/*---------------------------------------------------------------------------*/
65
66void AbstractCaseDocumentVisitor::
67applyVisitor(const CaseOptionMultiSimple* opt)
68{
69 ARCANE_UNUSED(opt);
70 _throwException();
71}
72
73/*---------------------------------------------------------------------------*/
74/*---------------------------------------------------------------------------*/
75
76void AbstractCaseDocumentVisitor::
77applyVisitor(const CaseOptionExtended* opt)
78{
79 ARCANE_UNUSED(opt);
80 _throwException();
81}
82
83/*---------------------------------------------------------------------------*/
84/*---------------------------------------------------------------------------*/
85
86void AbstractCaseDocumentVisitor::
87applyVisitor(const CaseOptionMultiExtended* opt)
88{
89 ARCANE_UNUSED(opt);
90 _throwException();
91}
92
93/*---------------------------------------------------------------------------*/
94/*---------------------------------------------------------------------------*/
95
96void AbstractCaseDocumentVisitor::
97applyVisitor(const CaseOptionEnum* opt)
98{
99 ARCANE_UNUSED(opt);
100 _throwException();
101}
102
103/*---------------------------------------------------------------------------*/
104/*---------------------------------------------------------------------------*/
105
106void AbstractCaseDocumentVisitor::
107applyVisitor(const CaseOptionMultiEnum* opt)
108{
109 ARCANE_UNUSED(opt);
110 _throwException();
111}
112
113/*---------------------------------------------------------------------------*/
114/*---------------------------------------------------------------------------*/
115
116void AbstractCaseDocumentVisitor::
117beginVisit(const CaseOptionServiceImpl* opt)
118{
119 ARCANE_UNUSED(opt);
120 _throwException();
121}
122
123/*---------------------------------------------------------------------------*/
124/*---------------------------------------------------------------------------*/
125
126void AbstractCaseDocumentVisitor::
127endVisit(const CaseOptionServiceImpl* opt)
128{
129 ARCANE_UNUSED(opt);
130 _throwException();
131}
132
133/*---------------------------------------------------------------------------*/
134/*---------------------------------------------------------------------------*/
135
136void AbstractCaseDocumentVisitor::
137beginVisit(const CaseOptionMultiServiceImpl* opt, Integer index)
138{
139 ARCANE_UNUSED(opt);
140 ARCANE_UNUSED(index);
141 _throwException();
142}
143
144/*---------------------------------------------------------------------------*/
145/*---------------------------------------------------------------------------*/
146
147void AbstractCaseDocumentVisitor::
148endVisit(const CaseOptionMultiServiceImpl* opt, Integer index)
149{
150 ARCANE_UNUSED(opt);
151 ARCANE_UNUSED(index);
152 _throwException();
153}
154
155/*---------------------------------------------------------------------------*/
156/*---------------------------------------------------------------------------*/
157
158} // namespace Arcane
159
160/*---------------------------------------------------------------------------*/
161/*---------------------------------------------------------------------------*/
Enumerated data set option.
Option for the extended type dataset.
Multi-enumeration data set option.
Option for the extended list of types dataset.
Base class for simple options (single value).
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.