Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
SerializationConfiguration.inl
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4
5namespace Stroika::Foundation::DataExchange::XML {
6
7 /*
8 ********************************************************************************
9 ********************* XML::SerializationConfiguration **************************
10 ********************************************************************************
11 */
12 inline optional<String> SerializationConfiguration::GetDocumentElementName () const
13 {
14 return fDocumentElementName_.empty () ? optional<String> () : fDocumentElementName_;
15 }
16 inline void SerializationConfiguration::SetDocumentElementName (const optional<String>& n)
17 {
18 Require (not n.has_value () or not(*n).empty ()); // should validate legit xml elt name
19 fDocumentElementName_ = n.has_value () ? *n : String{};
20 }
21 inline optional<String> SerializationConfiguration::GetArrayElementName () const
22 {
23 return fArrayElementName_.empty () ? optional<String> () : fArrayElementName_;
24 }
25 inline void SerializationConfiguration::SetArrayElementName (const optional<String>& n)
26 {
27 Require (not n.has_value () or not(*n).empty ()); // should validate legit xml elt name
28 fArrayElementName_ = n.has_value () ? *n : String{};
29 }
30
31}