4#ifndef _Stroika_Frameworks_UPnP_ServiceDescription_h_
5#define _Stroika_Frameworks_UPnP_ServiceDescription_h_ 1
7#include "Stroika/Frameworks/StroikaPreComp.h"
10#include "Stroika/Foundation/Containers/Sequence.h"
21namespace Stroika::Frameworks::UPnP {
23 using Foundation::Characters::String;
24 using Foundation::Containers::Sequence;
54 enum class Direction {
58 Direction fDirection{Direction::eIn};
68 bool operator== (
const Argument&)
const =
default;
85 bool operator== (
const Action&)
const =
default;
90 nonvirtual
String ToString ()
const;
99 optional<String> fStep;
119 optional<String> fDefaultValue;
199 void DeSerialize (
const Foundation::Memory::BLOB& b, ServiceDescription* sd,
const ServiceDescription::Options& options = {});
201#if qStroika_Foundation_DataExchange_XML_SupportParsing and qStroika_Foundation_DataExchange_XML_SupportSchema and qStroika_Foundation_DataExchange_XML_SupportDOM
215 Foundation::DataExchange::XML::Schema::Ptr ServiceDescriptionSchema (
const Foundation::DataExchange::XML::Options& o = {});
String is like std::u32string, except it is much easier to use, often much more space efficient,...
A generalization of a vector: a container whose elements are keyed by the natural numbers.
How XML is read and written - for now, with which provider - taken last by each XML function (DOM::Do...
nonvirtual String ToString() const
nonvirtual String ToString() const
String fRelatedStateVariable
What Serialize and DeSerialize of an SCPD are told - defaulted, so a caller says only what it wants d...
bool fValidateWrite
Check what Serialize writes against ServiceDescriptionSchema, throwing BadFormatException where it do...
Foundation::DataExchange::XML::Schema::Ptr fValidateReadAgainst
Check an SCPD being read against this schema - ServiceDescriptionSchema - throwing where it does not ...
Foundation::DataExchange::XML::Options fXMLOptions
The XML provider that reads, and that checks what is written - by default, Stroika's default provider...
optional< AllowedValueRange > fAllowedValueRange
nonvirtual String ToString() const
Sequence< String > fAllowedValues
A service's description - its SCPD (UPnP Device Architecture 1.1, section 2.5): its actions,...
nonvirtual String ToString() const