aas-core3 1.0.1
Manipulate, verify and de/serialize asset administration shells in C++.
Loading...
Searching...
No Matches
visitation.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2023 aas-core3.0-cpp AUTHORS
2//
3// SPDX-License-Identifier: MIT
4
5#ifndef AAS_CORE_AAS_3_0_VISITATION_GUARD_
6#define AAS_CORE_AAS_3_0_VISITATION_GUARD_
7
8// This code has been automatically generated by aas-core-codegen.
9// Do NOT edit or append.
10
12
13namespace aas_core {
14namespace aas_3_0 {
15
20namespace visitation {
21
25class IVisitor {
26 public:
46 virtual void Visit(const std::shared_ptr<types::IClass>& that) = 0;
47 virtual ~IVisitor() = default;
48
49 protected:
50 virtual void VisitExtension(
51 const std::shared_ptr<types::IExtension>& that
52 ) = 0;
54 const std::shared_ptr<types::IAdministrativeInformation>& that
55 ) = 0;
56 virtual void VisitQualifier(
57 const std::shared_ptr<types::IQualifier>& that
58 ) = 0;
60 const std::shared_ptr<types::IAssetAdministrationShell>& that
61 ) = 0;
63 const std::shared_ptr<types::IAssetInformation>& that
64 ) = 0;
65 virtual void VisitResource(
66 const std::shared_ptr<types::IResource>& that
67 ) = 0;
69 const std::shared_ptr<types::ISpecificAssetId>& that
70 ) = 0;
71 virtual void VisitSubmodel(
72 const std::shared_ptr<types::ISubmodel>& that
73 ) = 0;
75 const std::shared_ptr<types::IRelationshipElement>& that
76 ) = 0;
78 const std::shared_ptr<types::ISubmodelElementList>& that
79 ) = 0;
81 const std::shared_ptr<types::ISubmodelElementCollection>& that
82 ) = 0;
83 virtual void VisitProperty(
84 const std::shared_ptr<types::IProperty>& that
85 ) = 0;
87 const std::shared_ptr<types::IMultiLanguageProperty>& that
88 ) = 0;
89 virtual void VisitRange(
90 const std::shared_ptr<types::IRange>& that
91 ) = 0;
93 const std::shared_ptr<types::IReferenceElement>& that
94 ) = 0;
95 virtual void VisitBlob(
96 const std::shared_ptr<types::IBlob>& that
97 ) = 0;
98 virtual void VisitFile(
99 const std::shared_ptr<types::IFile>& that
100 ) = 0;
102 const std::shared_ptr<types::IAnnotatedRelationshipElement>& that
103 ) = 0;
104 virtual void VisitEntity(
105 const std::shared_ptr<types::IEntity>& that
106 ) = 0;
107 virtual void VisitEventPayload(
108 const std::shared_ptr<types::IEventPayload>& that
109 ) = 0;
111 const std::shared_ptr<types::IBasicEventElement>& that
112 ) = 0;
113 virtual void VisitOperation(
114 const std::shared_ptr<types::IOperation>& that
115 ) = 0;
117 const std::shared_ptr<types::IOperationVariable>& that
118 ) = 0;
119 virtual void VisitCapability(
120 const std::shared_ptr<types::ICapability>& that
121 ) = 0;
123 const std::shared_ptr<types::IConceptDescription>& that
124 ) = 0;
125 virtual void VisitReference(
126 const std::shared_ptr<types::IReference>& that
127 ) = 0;
128 virtual void VisitKey(
129 const std::shared_ptr<types::IKey>& that
130 ) = 0;
132 const std::shared_ptr<types::ILangStringNameType>& that
133 ) = 0;
135 const std::shared_ptr<types::ILangStringTextType>& that
136 ) = 0;
137 virtual void VisitEnvironment(
138 const std::shared_ptr<types::IEnvironment>& that
139 ) = 0;
141 const std::shared_ptr<types::IEmbeddedDataSpecification>& that
142 ) = 0;
143 virtual void VisitLevelType(
144 const std::shared_ptr<types::ILevelType>& that
145 ) = 0;
147 const std::shared_ptr<types::IValueReferencePair>& that
148 ) = 0;
149 virtual void VisitValueList(
150 const std::shared_ptr<types::IValueList>& that
151 ) = 0;
153 const std::shared_ptr<types::ILangStringPreferredNameTypeIec61360>& that
154 ) = 0;
156 const std::shared_ptr<types::ILangStringShortNameTypeIec61360>& that
157 ) = 0;
159 const std::shared_ptr<types::ILangStringDefinitionTypeIec61360>& that
160 ) = 0;
162 const std::shared_ptr<types::IDataSpecificationIec61360>& that
163 ) = 0;
164}; // class IVisitor
165
170 : public IVisitor {
171 public:
172 void Visit(const std::shared_ptr<types::IClass>& that) override;
173 ~AbstractVisitor() override = default;
174}; // class AbstractVisitor
175
183 : public AbstractVisitor {
184 public:
185 ~PassThroughVisitor() override = default;
186
187 protected:
189 const std::shared_ptr<types::IExtension>& that
190 ) override;
192 const std::shared_ptr<types::IAdministrativeInformation>& that
193 ) override;
195 const std::shared_ptr<types::IQualifier>& that
196 ) override;
198 const std::shared_ptr<types::IAssetAdministrationShell>& that
199 ) override;
201 const std::shared_ptr<types::IAssetInformation>& that
202 ) override;
204 const std::shared_ptr<types::IResource>& that
205 ) override;
207 const std::shared_ptr<types::ISpecificAssetId>& that
208 ) override;
210 const std::shared_ptr<types::ISubmodel>& that
211 ) override;
213 const std::shared_ptr<types::IRelationshipElement>& that
214 ) override;
216 const std::shared_ptr<types::ISubmodelElementList>& that
217 ) override;
219 const std::shared_ptr<types::ISubmodelElementCollection>& that
220 ) override;
222 const std::shared_ptr<types::IProperty>& that
223 ) override;
225 const std::shared_ptr<types::IMultiLanguageProperty>& that
226 ) override;
228 const std::shared_ptr<types::IRange>& that
229 ) override;
231 const std::shared_ptr<types::IReferenceElement>& that
232 ) override;
234 const std::shared_ptr<types::IBlob>& that
235 ) override;
237 const std::shared_ptr<types::IFile>& that
238 ) override;
240 const std::shared_ptr<types::IAnnotatedRelationshipElement>& that
241 ) override;
243 const std::shared_ptr<types::IEntity>& that
244 ) override;
246 const std::shared_ptr<types::IEventPayload>& that
247 ) override;
249 const std::shared_ptr<types::IBasicEventElement>& that
250 ) override;
252 const std::shared_ptr<types::IOperation>& that
253 ) override;
255 const std::shared_ptr<types::IOperationVariable>& that
256 ) override;
258 const std::shared_ptr<types::ICapability>& that
259 ) override;
261 const std::shared_ptr<types::IConceptDescription>& that
262 ) override;
264 const std::shared_ptr<types::IReference>& that
265 ) override;
267 const std::shared_ptr<types::IKey>& that
268 ) override;
270 const std::shared_ptr<types::ILangStringNameType>& that
271 ) override;
273 const std::shared_ptr<types::ILangStringTextType>& that
274 ) override;
276 const std::shared_ptr<types::IEnvironment>& that
277 ) override;
279 const std::shared_ptr<types::IEmbeddedDataSpecification>& that
280 ) override;
282 const std::shared_ptr<types::ILevelType>& that
283 ) override;
285 const std::shared_ptr<types::IValueReferencePair>& that
286 ) override;
288 const std::shared_ptr<types::IValueList>& that
289 ) override;
291 const std::shared_ptr<types::ILangStringPreferredNameTypeIec61360>& that
292 ) override;
294 const std::shared_ptr<types::ILangStringShortNameTypeIec61360>& that
295 ) override;
297 const std::shared_ptr<types::ILangStringDefinitionTypeIec61360>& that
298 ) override;
300 const std::shared_ptr<types::IDataSpecificationIec61360>& that
301 ) override;
302}; // class PassThroughVisitor
303
304} // namespace visitation
305
306
307} // namespace aas_3_0
308} // namespace aas_core
309
310// This code has been automatically generated by aas-core-codegen.
311// Do NOT edit or append.
312
313#endif // AAS_CORE_AAS_3_0_VISITATION_GUARD_
Definition visitation.hpp:25
Provide a mutating, recursive and no-op visitor on an instance.
Definition visitation.hpp:183
void VisitOperationVariable(const std::shared_ptr< types::IOperationVariable > &that) override
virtual void VisitReference(const std::shared_ptr< types::IReference > &that)=0
void VisitSubmodelElementList(const std::shared_ptr< types::ISubmodelElementList > &that) override
void VisitBlob(const std::shared_ptr< types::IBlob > &that) override
virtual void VisitBasicEventElement(const std::shared_ptr< types::IBasicEventElement > &that)=0
virtual void VisitEntity(const std::shared_ptr< types::IEntity > &that)=0
void VisitCapability(const std::shared_ptr< types::ICapability > &that) override
void VisitMultiLanguageProperty(const std::shared_ptr< types::IMultiLanguageProperty > &that) override
virtual void VisitFile(const std::shared_ptr< types::IFile > &that)=0
virtual void VisitLangStringTextType(const std::shared_ptr< types::ILangStringTextType > &that)=0
virtual void VisitQualifier(const std::shared_ptr< types::IQualifier > &that)=0
virtual void VisitDataSpecificationIec61360(const std::shared_ptr< types::IDataSpecificationIec61360 > &that)=0
virtual void VisitSubmodel(const std::shared_ptr< types::ISubmodel > &that)=0
void VisitAssetAdministrationShell(const std::shared_ptr< types::IAssetAdministrationShell > &that) override
void VisitConceptDescription(const std::shared_ptr< types::IConceptDescription > &that) override
void VisitLangStringDefinitionTypeIec61360(const std::shared_ptr< types::ILangStringDefinitionTypeIec61360 > &that) override
virtual void VisitValueList(const std::shared_ptr< types::IValueList > &that)=0
void VisitSubmodel(const std::shared_ptr< types::ISubmodel > &that) override
virtual void Visit(const std::shared_ptr< types::IClass > &that)=0
void Visit(const std::shared_ptr< types::IClass > &that) override
virtual void VisitBlob(const std::shared_ptr< types::IBlob > &that)=0
virtual void VisitLangStringDefinitionTypeIec61360(const std::shared_ptr< types::ILangStringDefinitionTypeIec61360 > &that)=0
void VisitAdministrativeInformation(const std::shared_ptr< types::IAdministrativeInformation > &that) override
virtual void VisitLangStringNameType(const std::shared_ptr< types::ILangStringNameType > &that)=0
void VisitRange(const std::shared_ptr< types::IRange > &that) override
virtual void VisitProperty(const std::shared_ptr< types::IProperty > &that)=0
void VisitReference(const std::shared_ptr< types::IReference > &that) override
void VisitQualifier(const std::shared_ptr< types::IQualifier > &that) override
virtual void VisitSubmodelElementList(const std::shared_ptr< types::ISubmodelElementList > &that)=0
virtual void VisitLangStringPreferredNameTypeIec61360(const std::shared_ptr< types::ILangStringPreferredNameTypeIec61360 > &that)=0
void VisitAnnotatedRelationshipElement(const std::shared_ptr< types::IAnnotatedRelationshipElement > &that) override
void VisitResource(const std::shared_ptr< types::IResource > &that) override
virtual void VisitCapability(const std::shared_ptr< types::ICapability > &that)=0
virtual void VisitKey(const std::shared_ptr< types::IKey > &that)=0
void VisitKey(const std::shared_ptr< types::IKey > &that) override
virtual void VisitEmbeddedDataSpecification(const std::shared_ptr< types::IEmbeddedDataSpecification > &that)=0
virtual void VisitMultiLanguageProperty(const std::shared_ptr< types::IMultiLanguageProperty > &that)=0
void VisitOperation(const std::shared_ptr< types::IOperation > &that) override
virtual void VisitAssetAdministrationShell(const std::shared_ptr< types::IAssetAdministrationShell > &that)=0
virtual void VisitEventPayload(const std::shared_ptr< types::IEventPayload > &that)=0
virtual void VisitAnnotatedRelationshipElement(const std::shared_ptr< types::IAnnotatedRelationshipElement > &that)=0
void VisitLangStringNameType(const std::shared_ptr< types::ILangStringNameType > &that) override
void VisitExtension(const std::shared_ptr< types::IExtension > &that) override
virtual void VisitRange(const std::shared_ptr< types::IRange > &that)=0
void VisitLangStringPreferredNameTypeIec61360(const std::shared_ptr< types::ILangStringPreferredNameTypeIec61360 > &that) override
void VisitEmbeddedDataSpecification(const std::shared_ptr< types::IEmbeddedDataSpecification > &that) override
void VisitEntity(const std::shared_ptr< types::IEntity > &that) override
void VisitSpecificAssetId(const std::shared_ptr< types::ISpecificAssetId > &that) override
void VisitProperty(const std::shared_ptr< types::IProperty > &that) override
void VisitAssetInformation(const std::shared_ptr< types::IAssetInformation > &that) override
void VisitLevelType(const std::shared_ptr< types::ILevelType > &that) override
void VisitValueReferencePair(const std::shared_ptr< types::IValueReferencePair > &that) override
void VisitValueList(const std::shared_ptr< types::IValueList > &that) override
void VisitReferenceElement(const std::shared_ptr< types::IReferenceElement > &that) override
void VisitEnvironment(const std::shared_ptr< types::IEnvironment > &that) override
void VisitBasicEventElement(const std::shared_ptr< types::IBasicEventElement > &that) override
void VisitRelationshipElement(const std::shared_ptr< types::IRelationshipElement > &that) override
virtual void VisitLevelType(const std::shared_ptr< types::ILevelType > &that)=0
virtual void VisitEnvironment(const std::shared_ptr< types::IEnvironment > &that)=0
virtual void VisitExtension(const std::shared_ptr< types::IExtension > &that)=0
virtual void VisitOperation(const std::shared_ptr< types::IOperation > &that)=0
virtual void VisitSpecificAssetId(const std::shared_ptr< types::ISpecificAssetId > &that)=0
virtual void VisitOperationVariable(const std::shared_ptr< types::IOperationVariable > &that)=0
virtual void VisitConceptDescription(const std::shared_ptr< types::IConceptDescription > &that)=0
virtual void VisitValueReferencePair(const std::shared_ptr< types::IValueReferencePair > &that)=0
virtual void VisitReferenceElement(const std::shared_ptr< types::IReferenceElement > &that)=0
void VisitLangStringShortNameTypeIec61360(const std::shared_ptr< types::ILangStringShortNameTypeIec61360 > &that) override
virtual void VisitAssetInformation(const std::shared_ptr< types::IAssetInformation > &that)=0
void VisitDataSpecificationIec61360(const std::shared_ptr< types::IDataSpecificationIec61360 > &that) override
void VisitFile(const std::shared_ptr< types::IFile > &that) override
virtual void VisitSubmodelElementCollection(const std::shared_ptr< types::ISubmodelElementCollection > &that)=0
virtual void VisitAdministrativeInformation(const std::shared_ptr< types::IAdministrativeInformation > &that)=0
void VisitLangStringTextType(const std::shared_ptr< types::ILangStringTextType > &that) override
void VisitSubmodelElementCollection(const std::shared_ptr< types::ISubmodelElementCollection > &that) override
virtual void VisitResource(const std::shared_ptr< types::IResource > &that)=0
void VisitEventPayload(const std::shared_ptr< types::IEventPayload > &that) override
virtual void VisitLangStringShortNameTypeIec61360(const std::shared_ptr< types::ILangStringShortNameTypeIec61360 > &that)=0
virtual void VisitRelationshipElement(const std::shared_ptr< types::IRelationshipElement > &that)=0
Definition visitation.hpp:20
Definition common.hpp:51
Definition common.hpp:50