5#ifndef AAS_CORE_AAS_3_0_XMLIZATION_GUARD_
6#define AAS_CORE_AAS_3_0_XMLIZATION_GUARD_
15#pragma warning(push, 0)
48 virtual std::unique_ptr<ISegment>
Clone()
const = 0;
75 std::unique_ptr<ISegment>
Clone()
const override;
95 std::unique_ptr<ISegment>
Clone()
const override;
162 std::shared_ptr<types::IClass>,
179 std::shared_ptr<types::IHasSemantics>,
196 std::shared_ptr<types::IExtension>,
213 std::shared_ptr<types::IHasExtensions>,
230 std::shared_ptr<types::IReferable>,
247 std::shared_ptr<types::IIdentifiable>,
264 std::shared_ptr<types::IHasKind>,
281 std::shared_ptr<types::IHasDataSpecification>,
298 std::shared_ptr<types::IAdministrativeInformation>,
315 std::shared_ptr<types::IQualifiable>,
332 std::shared_ptr<types::IQualifier>,
349 std::shared_ptr<types::IAssetAdministrationShell>,
366 std::shared_ptr<types::IAssetInformation>,
383 std::shared_ptr<types::IResource>,
400 std::shared_ptr<types::ISpecificAssetId>,
417 std::shared_ptr<types::ISubmodel>,
434 std::shared_ptr<types::ISubmodelElement>,
451 std::shared_ptr<types::IRelationshipElement>,
468 std::shared_ptr<types::ISubmodelElementList>,
485 std::shared_ptr<types::ISubmodelElementCollection>,
502 std::shared_ptr<types::IDataElement>,
519 std::shared_ptr<types::IProperty>,
536 std::shared_ptr<types::IMultiLanguageProperty>,
553 std::shared_ptr<types::IRange>,
570 std::shared_ptr<types::IReferenceElement>,
587 std::shared_ptr<types::IBlob>,
604 std::shared_ptr<types::IFile>,
621 std::shared_ptr<types::IAnnotatedRelationshipElement>,
638 std::shared_ptr<types::IEntity>,
655 std::shared_ptr<types::IEventPayload>,
672 std::shared_ptr<types::IEventElement>,
689 std::shared_ptr<types::IBasicEventElement>,
706 std::shared_ptr<types::IOperation>,
723 std::shared_ptr<types::IOperationVariable>,
740 std::shared_ptr<types::ICapability>,
757 std::shared_ptr<types::IConceptDescription>,
774 std::shared_ptr<types::IReference>,
791 std::shared_ptr<types::IKey>,
808 std::shared_ptr<types::IAbstractLangString>,
825 std::shared_ptr<types::ILangStringNameType>,
842 std::shared_ptr<types::ILangStringTextType>,
859 std::shared_ptr<types::IEnvironment>,
876 std::shared_ptr<types::IDataSpecificationContent>,
893 std::shared_ptr<types::IEmbeddedDataSpecification>,
910 std::shared_ptr<types::ILevelType>,
927 std::shared_ptr<types::IValueReferencePair>,
944 std::shared_ptr<types::IValueList>,
961 std::shared_ptr<types::ILangStringPreferredNameTypeIec61360>,
978 std::shared_ptr<types::ILangStringShortNameTypeIec61360>,
995 std::shared_ptr<types::ILangStringDefinitionTypeIec61360>,
1012 std::shared_ptr<types::IDataSpecificationIec61360>,
1013 DeserializationError
1037 const char*
what() const noexcept override;
1039 const std::wstring&
cause() const noexcept;
1045 const std::wstring cause_;
1047 const std::
string msg_;
Definition xmlization.hpp:38
virtual ~ISegment()=default
virtual std::wstring ToWstring() const =0
Convert the segment to a string in an XPath.
virtual std::unique_ptr< ISegment > Clone() const =0
SerializationException(std::wstring cause)
const std::wstring & cause() const noexcept
const iteration::Path & path() const noexcept
const char * what() const noexcept override
SerializationException(std::wstring cause, iteration::Path path)
Definition iteration.hpp:27
Definition xmlization.hpp:28
common::expected< std::shared_ptr< types::IHasSemantics >, DeserializationError > HasSemanticsFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IAssetAdministrationShell >, DeserializationError > AssetAdministrationShellFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IValueReferencePair >, DeserializationError > ValueReferencePairFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::ISubmodel >, DeserializationError > SubmodelFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::ILangStringPreferredNameTypeIec61360 >, DeserializationError > LangStringPreferredNameTypeIec61360From(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IQualifiable >, DeserializationError > QualifiableFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IClass >, DeserializationError > From(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IReferable >, DeserializationError > ReferableFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IDataSpecificationContent >, DeserializationError > DataSpecificationContentFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IFile >, DeserializationError > FileFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IEventElement >, DeserializationError > EventElementFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IBasicEventElement >, DeserializationError > BasicEventElementFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IConceptDescription >, DeserializationError > ConceptDescriptionFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IHasExtensions >, DeserializationError > HasExtensionsFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IEntity >, DeserializationError > EntityFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IAnnotatedRelationshipElement >, DeserializationError > AnnotatedRelationshipElementFrom(std::istream &is, const ReadingOptions &options={})
const std::string kNamespace
common::expected< std::shared_ptr< types::IHasKind >, DeserializationError > HasKindFrom(std::istream &is, const ReadingOptions &options={})
void Serialize(const types::IClass &that, const WritingOptions &options, std::ostream &os)
Serialize that instance to XML.
common::expected< std::shared_ptr< types::IValueList >, DeserializationError > ValueListFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IOperationVariable >, DeserializationError > OperationVariableFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::ILangStringDefinitionTypeIec61360 >, DeserializationError > LangStringDefinitionTypeIec61360From(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::ISubmodelElementCollection >, DeserializationError > SubmodelElementCollectionFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IMultiLanguageProperty >, DeserializationError > MultiLanguagePropertyFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IAdministrativeInformation >, DeserializationError > AdministrativeInformationFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IIdentifiable >, DeserializationError > IdentifiableFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IDataElement >, DeserializationError > DataElementFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IEmbeddedDataSpecification >, DeserializationError > EmbeddedDataSpecificationFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::ISubmodelElementList >, DeserializationError > SubmodelElementListFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IRange >, DeserializationError > RangeFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IEventPayload >, DeserializationError > EventPayloadFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IRelationshipElement >, DeserializationError > RelationshipElementFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::ILevelType >, DeserializationError > LevelTypeFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IDataSpecificationIec61360 >, DeserializationError > DataSpecificationIec61360From(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IKey >, DeserializationError > KeyFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::ILangStringTextType >, DeserializationError > LangStringTextTypeFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IReferenceElement >, DeserializationError > ReferenceElementFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IHasDataSpecification >, DeserializationError > HasDataSpecificationFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::ILangStringNameType >, DeserializationError > LangStringNameTypeFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IResource >, DeserializationError > ResourceFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IEnvironment >, DeserializationError > EnvironmentFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IQualifier >, DeserializationError > QualifierFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::ICapability >, DeserializationError > CapabilityFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IProperty >, DeserializationError > PropertyFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IAssetInformation >, DeserializationError > AssetInformationFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IOperation >, DeserializationError > OperationFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::ILangStringShortNameTypeIec61360 >, DeserializationError > LangStringShortNameTypeIec61360From(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IReference >, DeserializationError > ReferenceFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IExtension >, DeserializationError > ExtensionFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::ISpecificAssetId >, DeserializationError > SpecificAssetIdFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IBlob >, DeserializationError > BlobFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::ISubmodelElement >, DeserializationError > SubmodelElementFrom(std::istream &is, const ReadingOptions &options={})
common::expected< std::shared_ptr< types::IAbstractLangString >, DeserializationError > AbstractLangStringFrom(std::istream &is, const ReadingOptions &options={})
Represent a path to some value.
Definition iteration.hpp:185
Definition xmlization.hpp:120
DeserializationError(std::wstring a_cause)
Path path
Definition xmlization.hpp:129
DeserializationError(std::wstring a_cause, Path a_path)
std::wstring cause
Definition xmlization.hpp:124
std::wstring name
Name of the XML element, without the namespace.
Definition xmlization.hpp:67
std::wstring ToWstring() const override
Convert the segment to a string in an XPath.
~ElementSegment() override=default
ElementSegment(std::wstring a_name)
std::unique_ptr< ISegment > Clone() const override
std::unique_ptr< ISegment > Clone() const override
size_t index
Definition xmlization.hpp:87
std::wstring ToWstring() const override
Convert the segment to a string in an XPath.
~IndexSegment() override=default
IndexSegment(size_t an_index)
Definition xmlization.hpp:103
std::deque< std::unique_ptr< ISegment > > segments
Definition xmlization.hpp:104
std::wstring ToWstring() const
Path & operator=(const Path &other)
Path & operator=(Path &&other)
Definition xmlization.hpp:135
bool additional_attributes
Definition xmlization.hpp:144
size_t buffer_size
Definition xmlization.hpp:150
Customize how instances should be serialized to XML.
Definition xmlization.hpp:1066
bool write_declaration
Definition xmlization.hpp:1070
bool write_namespace
Definition xmlization.hpp:1076
std::string prefix
Definition xmlization.hpp:1081