From 3aa85143f84ee5b7e06ecca12fbb61981439f6dd Mon Sep 17 00:00:00 2001 From: Benjamin REIS Date: Thu, 15 Mar 2018 13:30:00 +0100 Subject: [PATCH] better coding style for rlmi.h rlmi.cpp --- src/xml/generate.py | 1 + src/xml/rlmi.cpp | 5802 ++++++++++++++++++++++--------------------- src/xml/rlmi.h | 2134 ++++++++-------- 3 files changed, 3999 insertions(+), 3938 deletions(-) diff --git a/src/xml/generate.py b/src/xml/generate.py index bfd95f825..08e183bb9 100755 --- a/src/xml/generate.py +++ b/src/xml/generate.py @@ -91,6 +91,7 @@ def generate(name): "--namespace-map", "http://www.w3.org/2001/XMLSchema=LinphonePrivate::Xsd::XmlSchema", "--namespace-map", "urn:ietf:params:xml:ns:conference-info=LinphonePrivate::Xsd::ConferenceInfo", "--namespace-map", "urn:ietf:params:xml:ns:resource-lists=LinphonePrivate::Xsd::ResourceLists", + "--namespace-map", "urn:ietf:params:xml:ns:rlmi=LinphonePrivate::Xsd::Rlmi", source_file ], shell=False) p.communicate() diff --git a/src/xml/rlmi.cpp b/src/xml/rlmi.cpp index c96af3a74..727028f47 100644 --- a/src/xml/rlmi.cpp +++ b/src/xml/rlmi.cpp @@ -47,522 +47,528 @@ #include "rlmi.h" -namespace rlmi +namespace LinphonePrivate { - // List - // - - const List::NameSequence& List:: - getName () const - { - return this->name_; - } - - List::NameSequence& List:: - getName () - { - return this->name_; - } - - void List:: - setName (const NameSequence& s) - { - this->name_ = s; - } - - const List::ResourceSequence& List:: - getResource () const - { - return this->resource_; - } - - List::ResourceSequence& List:: - getResource () - { - return this->resource_; - } - - void List:: - setResource (const ResourceSequence& s) - { - this->resource_ = s; - } - - const List::UriType& List:: - getUri () const - { - return this->uri_.get (); - } - - List::UriType& List:: - getUri () - { - return this->uri_.get (); - } - - void List:: - setUri (const UriType& x) - { - this->uri_.set (x); - } - - void List:: - setUri (::std::unique_ptr< UriType > x) - { - this->uri_.set (std::move (x)); - } - - ::std::unique_ptr< List::UriType > List:: - setDetachUri () - { - return this->uri_.detach (); - } - - const List::VersionType& List:: - getVersion () const - { - return this->version_.get (); - } - - List::VersionType& List:: - getVersion () - { - return this->version_.get (); - } - - void List:: - setVersion (const VersionType& x) - { - this->version_.set (x); - } - - const List::FullStateType& List:: - getFullState () const - { - return this->fullState_.get (); - } - - List::FullStateType& List:: - getFullState () - { - return this->fullState_.get (); - } - - void List:: - setFullState (const FullStateType& x) - { - this->fullState_.set (x); - } - - const List::CidOptional& List:: - getCid () const - { - return this->cid_; - } - - List::CidOptional& List:: - getCid () - { - return this->cid_; - } - - void List:: - setCid (const CidType& x) - { - this->cid_.set (x); - } - - void List:: - setCid (const CidOptional& x) - { - this->cid_ = x; - } - - void List:: - setCid (::std::unique_ptr< CidType > x) - { - this->cid_.set (std::move (x)); - } - - const List::AnyAttributeSet& List:: - getAnyAttribute () const - { - return this->any_attribute_; - } - - List::AnyAttributeSet& List:: - getAnyAttribute () - { - return this->any_attribute_; - } - - void List:: - setAnyAttribute (const AnyAttributeSet& s) - { - this->any_attribute_ = s; - } - - const ::xercesc::DOMDocument& List:: - getDomDocument () const - { - return *this->dom_document_; - } - - ::xercesc::DOMDocument& List:: - getDomDocument () - { - return *this->dom_document_; - } - - - // Resource - // - - const Resource::NameSequence& Resource:: - getName () const - { - return this->name_; - } - - Resource::NameSequence& Resource:: - getName () - { - return this->name_; - } - - void Resource:: - setName (const NameSequence& s) - { - this->name_ = s; - } - - const Resource::InstanceSequence& Resource:: - getInstance () const - { - return this->instance_; - } - - Resource::InstanceSequence& Resource:: - getInstance () - { - return this->instance_; - } - - void Resource:: - setInstance (const InstanceSequence& s) - { - this->instance_ = s; - } - - const Resource::UriType& Resource:: - getUri () const - { - return this->uri_.get (); - } - - Resource::UriType& Resource:: - getUri () - { - return this->uri_.get (); - } - - void Resource:: - setUri (const UriType& x) - { - this->uri_.set (x); - } - - void Resource:: - setUri (::std::unique_ptr< UriType > x) - { - this->uri_.set (std::move (x)); - } - - ::std::unique_ptr< Resource::UriType > Resource:: - setDetachUri () - { - return this->uri_.detach (); - } - - const Resource::AnyAttributeSet& Resource:: - getAnyAttribute () const - { - return this->any_attribute_; - } - - Resource::AnyAttributeSet& Resource:: - getAnyAttribute () - { - return this->any_attribute_; - } - - void Resource:: - setAnyAttribute (const AnyAttributeSet& s) - { - this->any_attribute_ = s; - } - - const ::xercesc::DOMDocument& Resource:: - getDomDocument () const - { - return *this->dom_document_; - } - - ::xercesc::DOMDocument& Resource:: - getDomDocument () - { - return *this->dom_document_; - } - - - // Instance - // - - const Instance::AnySequence& Instance:: - getAny () const - { - return this->any_; - } - - Instance::AnySequence& Instance:: - getAny () - { - return this->any_; - } - - void Instance:: - setAny (const AnySequence& s) - { - this->any_ = s; - } - - const Instance::IdType& Instance:: - getId () const - { - return this->id_.get (); - } - - Instance::IdType& Instance:: - getId () - { - return this->id_.get (); - } - - void Instance:: - setId (const IdType& x) - { - this->id_.set (x); - } - - void Instance:: - setId (::std::unique_ptr< IdType > x) - { - this->id_.set (std::move (x)); - } - - ::std::unique_ptr< Instance::IdType > Instance:: - setDetachId () - { - return this->id_.detach (); - } - - const Instance::StateType& Instance:: - getState () const - { - return this->state_.get (); - } - - Instance::StateType& Instance:: - getState () - { - return this->state_.get (); - } - - void Instance:: - setState (const StateType& x) - { - this->state_.set (x); - } - - void Instance:: - setState (::std::unique_ptr< StateType > x) - { - this->state_.set (std::move (x)); - } - - ::std::unique_ptr< Instance::StateType > Instance:: - setDetachState () - { - return this->state_.detach (); - } - - const Instance::ReasonOptional& Instance:: - getReason () const - { - return this->reason_; - } - - Instance::ReasonOptional& Instance:: - getReason () - { - return this->reason_; - } - - void Instance:: - setReason (const ReasonType& x) - { - this->reason_.set (x); - } - - void Instance:: - setReason (const ReasonOptional& x) - { - this->reason_ = x; - } - - void Instance:: - setReason (::std::unique_ptr< ReasonType > x) - { - this->reason_.set (std::move (x)); - } - - const Instance::CidOptional& Instance:: - getCid () const - { - return this->cid_; - } - - Instance::CidOptional& Instance:: - getCid () - { - return this->cid_; - } - - void Instance:: - setCid (const CidType& x) - { - this->cid_.set (x); - } - - void Instance:: - setCid (const CidOptional& x) - { - this->cid_ = x; - } - - void Instance:: - setCid (::std::unique_ptr< CidType > x) - { - this->cid_.set (std::move (x)); - } - - const Instance::AnyAttributeSet& Instance:: - getAnyAttribute () const - { - return this->any_attribute_; - } - - Instance::AnyAttributeSet& Instance:: - getAnyAttribute () - { - return this->any_attribute_; - } - - void Instance:: - setAnyAttribute (const AnyAttributeSet& s) - { - this->any_attribute_ = s; - } - - const ::xercesc::DOMDocument& Instance:: - getDomDocument () const - { - return *this->dom_document_; - } - - ::xercesc::DOMDocument& Instance:: - getDomDocument () - { - return *this->dom_document_; - } - - - // Name - // - - const Name::LangOptional& Name:: - getLang () const - { - return this->lang_; - } - - Name::LangOptional& Name:: - getLang () - { - return this->lang_; - } - - void Name:: - setLang (const LangType& x) - { - this->lang_.set (x); - } - - void Name:: - setLang (const LangOptional& x) - { - this->lang_ = x; - } - - void Name:: - setLang (::std::unique_ptr< LangType > x) - { - this->lang_.set (std::move (x)); - } - - - // State - // - - State:: - State (Value v) - : ::LinphonePrivate::Xsd::XmlSchema::String (_xsd_State_literals_[v]) - { - } - - State:: - State (const char* v) - : ::LinphonePrivate::Xsd::XmlSchema::String (v) - { - } - - State:: - State (const ::std::string& v) - : ::LinphonePrivate::Xsd::XmlSchema::String (v) - { - } - - State:: - State (const ::LinphonePrivate::Xsd::XmlSchema::String& v) - : ::LinphonePrivate::Xsd::XmlSchema::String (v) - { - } - - State:: - State (const State& v, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - ::LinphonePrivate::Xsd::XmlSchema::Container* c) - : ::LinphonePrivate::Xsd::XmlSchema::String (v, f, c) - { - } - - State& State:: - operator= (Value v) - { - static_cast< ::LinphonePrivate::Xsd::XmlSchema::String& > (*this) = - ::LinphonePrivate::Xsd::XmlSchema::String (_xsd_State_literals_[v]); - - return *this; + namespace Xsd + { + namespace Rlmi + { + // List + // + + const List::NameSequence& List:: + getName () const + { + return this->name_; + } + + List::NameSequence& List:: + getName () + { + return this->name_; + } + + void List:: + setName (const NameSequence& s) + { + this->name_ = s; + } + + const List::ResourceSequence& List:: + getResource () const + { + return this->resource_; + } + + List::ResourceSequence& List:: + getResource () + { + return this->resource_; + } + + void List:: + setResource (const ResourceSequence& s) + { + this->resource_ = s; + } + + const List::UriType& List:: + getUri () const + { + return this->uri_.get (); + } + + List::UriType& List:: + getUri () + { + return this->uri_.get (); + } + + void List:: + setUri (const UriType& x) + { + this->uri_.set (x); + } + + void List:: + setUri (::std::unique_ptr< UriType > x) + { + this->uri_.set (std::move (x)); + } + + ::std::unique_ptr< List::UriType > List:: + setDetachUri () + { + return this->uri_.detach (); + } + + const List::VersionType& List:: + getVersion () const + { + return this->version_.get (); + } + + List::VersionType& List:: + getVersion () + { + return this->version_.get (); + } + + void List:: + setVersion (const VersionType& x) + { + this->version_.set (x); + } + + const List::FullStateType& List:: + getFullState () const + { + return this->fullState_.get (); + } + + List::FullStateType& List:: + getFullState () + { + return this->fullState_.get (); + } + + void List:: + setFullState (const FullStateType& x) + { + this->fullState_.set (x); + } + + const List::CidOptional& List:: + getCid () const + { + return this->cid_; + } + + List::CidOptional& List:: + getCid () + { + return this->cid_; + } + + void List:: + setCid (const CidType& x) + { + this->cid_.set (x); + } + + void List:: + setCid (const CidOptional& x) + { + this->cid_ = x; + } + + void List:: + setCid (::std::unique_ptr< CidType > x) + { + this->cid_.set (std::move (x)); + } + + const List::AnyAttributeSet& List:: + getAnyAttribute () const + { + return this->any_attribute_; + } + + List::AnyAttributeSet& List:: + getAnyAttribute () + { + return this->any_attribute_; + } + + void List:: + setAnyAttribute (const AnyAttributeSet& s) + { + this->any_attribute_ = s; + } + + const ::xercesc::DOMDocument& List:: + getDomDocument () const + { + return *this->dom_document_; + } + + ::xercesc::DOMDocument& List:: + getDomDocument () + { + return *this->dom_document_; + } + + + // Resource + // + + const Resource::NameSequence& Resource:: + getName () const + { + return this->name_; + } + + Resource::NameSequence& Resource:: + getName () + { + return this->name_; + } + + void Resource:: + setName (const NameSequence& s) + { + this->name_ = s; + } + + const Resource::InstanceSequence& Resource:: + getInstance () const + { + return this->instance_; + } + + Resource::InstanceSequence& Resource:: + getInstance () + { + return this->instance_; + } + + void Resource:: + setInstance (const InstanceSequence& s) + { + this->instance_ = s; + } + + const Resource::UriType& Resource:: + getUri () const + { + return this->uri_.get (); + } + + Resource::UriType& Resource:: + getUri () + { + return this->uri_.get (); + } + + void Resource:: + setUri (const UriType& x) + { + this->uri_.set (x); + } + + void Resource:: + setUri (::std::unique_ptr< UriType > x) + { + this->uri_.set (std::move (x)); + } + + ::std::unique_ptr< Resource::UriType > Resource:: + setDetachUri () + { + return this->uri_.detach (); + } + + const Resource::AnyAttributeSet& Resource:: + getAnyAttribute () const + { + return this->any_attribute_; + } + + Resource::AnyAttributeSet& Resource:: + getAnyAttribute () + { + return this->any_attribute_; + } + + void Resource:: + setAnyAttribute (const AnyAttributeSet& s) + { + this->any_attribute_ = s; + } + + const ::xercesc::DOMDocument& Resource:: + getDomDocument () const + { + return *this->dom_document_; + } + + ::xercesc::DOMDocument& Resource:: + getDomDocument () + { + return *this->dom_document_; + } + + + // Instance + // + + const Instance::AnySequence& Instance:: + getAny () const + { + return this->any_; + } + + Instance::AnySequence& Instance:: + getAny () + { + return this->any_; + } + + void Instance:: + setAny (const AnySequence& s) + { + this->any_ = s; + } + + const Instance::IdType& Instance:: + getId () const + { + return this->id_.get (); + } + + Instance::IdType& Instance:: + getId () + { + return this->id_.get (); + } + + void Instance:: + setId (const IdType& x) + { + this->id_.set (x); + } + + void Instance:: + setId (::std::unique_ptr< IdType > x) + { + this->id_.set (std::move (x)); + } + + ::std::unique_ptr< Instance::IdType > Instance:: + setDetachId () + { + return this->id_.detach (); + } + + const Instance::StateType& Instance:: + getState () const + { + return this->state_.get (); + } + + Instance::StateType& Instance:: + getState () + { + return this->state_.get (); + } + + void Instance:: + setState (const StateType& x) + { + this->state_.set (x); + } + + void Instance:: + setState (::std::unique_ptr< StateType > x) + { + this->state_.set (std::move (x)); + } + + ::std::unique_ptr< Instance::StateType > Instance:: + setDetachState () + { + return this->state_.detach (); + } + + const Instance::ReasonOptional& Instance:: + getReason () const + { + return this->reason_; + } + + Instance::ReasonOptional& Instance:: + getReason () + { + return this->reason_; + } + + void Instance:: + setReason (const ReasonType& x) + { + this->reason_.set (x); + } + + void Instance:: + setReason (const ReasonOptional& x) + { + this->reason_ = x; + } + + void Instance:: + setReason (::std::unique_ptr< ReasonType > x) + { + this->reason_.set (std::move (x)); + } + + const Instance::CidOptional& Instance:: + getCid () const + { + return this->cid_; + } + + Instance::CidOptional& Instance:: + getCid () + { + return this->cid_; + } + + void Instance:: + setCid (const CidType& x) + { + this->cid_.set (x); + } + + void Instance:: + setCid (const CidOptional& x) + { + this->cid_ = x; + } + + void Instance:: + setCid (::std::unique_ptr< CidType > x) + { + this->cid_.set (std::move (x)); + } + + const Instance::AnyAttributeSet& Instance:: + getAnyAttribute () const + { + return this->any_attribute_; + } + + Instance::AnyAttributeSet& Instance:: + getAnyAttribute () + { + return this->any_attribute_; + } + + void Instance:: + setAnyAttribute (const AnyAttributeSet& s) + { + this->any_attribute_ = s; + } + + const ::xercesc::DOMDocument& Instance:: + getDomDocument () const + { + return *this->dom_document_; + } + + ::xercesc::DOMDocument& Instance:: + getDomDocument () + { + return *this->dom_document_; + } + + + // Name + // + + const Name::LangOptional& Name:: + getLang () const + { + return this->lang_; + } + + Name::LangOptional& Name:: + getLang () + { + return this->lang_; + } + + void Name:: + setLang (const LangType& x) + { + this->lang_.set (x); + } + + void Name:: + setLang (const LangOptional& x) + { + this->lang_ = x; + } + + void Name:: + setLang (::std::unique_ptr< LangType > x) + { + this->lang_.set (std::move (x)); + } + + + // State + // + + State:: + State (Value v) + : ::LinphonePrivate::Xsd::XmlSchema::String (_xsd_State_literals_[v]) + { + } + + State:: + State (const char* v) + : ::LinphonePrivate::Xsd::XmlSchema::String (v) + { + } + + State:: + State (const ::std::string& v) + : ::LinphonePrivate::Xsd::XmlSchema::String (v) + { + } + + State:: + State (const ::LinphonePrivate::Xsd::XmlSchema::String& v) + : ::LinphonePrivate::Xsd::XmlSchema::String (v) + { + } + + State:: + State (const State& v, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + ::LinphonePrivate::Xsd::XmlSchema::Container* c) + : ::LinphonePrivate::Xsd::XmlSchema::String (v, f, c) + { + } + + State& State:: + operator= (Value v) + { + static_cast< ::LinphonePrivate::Xsd::XmlSchema::String& > (*this) = + ::LinphonePrivate::Xsd::XmlSchema::String (_xsd_State_literals_[v]); + + return *this; + } + } } } @@ -570,764 +576,776 @@ namespace rlmi #include -namespace rlmi +namespace LinphonePrivate { - // List - // - - List:: - List (const UriType& uri, - const VersionType& version, - const FullStateType& fullState) - : ::LinphonePrivate::Xsd::XmlSchema::Type (), - dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), - name_ (this), - resource_ (this), - uri_ (uri, this), - version_ (version, this), - fullState_ (fullState, this), - cid_ (this), - any_attribute_ (this->getDomDocument ()) + namespace Xsd { - } - - List:: - List (const List& x, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - ::LinphonePrivate::Xsd::XmlSchema::Container* c) - : ::LinphonePrivate::Xsd::XmlSchema::Type (x, f, c), - dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), - name_ (x.name_, f, this), - resource_ (x.resource_, f, this), - uri_ (x.uri_, f, this), - version_ (x.version_, f, this), - fullState_ (x.fullState_, f, this), - cid_ (x.cid_, f, this), - any_attribute_ (x.any_attribute_, this->getDomDocument ()) - { - } - - List:: - List (const ::xercesc::DOMElement& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - ::LinphonePrivate::Xsd::XmlSchema::Container* c) - : ::LinphonePrivate::Xsd::XmlSchema::Type (e, f | ::LinphonePrivate::Xsd::XmlSchema::Flags::base, c), - dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), - name_ (this), - resource_ (this), - uri_ (this), - version_ (this), - fullState_ (this), - cid_ (this), - any_attribute_ (this->getDomDocument ()) - { - if ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::base) == 0) + namespace Rlmi { - ::xsd::cxx::xml::dom::parser< char > p (e, true, false, true); - this->parse (p, f); - } - } - - void List:: - parse (::xsd::cxx::xml::dom::parser< char >& p, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - for (; p.more_content (); p.next_content (false)) - { - const ::xercesc::DOMElement& i (p.cur_element ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (i)); - - // name + // List // - if (n.name () == "name" && n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - ::std::unique_ptr< NameType > r ( - NameTraits::create (i, f, this)); - this->name_.push_back (::std::move (r)); - continue; + List:: + List (const UriType& uri, + const VersionType& version, + const FullStateType& fullState) + : ::LinphonePrivate::Xsd::XmlSchema::Type (), + dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), + name_ (this), + resource_ (this), + uri_ (uri, this), + version_ (version, this), + fullState_ (fullState, this), + cid_ (this), + any_attribute_ (this->getDomDocument ()) + { } - // resource - // - if (n.name () == "resource" && n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - ::std::unique_ptr< ResourceType > r ( - ResourceTraits::create (i, f, this)); - - this->resource_.push_back (::std::move (r)); - continue; - } - - break; - } - - while (p.more_attributes ()) - { - const ::xercesc::DOMAttr& i (p.next_attribute ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (i)); - - if (n.name () == "uri" && n.namespace_ ().empty ()) - { - this->uri_.set (UriTraits::create (i, f, this)); - continue; - } - - if (n.name () == "version" && n.namespace_ ().empty ()) - { - this->version_.set (VersionTraits::create (i, f, this)); - continue; - } - - if (n.name () == "fullState" && n.namespace_ ().empty ()) - { - this->fullState_.set (FullStateTraits::create (i, f, this)); - continue; - } - - if (n.name () == "cid" && n.namespace_ ().empty ()) - { - this->cid_.set (CidTraits::create (i, f, this)); - continue; - } - - // any_attribute - // - if ((n.namespace_ () != ::xsd::cxx::xml::bits::xmlns_namespace< char > () && - n.namespace_ () != ::xsd::cxx::xml::bits::xsi_namespace< char > ())) - { - ::xercesc::DOMAttr* r ( - static_cast< ::xercesc::DOMAttr* > ( - this->getDomDocument ().importNode ( - const_cast< ::xercesc::DOMAttr* > (&i), true))); - this->any_attribute_ .insert (r); - continue; - } - } - - if (!uri_.present ()) - { - throw ::xsd::cxx::tree::expected_attribute< char > ( - "uri", - ""); - } - - if (!version_.present ()) - { - throw ::xsd::cxx::tree::expected_attribute< char > ( - "version", - ""); - } - - if (!fullState_.present ()) - { - throw ::xsd::cxx::tree::expected_attribute< char > ( - "fullState", - ""); - } - } - - List* List:: - _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f, - ::LinphonePrivate::Xsd::XmlSchema::Container* c) const - { - return new class List (*this, f, c); - } - - List& List:: - operator= (const List& x) - { - if (this != &x) - { - static_cast< ::LinphonePrivate::Xsd::XmlSchema::Type& > (*this) = x; - this->name_ = x.name_; - this->resource_ = x.resource_; - this->uri_ = x.uri_; - this->version_ = x.version_; - this->fullState_ = x.fullState_; - this->cid_ = x.cid_; - this->any_attribute_ = x.any_attribute_; - } - - return *this; - } - - List:: - ~List () - { - } - - // Resource - // - - Resource:: - Resource (const UriType& uri) - : ::LinphonePrivate::Xsd::XmlSchema::Type (), - dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), - name_ (this), - instance_ (this), - uri_ (uri, this), - any_attribute_ (this->getDomDocument ()) - { - } - - Resource:: - Resource (const Resource& x, + List:: + List (const List& x, ::LinphonePrivate::Xsd::XmlSchema::Flags f, ::LinphonePrivate::Xsd::XmlSchema::Container* c) - : ::LinphonePrivate::Xsd::XmlSchema::Type (x, f, c), - dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), - name_ (x.name_, f, this), - instance_ (x.instance_, f, this), - uri_ (x.uri_, f, this), - any_attribute_ (x.any_attribute_, this->getDomDocument ()) - { - } + : ::LinphonePrivate::Xsd::XmlSchema::Type (x, f, c), + dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), + name_ (x.name_, f, this), + resource_ (x.resource_, f, this), + uri_ (x.uri_, f, this), + version_ (x.version_, f, this), + fullState_ (x.fullState_, f, this), + cid_ (x.cid_, f, this), + any_attribute_ (x.any_attribute_, this->getDomDocument ()) + { + } - Resource:: - Resource (const ::xercesc::DOMElement& e, + List:: + List (const ::xercesc::DOMElement& e, ::LinphonePrivate::Xsd::XmlSchema::Flags f, ::LinphonePrivate::Xsd::XmlSchema::Container* c) - : ::LinphonePrivate::Xsd::XmlSchema::Type (e, f | ::LinphonePrivate::Xsd::XmlSchema::Flags::base, c), - dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), - name_ (this), - instance_ (this), - uri_ (this), - any_attribute_ (this->getDomDocument ()) - { - if ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::base) == 0) - { - ::xsd::cxx::xml::dom::parser< char > p (e, true, false, true); - this->parse (p, f); - } - } + : ::LinphonePrivate::Xsd::XmlSchema::Type (e, f | ::LinphonePrivate::Xsd::XmlSchema::Flags::base, c), + dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), + name_ (this), + resource_ (this), + uri_ (this), + version_ (this), + fullState_ (this), + cid_ (this), + any_attribute_ (this->getDomDocument ()) + { + if ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::base) == 0) + { + ::xsd::cxx::xml::dom::parser< char > p (e, true, false, true); + this->parse (p, f); + } + } - void Resource:: - parse (::xsd::cxx::xml::dom::parser< char >& p, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - for (; p.more_content (); p.next_content (false)) - { - const ::xercesc::DOMElement& i (p.cur_element ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (i)); + void List:: + parse (::xsd::cxx::xml::dom::parser< char >& p, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + for (; p.more_content (); p.next_content (false)) + { + const ::xercesc::DOMElement& i (p.cur_element ()); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (i)); - // name + // name + // + if (n.name () == "name" && n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + ::std::unique_ptr< NameType > r ( + NameTraits::create (i, f, this)); + + this->name_.push_back (::std::move (r)); + continue; + } + + // resource + // + if (n.name () == "resource" && n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + ::std::unique_ptr< ResourceType > r ( + ResourceTraits::create (i, f, this)); + + this->resource_.push_back (::std::move (r)); + continue; + } + + break; + } + + while (p.more_attributes ()) + { + const ::xercesc::DOMAttr& i (p.next_attribute ()); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (i)); + + if (n.name () == "uri" && n.namespace_ ().empty ()) + { + this->uri_.set (UriTraits::create (i, f, this)); + continue; + } + + if (n.name () == "version" && n.namespace_ ().empty ()) + { + this->version_.set (VersionTraits::create (i, f, this)); + continue; + } + + if (n.name () == "fullState" && n.namespace_ ().empty ()) + { + this->fullState_.set (FullStateTraits::create (i, f, this)); + continue; + } + + if (n.name () == "cid" && n.namespace_ ().empty ()) + { + this->cid_.set (CidTraits::create (i, f, this)); + continue; + } + + // any_attribute + // + if ((n.namespace_ () != ::xsd::cxx::xml::bits::xmlns_namespace< char > () && + n.namespace_ () != ::xsd::cxx::xml::bits::xsi_namespace< char > ())) + { + ::xercesc::DOMAttr* r ( + static_cast< ::xercesc::DOMAttr* > ( + this->getDomDocument ().importNode ( + const_cast< ::xercesc::DOMAttr* > (&i), true))); + this->any_attribute_ .insert (r); + continue; + } + } + + if (!uri_.present ()) + { + throw ::xsd::cxx::tree::expected_attribute< char > ( + "uri", + ""); + } + + if (!version_.present ()) + { + throw ::xsd::cxx::tree::expected_attribute< char > ( + "version", + ""); + } + + if (!fullState_.present ()) + { + throw ::xsd::cxx::tree::expected_attribute< char > ( + "fullState", + ""); + } + } + + List* List:: + _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f, + ::LinphonePrivate::Xsd::XmlSchema::Container* c) const + { + return new class List (*this, f, c); + } + + List& List:: + operator= (const List& x) + { + if (this != &x) + { + static_cast< ::LinphonePrivate::Xsd::XmlSchema::Type& > (*this) = x; + this->name_ = x.name_; + this->resource_ = x.resource_; + this->uri_ = x.uri_; + this->version_ = x.version_; + this->fullState_ = x.fullState_; + this->cid_ = x.cid_; + this->any_attribute_ = x.any_attribute_; + } + + return *this; + } + + List:: + ~List () + { + } + + // Resource // - if (n.name () == "name" && n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - ::std::unique_ptr< NameType > r ( - NameTraits::create (i, f, this)); - this->name_.push_back (::std::move (r)); - continue; + Resource:: + Resource (const UriType& uri) + : ::LinphonePrivate::Xsd::XmlSchema::Type (), + dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), + name_ (this), + instance_ (this), + uri_ (uri, this), + any_attribute_ (this->getDomDocument ()) + { } - // instance + Resource:: + Resource (const Resource& x, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + ::LinphonePrivate::Xsd::XmlSchema::Container* c) + : ::LinphonePrivate::Xsd::XmlSchema::Type (x, f, c), + dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), + name_ (x.name_, f, this), + instance_ (x.instance_, f, this), + uri_ (x.uri_, f, this), + any_attribute_ (x.any_attribute_, this->getDomDocument ()) + { + } + + Resource:: + Resource (const ::xercesc::DOMElement& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + ::LinphonePrivate::Xsd::XmlSchema::Container* c) + : ::LinphonePrivate::Xsd::XmlSchema::Type (e, f | ::LinphonePrivate::Xsd::XmlSchema::Flags::base, c), + dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), + name_ (this), + instance_ (this), + uri_ (this), + any_attribute_ (this->getDomDocument ()) + { + if ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::base) == 0) + { + ::xsd::cxx::xml::dom::parser< char > p (e, true, false, true); + this->parse (p, f); + } + } + + void Resource:: + parse (::xsd::cxx::xml::dom::parser< char >& p, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + for (; p.more_content (); p.next_content (false)) + { + const ::xercesc::DOMElement& i (p.cur_element ()); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (i)); + + // name + // + if (n.name () == "name" && n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + ::std::unique_ptr< NameType > r ( + NameTraits::create (i, f, this)); + + this->name_.push_back (::std::move (r)); + continue; + } + + // instance + // + if (n.name () == "instance" && n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + ::std::unique_ptr< InstanceType > r ( + InstanceTraits::create (i, f, this)); + + this->instance_.push_back (::std::move (r)); + continue; + } + + break; + } + + while (p.more_attributes ()) + { + const ::xercesc::DOMAttr& i (p.next_attribute ()); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (i)); + + if (n.name () == "uri" && n.namespace_ ().empty ()) + { + this->uri_.set (UriTraits::create (i, f, this)); + continue; + } + + // any_attribute + // + if ((n.namespace_ () != ::xsd::cxx::xml::bits::xmlns_namespace< char > () && + n.namespace_ () != ::xsd::cxx::xml::bits::xsi_namespace< char > ())) + { + ::xercesc::DOMAttr* r ( + static_cast< ::xercesc::DOMAttr* > ( + this->getDomDocument ().importNode ( + const_cast< ::xercesc::DOMAttr* > (&i), true))); + this->any_attribute_ .insert (r); + continue; + } + } + + if (!uri_.present ()) + { + throw ::xsd::cxx::tree::expected_attribute< char > ( + "uri", + ""); + } + } + + Resource* Resource:: + _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f, + ::LinphonePrivate::Xsd::XmlSchema::Container* c) const + { + return new class Resource (*this, f, c); + } + + Resource& Resource:: + operator= (const Resource& x) + { + if (this != &x) + { + static_cast< ::LinphonePrivate::Xsd::XmlSchema::Type& > (*this) = x; + this->name_ = x.name_; + this->instance_ = x.instance_; + this->uri_ = x.uri_; + this->any_attribute_ = x.any_attribute_; + } + + return *this; + } + + Resource:: + ~Resource () + { + } + + // Instance // - if (n.name () == "instance" && n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - ::std::unique_ptr< InstanceType > r ( - InstanceTraits::create (i, f, this)); - this->instance_.push_back (::std::move (r)); - continue; + Instance:: + Instance (const IdType& id, + const StateType& state) + : ::LinphonePrivate::Xsd::XmlSchema::Type (), + dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), + any_ (this->getDomDocument ()), + id_ (id, this), + state_ (state, this), + reason_ (this), + cid_ (this), + any_attribute_ (this->getDomDocument ()) + { } - break; - } - - while (p.more_attributes ()) - { - const ::xercesc::DOMAttr& i (p.next_attribute ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (i)); - - if (n.name () == "uri" && n.namespace_ ().empty ()) + Instance:: + Instance (const Instance& x, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + ::LinphonePrivate::Xsd::XmlSchema::Container* c) + : ::LinphonePrivate::Xsd::XmlSchema::Type (x, f, c), + dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), + any_ (x.any_, this->getDomDocument ()), + id_ (x.id_, f, this), + state_ (x.state_, f, this), + reason_ (x.reason_, f, this), + cid_ (x.cid_, f, this), + any_attribute_ (x.any_attribute_, this->getDomDocument ()) { - this->uri_.set (UriTraits::create (i, f, this)); - continue; } - // any_attribute + Instance:: + Instance (const ::xercesc::DOMElement& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + ::LinphonePrivate::Xsd::XmlSchema::Container* c) + : ::LinphonePrivate::Xsd::XmlSchema::Type (e, f | ::LinphonePrivate::Xsd::XmlSchema::Flags::base, c), + dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), + any_ (this->getDomDocument ()), + id_ (this), + state_ (this), + reason_ (this), + cid_ (this), + any_attribute_ (this->getDomDocument ()) + { + if ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::base) == 0) + { + ::xsd::cxx::xml::dom::parser< char > p (e, true, false, true); + this->parse (p, f); + } + } + + void Instance:: + parse (::xsd::cxx::xml::dom::parser< char >& p, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + for (; p.more_content (); p.next_content (false)) + { + const ::xercesc::DOMElement& i (p.cur_element ()); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (i)); + + // any + // + if (true) + { + ::xercesc::DOMElement* r ( + static_cast< ::xercesc::DOMElement* > ( + this->getDomDocument ().importNode ( + const_cast< ::xercesc::DOMElement* > (&i), true))); + this->any_.push_back (r); + continue; + } + + break; + } + + while (p.more_attributes ()) + { + const ::xercesc::DOMAttr& i (p.next_attribute ()); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (i)); + + if (n.name () == "id" && n.namespace_ ().empty ()) + { + this->id_.set (IdTraits::create (i, f, this)); + continue; + } + + if (n.name () == "state" && n.namespace_ ().empty ()) + { + this->state_.set (StateTraits::create (i, f, this)); + continue; + } + + if (n.name () == "reason" && n.namespace_ ().empty ()) + { + this->reason_.set (ReasonTraits::create (i, f, this)); + continue; + } + + if (n.name () == "cid" && n.namespace_ ().empty ()) + { + this->cid_.set (CidTraits::create (i, f, this)); + continue; + } + + // any_attribute + // + if ((n.namespace_ () != ::xsd::cxx::xml::bits::xmlns_namespace< char > () && + n.namespace_ () != ::xsd::cxx::xml::bits::xsi_namespace< char > ())) + { + ::xercesc::DOMAttr* r ( + static_cast< ::xercesc::DOMAttr* > ( + this->getDomDocument ().importNode ( + const_cast< ::xercesc::DOMAttr* > (&i), true))); + this->any_attribute_ .insert (r); + continue; + } + } + + if (!id_.present ()) + { + throw ::xsd::cxx::tree::expected_attribute< char > ( + "id", + ""); + } + + if (!state_.present ()) + { + throw ::xsd::cxx::tree::expected_attribute< char > ( + "state", + ""); + } + } + + Instance* Instance:: + _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f, + ::LinphonePrivate::Xsd::XmlSchema::Container* c) const + { + return new class Instance (*this, f, c); + } + + Instance& Instance:: + operator= (const Instance& x) + { + if (this != &x) + { + static_cast< ::LinphonePrivate::Xsd::XmlSchema::Type& > (*this) = x; + this->any_ = x.any_; + this->id_ = x.id_; + this->state_ = x.state_; + this->reason_ = x.reason_; + this->cid_ = x.cid_; + this->any_attribute_ = x.any_attribute_; + } + + return *this; + } + + Instance:: + ~Instance () + { + } + + // Name // - if ((n.namespace_ () != ::xsd::cxx::xml::bits::xmlns_namespace< char > () && - n.namespace_ () != ::xsd::cxx::xml::bits::xsi_namespace< char > ())) + + Name:: + Name () + : ::LinphonePrivate::Xsd::XmlSchema::String (), + lang_ (this) { - ::xercesc::DOMAttr* r ( - static_cast< ::xercesc::DOMAttr* > ( - this->getDomDocument ().importNode ( - const_cast< ::xercesc::DOMAttr* > (&i), true))); - this->any_attribute_ .insert (r); - continue; } - } - if (!uri_.present ()) - { - throw ::xsd::cxx::tree::expected_attribute< char > ( - "uri", - ""); - } - } + Name:: + Name (const char* _xsd_String_base) + : ::LinphonePrivate::Xsd::XmlSchema::String (_xsd_String_base), + lang_ (this) + { + } - Resource* Resource:: - _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f, - ::LinphonePrivate::Xsd::XmlSchema::Container* c) const - { - return new class Resource (*this, f, c); - } + Name:: + Name (const ::std::string& _xsd_String_base) + : ::LinphonePrivate::Xsd::XmlSchema::String (_xsd_String_base), + lang_ (this) + { + } - Resource& Resource:: - operator= (const Resource& x) - { - if (this != &x) - { - static_cast< ::LinphonePrivate::Xsd::XmlSchema::Type& > (*this) = x; - this->name_ = x.name_; - this->instance_ = x.instance_; - this->uri_ = x.uri_; - this->any_attribute_ = x.any_attribute_; - } + Name:: + Name (const ::LinphonePrivate::Xsd::XmlSchema::String& _xsd_String_base) + : ::LinphonePrivate::Xsd::XmlSchema::String (_xsd_String_base), + lang_ (this) + { + } - return *this; - } - - Resource:: - ~Resource () - { - } - - // Instance - // - - Instance:: - Instance (const IdType& id, - const StateType& state) - : ::LinphonePrivate::Xsd::XmlSchema::Type (), - dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), - any_ (this->getDomDocument ()), - id_ (id, this), - state_ (state, this), - reason_ (this), - cid_ (this), - any_attribute_ (this->getDomDocument ()) - { - } - - Instance:: - Instance (const Instance& x, + Name:: + Name (const Name& x, ::LinphonePrivate::Xsd::XmlSchema::Flags f, ::LinphonePrivate::Xsd::XmlSchema::Container* c) - : ::LinphonePrivate::Xsd::XmlSchema::Type (x, f, c), - dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), - any_ (x.any_, this->getDomDocument ()), - id_ (x.id_, f, this), - state_ (x.state_, f, this), - reason_ (x.reason_, f, this), - cid_ (x.cid_, f, this), - any_attribute_ (x.any_attribute_, this->getDomDocument ()) - { - } + : ::LinphonePrivate::Xsd::XmlSchema::String (x, f, c), + lang_ (x.lang_, f, this) + { + } - Instance:: - Instance (const ::xercesc::DOMElement& e, + Name:: + Name (const ::xercesc::DOMElement& e, ::LinphonePrivate::Xsd::XmlSchema::Flags f, ::LinphonePrivate::Xsd::XmlSchema::Container* c) - : ::LinphonePrivate::Xsd::XmlSchema::Type (e, f | ::LinphonePrivate::Xsd::XmlSchema::Flags::base, c), - dom_document_ (::xsd::cxx::xml::dom::create_document< char > ()), - any_ (this->getDomDocument ()), - id_ (this), - state_ (this), - reason_ (this), - cid_ (this), - any_attribute_ (this->getDomDocument ()) - { - if ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::base) == 0) - { - ::xsd::cxx::xml::dom::parser< char > p (e, true, false, true); - this->parse (p, f); - } - } + : ::LinphonePrivate::Xsd::XmlSchema::String (e, f | ::LinphonePrivate::Xsd::XmlSchema::Flags::base, c), + lang_ (this) + { + if ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::base) == 0) + { + ::xsd::cxx::xml::dom::parser< char > p (e, false, false, true); + this->parse (p, f); + } + } - void Instance:: - parse (::xsd::cxx::xml::dom::parser< char >& p, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - for (; p.more_content (); p.next_content (false)) - { - const ::xercesc::DOMElement& i (p.cur_element ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (i)); + void Name:: + parse (::xsd::cxx::xml::dom::parser< char >& p, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + while (p.more_attributes ()) + { + const ::xercesc::DOMAttr& i (p.next_attribute ()); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (i)); - // any + if (n.name () == "lang" && n.namespace_ () == "http://www.w3.org/XML/1998/namespace") + { + this->lang_.set (LangTraits::create (i, f, this)); + continue; + } + } + } + + Name* Name:: + _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f, + ::LinphonePrivate::Xsd::XmlSchema::Container* c) const + { + return new class Name (*this, f, c); + } + + Name& Name:: + operator= (const Name& x) + { + if (this != &x) + { + static_cast< ::LinphonePrivate::Xsd::XmlSchema::String& > (*this) = x; + this->lang_ = x.lang_; + } + + return *this; + } + + Name:: + ~Name () + { + } + + // State // - if (true) + + State:: + State (const ::xercesc::DOMElement& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + ::LinphonePrivate::Xsd::XmlSchema::Container* c) + : ::LinphonePrivate::Xsd::XmlSchema::String (e, f, c) { - ::xercesc::DOMElement* r ( - static_cast< ::xercesc::DOMElement* > ( - this->getDomDocument ().importNode ( - const_cast< ::xercesc::DOMElement* > (&i), true))); - this->any_.push_back (r); - continue; + _xsd_State_convert (); } - break; - } - - while (p.more_attributes ()) - { - const ::xercesc::DOMAttr& i (p.next_attribute ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (i)); - - if (n.name () == "id" && n.namespace_ ().empty ()) + State:: + State (const ::xercesc::DOMAttr& a, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + ::LinphonePrivate::Xsd::XmlSchema::Container* c) + : ::LinphonePrivate::Xsd::XmlSchema::String (a, f, c) { - this->id_.set (IdTraits::create (i, f, this)); - continue; + _xsd_State_convert (); } - if (n.name () == "state" && n.namespace_ ().empty ()) + State:: + State (const ::std::string& s, + const ::xercesc::DOMElement* e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + ::LinphonePrivate::Xsd::XmlSchema::Container* c) + : ::LinphonePrivate::Xsd::XmlSchema::String (s, e, f, c) { - this->state_.set (StateTraits::create (i, f, this)); - continue; + _xsd_State_convert (); } - if (n.name () == "reason" && n.namespace_ ().empty ()) + State* State:: + _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f, + ::LinphonePrivate::Xsd::XmlSchema::Container* c) const { - this->reason_.set (ReasonTraits::create (i, f, this)); - continue; + return new class State (*this, f, c); } - if (n.name () == "cid" && n.namespace_ ().empty ()) + State::Value State:: + _xsd_State_convert () const { - this->cid_.set (CidTraits::create (i, f, this)); - continue; + ::xsd::cxx::tree::enum_comparator< char > c (_xsd_State_literals_); + const Value* i (::std::lower_bound ( + _xsd_State_indexes_, + _xsd_State_indexes_ + 3, + *this, + c)); + + if (i == _xsd_State_indexes_ + 3 || _xsd_State_literals_[*i] != *this) + { + throw ::xsd::cxx::tree::unexpected_enumerator < char > (*this); + } + + return *i; } - // any_attribute - // - if ((n.namespace_ () != ::xsd::cxx::xml::bits::xmlns_namespace< char > () && - n.namespace_ () != ::xsd::cxx::xml::bits::xsi_namespace< char > ())) + const char* const State:: + _xsd_State_literals_[3] = { - ::xercesc::DOMAttr* r ( - static_cast< ::xercesc::DOMAttr* > ( - this->getDomDocument ().importNode ( - const_cast< ::xercesc::DOMAttr* > (&i), true))); - this->any_attribute_ .insert (r); - continue; - } - } + "active", + "pending", + "terminated" + }; - if (!id_.present ()) - { - throw ::xsd::cxx::tree::expected_attribute< char > ( - "id", - ""); - } - - if (!state_.present ()) - { - throw ::xsd::cxx::tree::expected_attribute< char > ( - "state", - ""); - } - } - - Instance* Instance:: - _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f, - ::LinphonePrivate::Xsd::XmlSchema::Container* c) const - { - return new class Instance (*this, f, c); - } - - Instance& Instance:: - operator= (const Instance& x) - { - if (this != &x) - { - static_cast< ::LinphonePrivate::Xsd::XmlSchema::Type& > (*this) = x; - this->any_ = x.any_; - this->id_ = x.id_; - this->state_ = x.state_; - this->reason_ = x.reason_; - this->cid_ = x.cid_; - this->any_attribute_ = x.any_attribute_; - } - - return *this; - } - - Instance:: - ~Instance () - { - } - - // Name - // - - Name:: - Name () - : ::LinphonePrivate::Xsd::XmlSchema::String (), - lang_ (this) - { - } - - Name:: - Name (const char* _xsd_String_base) - : ::LinphonePrivate::Xsd::XmlSchema::String (_xsd_String_base), - lang_ (this) - { - } - - Name:: - Name (const ::std::string& _xsd_String_base) - : ::LinphonePrivate::Xsd::XmlSchema::String (_xsd_String_base), - lang_ (this) - { - } - - Name:: - Name (const ::LinphonePrivate::Xsd::XmlSchema::String& _xsd_String_base) - : ::LinphonePrivate::Xsd::XmlSchema::String (_xsd_String_base), - lang_ (this) - { - } - - Name:: - Name (const Name& x, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - ::LinphonePrivate::Xsd::XmlSchema::Container* c) - : ::LinphonePrivate::Xsd::XmlSchema::String (x, f, c), - lang_ (x.lang_, f, this) - { - } - - Name:: - Name (const ::xercesc::DOMElement& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - ::LinphonePrivate::Xsd::XmlSchema::Container* c) - : ::LinphonePrivate::Xsd::XmlSchema::String (e, f | ::LinphonePrivate::Xsd::XmlSchema::Flags::base, c), - lang_ (this) - { - if ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::base) == 0) - { - ::xsd::cxx::xml::dom::parser< char > p (e, false, false, true); - this->parse (p, f); - } - } - - void Name:: - parse (::xsd::cxx::xml::dom::parser< char >& p, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - while (p.more_attributes ()) - { - const ::xercesc::DOMAttr& i (p.next_attribute ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (i)); - - if (n.name () == "lang" && n.namespace_ () == "http://www.w3.org/XML/1998/namespace") + const State::Value State:: + _xsd_State_indexes_[3] = { - this->lang_.set (LangTraits::create (i, f, this)); - continue; - } + ::LinphonePrivate::Xsd::Rlmi::State::active, + ::LinphonePrivate::Xsd::Rlmi::State::pending, + ::LinphonePrivate::Xsd::Rlmi::State::terminated + }; } } - - Name* Name:: - _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f, - ::LinphonePrivate::Xsd::XmlSchema::Container* c) const - { - return new class Name (*this, f, c); - } - - Name& Name:: - operator= (const Name& x) - { - if (this != &x) - { - static_cast< ::LinphonePrivate::Xsd::XmlSchema::String& > (*this) = x; - this->lang_ = x.lang_; - } - - return *this; - } - - Name:: - ~Name () - { - } - - // State - // - - State:: - State (const ::xercesc::DOMElement& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - ::LinphonePrivate::Xsd::XmlSchema::Container* c) - : ::LinphonePrivate::Xsd::XmlSchema::String (e, f, c) - { - _xsd_State_convert (); - } - - State:: - State (const ::xercesc::DOMAttr& a, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - ::LinphonePrivate::Xsd::XmlSchema::Container* c) - : ::LinphonePrivate::Xsd::XmlSchema::String (a, f, c) - { - _xsd_State_convert (); - } - - State:: - State (const ::std::string& s, - const ::xercesc::DOMElement* e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - ::LinphonePrivate::Xsd::XmlSchema::Container* c) - : ::LinphonePrivate::Xsd::XmlSchema::String (s, e, f, c) - { - _xsd_State_convert (); - } - - State* State:: - _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f, - ::LinphonePrivate::Xsd::XmlSchema::Container* c) const - { - return new class State (*this, f, c); - } - - State::Value State:: - _xsd_State_convert () const - { - ::xsd::cxx::tree::enum_comparator< char > c (_xsd_State_literals_); - const Value* i (::std::lower_bound ( - _xsd_State_indexes_, - _xsd_State_indexes_ + 3, - *this, - c)); - - if (i == _xsd_State_indexes_ + 3 || _xsd_State_literals_[*i] != *this) - { - throw ::xsd::cxx::tree::unexpected_enumerator < char > (*this); - } - - return *i; - } - - const char* const State:: - _xsd_State_literals_[3] = - { - "active", - "pending", - "terminated" - }; - - const State::Value State:: - _xsd_State_indexes_[3] = - { - ::rlmi::State::active, - ::rlmi::State::pending, - ::rlmi::State::terminated - }; } #include -namespace rlmi +namespace LinphonePrivate { - ::std::ostream& - operator<< (::std::ostream& o, const List& i) + namespace Xsd { - for (List::NameConstIterator - b (i.getName ().begin ()), e (i.getName ().end ()); - b != e; ++b) + namespace Rlmi { - o << ::std::endl << "name: " << *b; + ::std::ostream& + operator<< (::std::ostream& o, const List& i) + { + for (List::NameConstIterator + b (i.getName ().begin ()), e (i.getName ().end ()); + b != e; ++b) + { + o << ::std::endl << "name: " << *b; + } + + for (List::ResourceConstIterator + b (i.getResource ().begin ()), e (i.getResource ().end ()); + b != e; ++b) + { + o << ::std::endl << "resource: " << *b; + } + + o << ::std::endl << "uri: " << i.getUri (); + o << ::std::endl << "version: " << i.getVersion (); + o << ::std::endl << "fullState: " << i.getFullState (); + if (i.getCid ()) + { + o << ::std::endl << "cid: " << *i.getCid (); + } + + return o; + } + + ::std::ostream& + operator<< (::std::ostream& o, const Resource& i) + { + for (Resource::NameConstIterator + b (i.getName ().begin ()), e (i.getName ().end ()); + b != e; ++b) + { + o << ::std::endl << "name: " << *b; + } + + for (Resource::InstanceConstIterator + b (i.getInstance ().begin ()), e (i.getInstance ().end ()); + b != e; ++b) + { + o << ::std::endl << "instance: " << *b; + } + + o << ::std::endl << "uri: " << i.getUri (); + return o; + } + + ::std::ostream& + operator<< (::std::ostream& o, const Instance& i) + { + o << ::std::endl << "id: " << i.getId (); + o << ::std::endl << "state: " << i.getState (); + if (i.getReason ()) + { + o << ::std::endl << "reason: " << *i.getReason (); + } + + if (i.getCid ()) + { + o << ::std::endl << "cid: " << *i.getCid (); + } + + return o; + } + + ::std::ostream& + operator<< (::std::ostream& o, const Name& i) + { + o << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::String& > (i); + + if (i.getLang ()) + { + o << ::std::endl << "lang: " << *i.getLang (); + } + + return o; + } + + ::std::ostream& + operator<< (::std::ostream& o, State::Value i) + { + return o << State::_xsd_State_literals_[i]; + } + + ::std::ostream& + operator<< (::std::ostream& o, const State& i) + { + return o << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::String& > (i); + } } - - for (List::ResourceConstIterator - b (i.getResource ().begin ()), e (i.getResource ().end ()); - b != e; ++b) - { - o << ::std::endl << "resource: " << *b; - } - - o << ::std::endl << "uri: " << i.getUri (); - o << ::std::endl << "version: " << i.getVersion (); - o << ::std::endl << "fullState: " << i.getFullState (); - if (i.getCid ()) - { - o << ::std::endl << "cid: " << *i.getCid (); - } - - return o; - } - - ::std::ostream& - operator<< (::std::ostream& o, const Resource& i) - { - for (Resource::NameConstIterator - b (i.getName ().begin ()), e (i.getName ().end ()); - b != e; ++b) - { - o << ::std::endl << "name: " << *b; - } - - for (Resource::InstanceConstIterator - b (i.getInstance ().begin ()), e (i.getInstance ().end ()); - b != e; ++b) - { - o << ::std::endl << "instance: " << *b; - } - - o << ::std::endl << "uri: " << i.getUri (); - return o; - } - - ::std::ostream& - operator<< (::std::ostream& o, const Instance& i) - { - o << ::std::endl << "id: " << i.getId (); - o << ::std::endl << "state: " << i.getState (); - if (i.getReason ()) - { - o << ::std::endl << "reason: " << *i.getReason (); - } - - if (i.getCid ()) - { - o << ::std::endl << "cid: " << *i.getCid (); - } - - return o; - } - - ::std::ostream& - operator<< (::std::ostream& o, const Name& i) - { - o << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::String& > (i); - - if (i.getLang ()) - { - o << ::std::endl << "lang: " << *i.getLang (); - } - - return o; - } - - ::std::ostream& - operator<< (::std::ostream& o, State::Value i) - { - return o << State::_xsd_State_literals_[i]; - } - - ::std::ostream& - operator<< (::std::ostream& o, const State& i) - { - return o << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::String& > (i); } } @@ -1335,1070 +1353,1076 @@ namespace rlmi #include #include -namespace rlmi +namespace LinphonePrivate { - ::std::unique_ptr< ::rlmi::List > - parseList (const ::std::string& u, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + namespace Xsd { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - - ::xsd::cxx::tree::error_handler< char > h; - - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - u, h, p, f)); - - h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); - - return ::std::unique_ptr< ::rlmi::List > ( - ::rlmi::parseList ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } - - ::std::unique_ptr< ::rlmi::List > - parseList (const ::std::string& u, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - u, h, p, f)); - - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); - - return ::std::unique_ptr< ::rlmi::List > ( - ::rlmi::parseList ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } - - ::std::unique_ptr< ::rlmi::List > - parseList (const ::std::string& u, - ::xercesc::DOMErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - u, h, p, f)); - - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); - - return ::std::unique_ptr< ::rlmi::List > ( - ::rlmi::parseList ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } - - ::std::unique_ptr< ::rlmi::List > - parseList (::std::istream& is, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - - ::xsd::cxx::xml::sax::std_input_source isrc (is); - return ::rlmi::parseList (isrc, f, p); - } - - ::std::unique_ptr< ::rlmi::List > - parseList (::std::istream& is, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - - ::xsd::cxx::xml::sax::std_input_source isrc (is); - return ::rlmi::parseList (isrc, h, f, p); - } - - ::std::unique_ptr< ::rlmi::List > - parseList (::std::istream& is, - ::xercesc::DOMErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::sax::std_input_source isrc (is); - return ::rlmi::parseList (isrc, h, f, p); - } - - ::std::unique_ptr< ::rlmi::List > - parseList (::std::istream& is, - const ::std::string& sid, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - - ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); - return ::rlmi::parseList (isrc, f, p); - } - - ::std::unique_ptr< ::rlmi::List > - parseList (::std::istream& is, - const ::std::string& sid, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - - ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); - return ::rlmi::parseList (isrc, h, f, p); - } - - ::std::unique_ptr< ::rlmi::List > - parseList (::std::istream& is, - const ::std::string& sid, - ::xercesc::DOMErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); - return ::rlmi::parseList (isrc, h, f, p); - } - - ::std::unique_ptr< ::rlmi::List > - parseList (::xercesc::InputSource& i, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::tree::error_handler< char > h; - - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - i, h, p, f)); - - h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); - - return ::std::unique_ptr< ::rlmi::List > ( - ::rlmi::parseList ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } - - ::std::unique_ptr< ::rlmi::List > - parseList (::xercesc::InputSource& i, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - i, h, p, f)); - - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); - - return ::std::unique_ptr< ::rlmi::List > ( - ::rlmi::parseList ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } - - ::std::unique_ptr< ::rlmi::List > - parseList (::xercesc::InputSource& i, - ::xercesc::DOMErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - i, h, p, f)); - - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); - - return ::std::unique_ptr< ::rlmi::List > ( - ::rlmi::parseList ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } - - ::std::unique_ptr< ::rlmi::List > - parseList (const ::xercesc::DOMDocument& doc, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) + namespace Rlmi { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - static_cast< ::xercesc::DOMDocument* > (doc.cloneNode (true))); - - return ::std::unique_ptr< ::rlmi::List > ( - ::rlmi::parseList ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } - - const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (e)); - - if (n.name () == "list" && - n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - ::std::unique_ptr< ::rlmi::List > r ( - ::xsd::cxx::tree::traits< ::rlmi::List, char >::create ( - e, f, 0)); - return r; - } - - throw ::xsd::cxx::tree::unexpected_element < char > ( - n.name (), - n.namespace_ (), - "list", - "urn:ietf:params:xml:ns:rlmi"); - } - - ::std::unique_ptr< ::rlmi::List > - parseList (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties&) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > c ( - ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) && - !(f & ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom)) - ? static_cast< ::xercesc::DOMDocument* > (d->cloneNode (true)) - : 0); - - ::xercesc::DOMDocument& doc (c.get () ? *c : *d); - const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); - - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (e)); - - if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) - doc.setUserData (::LinphonePrivate::Xsd::XmlSchema::dom::treeNodeKey, - (c.get () ? &c : &d), - 0); - - if (n.name () == "list" && - n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - ::std::unique_ptr< ::rlmi::List > r ( - ::xsd::cxx::tree::traits< ::rlmi::List, char >::create ( - e, f, 0)); - return r; - } - - throw ::xsd::cxx::tree::unexpected_element < char > ( - n.name (), - n.namespace_ (), - "list", - "urn:ietf:params:xml:ns:rlmi"); - } - - ::std::unique_ptr< ::rlmi::Resource > - parseResource (const ::std::string& u, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (const ::std::string& u, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - ::xsd::cxx::tree::error_handler< char > h; + ::xsd::cxx::tree::error_handler< char > h; - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - u, h, p, f)); + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + u, h, p, f)); - h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); + h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); - return ::std::unique_ptr< ::rlmi::Resource > ( - ::rlmi::parseResource ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > ( + ::LinphonePrivate::Xsd::Rlmi::parseList ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } - ::std::unique_ptr< ::rlmi::Resource > - parseResource (const ::std::string& u, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (const ::std::string& u, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - u, h, p, f)); + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + u, h, p, f)); - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); - return ::std::unique_ptr< ::rlmi::Resource > ( - ::rlmi::parseResource ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > ( + ::LinphonePrivate::Xsd::Rlmi::parseList ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } - ::std::unique_ptr< ::rlmi::Resource > - parseResource (const ::std::string& u, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (const ::std::string& u, ::xercesc::DOMErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - u, h, p, f)); + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + u, h, p, f)); - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); - return ::std::unique_ptr< ::rlmi::Resource > ( - ::rlmi::parseResource ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > ( + ::LinphonePrivate::Xsd::Rlmi::parseList ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::std::istream& is, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - ::xsd::cxx::xml::sax::std_input_source isrc (is); - return ::rlmi::parseResource (isrc, f, p); - } + ::xsd::cxx::xml::sax::std_input_source isrc (is); + return ::LinphonePrivate::Xsd::Rlmi::parseList (isrc, f, p); + } - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::std::istream& is, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - ::xsd::cxx::xml::sax::std_input_source isrc (is); - return ::rlmi::parseResource (isrc, h, f, p); - } + ::xsd::cxx::xml::sax::std_input_source isrc (is); + return ::LinphonePrivate::Xsd::Rlmi::parseList (isrc, h, f, p); + } - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::std::istream& is, ::xercesc::DOMErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::sax::std_input_source isrc (is); - return ::rlmi::parseResource (isrc, h, f, p); - } + { + ::xsd::cxx::xml::sax::std_input_source isrc (is); + return ::LinphonePrivate::Xsd::Rlmi::parseList (isrc, h, f, p); + } - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::std::istream& is, const ::std::string& sid, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); - return ::rlmi::parseResource (isrc, f, p); - } + ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); + return ::LinphonePrivate::Xsd::Rlmi::parseList (isrc, f, p); + } - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::std::istream& is, const ::std::string& sid, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); - return ::rlmi::parseResource (isrc, h, f, p); - } + ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); + return ::LinphonePrivate::Xsd::Rlmi::parseList (isrc, h, f, p); + } - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::std::istream& is, const ::std::string& sid, ::xercesc::DOMErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); - return ::rlmi::parseResource (isrc, h, f, p); - } + { + ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); + return ::LinphonePrivate::Xsd::Rlmi::parseList (isrc, h, f, p); + } - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::xercesc::InputSource& i, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::xercesc::InputSource& i, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::tree::error_handler< char > h; + { + ::xsd::cxx::tree::error_handler< char > h; - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - i, h, p, f)); + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + i, h, p, f)); - h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); + h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); - return ::std::unique_ptr< ::rlmi::Resource > ( - ::rlmi::parseResource ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > ( + ::LinphonePrivate::Xsd::Rlmi::parseList ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::xercesc::InputSource& i, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::xercesc::InputSource& i, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - i, h, p, f)); + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + i, h, p, f)); - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); - return ::std::unique_ptr< ::rlmi::Resource > ( - ::rlmi::parseResource ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > ( + ::LinphonePrivate::Xsd::Rlmi::parseList ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::xercesc::InputSource& i, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::xercesc::InputSource& i, ::xercesc::DOMErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - i, h, p, f)); + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + i, h, p, f)); - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); - return ::std::unique_ptr< ::rlmi::Resource > ( - ::rlmi::parseResource ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > ( + ::LinphonePrivate::Xsd::Rlmi::parseList ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } - ::std::unique_ptr< ::rlmi::Resource > - parseResource (const ::xercesc::DOMDocument& doc, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (const ::xercesc::DOMDocument& doc, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - static_cast< ::xercesc::DOMDocument* > (doc.cloneNode (true))); + { + if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + static_cast< ::xercesc::DOMDocument* > (doc.cloneNode (true))); - return ::std::unique_ptr< ::rlmi::Resource > ( - ::rlmi::parseResource ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > ( + ::LinphonePrivate::Xsd::Rlmi::parseList ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } - const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (e)); + const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (e)); - if (n.name () == "resource" && - n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - ::std::unique_ptr< ::rlmi::Resource > r ( - ::xsd::cxx::tree::traits< ::rlmi::Resource, char >::create ( - e, f, 0)); - return r; - } + if (n.name () == "list" && + n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > r ( + ::xsd::cxx::tree::traits< ::LinphonePrivate::Xsd::Rlmi::List, char >::create ( + e, f, 0)); + return r; + } - throw ::xsd::cxx::tree::unexpected_element < char > ( - n.name (), - n.namespace_ (), - "resource", - "urn:ietf:params:xml:ns:rlmi"); - } + throw ::xsd::cxx::tree::unexpected_element < char > ( + n.name (), + n.namespace_ (), + "list", + "urn:ietf:params:xml:ns:rlmi"); + } - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties&) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > c ( - ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) && - !(f & ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom)) - ? static_cast< ::xercesc::DOMDocument* > (d->cloneNode (true)) - : 0); + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > c ( + ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) && + !(f & ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom)) + ? static_cast< ::xercesc::DOMDocument* > (d->cloneNode (true)) + : 0); - ::xercesc::DOMDocument& doc (c.get () ? *c : *d); - const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); + ::xercesc::DOMDocument& doc (c.get () ? *c : *d); + const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (e)); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (e)); - if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) - doc.setUserData (::LinphonePrivate::Xsd::XmlSchema::dom::treeNodeKey, - (c.get () ? &c : &d), - 0); + if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) + doc.setUserData (::LinphonePrivate::Xsd::XmlSchema::dom::treeNodeKey, + (c.get () ? &c : &d), + 0); - if (n.name () == "resource" && - n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - ::std::unique_ptr< ::rlmi::Resource > r ( - ::xsd::cxx::tree::traits< ::rlmi::Resource, char >::create ( - e, f, 0)); - return r; - } + if (n.name () == "list" && + n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > r ( + ::xsd::cxx::tree::traits< ::LinphonePrivate::Xsd::Rlmi::List, char >::create ( + e, f, 0)); + return r; + } - throw ::xsd::cxx::tree::unexpected_element < char > ( - n.name (), - n.namespace_ (), - "resource", - "urn:ietf:params:xml:ns:rlmi"); - } + throw ::xsd::cxx::tree::unexpected_element < char > ( + n.name (), + n.namespace_ (), + "list", + "urn:ietf:params:xml:ns:rlmi"); + } - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (const ::std::string& u, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (const ::std::string& u, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + + ::xsd::cxx::tree::error_handler< char > h; + + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + u, h, p, f)); + + h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); + + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > ( + ::LinphonePrivate::Xsd::Rlmi::parseResource ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (const ::std::string& u, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + u, h, p, f)); + + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); + + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > ( + ::LinphonePrivate::Xsd::Rlmi::parseResource ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (const ::std::string& u, + ::xercesc::DOMErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + u, h, p, f)); + + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); + + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > ( + ::LinphonePrivate::Xsd::Rlmi::parseResource ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::std::istream& is, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + + ::xsd::cxx::xml::sax::std_input_source isrc (is); + return ::LinphonePrivate::Xsd::Rlmi::parseResource (isrc, f, p); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::std::istream& is, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + + ::xsd::cxx::xml::sax::std_input_source isrc (is); + return ::LinphonePrivate::Xsd::Rlmi::parseResource (isrc, h, f, p); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::std::istream& is, + ::xercesc::DOMErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::sax::std_input_source isrc (is); + return ::LinphonePrivate::Xsd::Rlmi::parseResource (isrc, h, f, p); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::std::istream& is, + const ::std::string& sid, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + + ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); + return ::LinphonePrivate::Xsd::Rlmi::parseResource (isrc, f, p); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::std::istream& is, + const ::std::string& sid, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + + ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); + return ::LinphonePrivate::Xsd::Rlmi::parseResource (isrc, h, f, p); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::std::istream& is, + const ::std::string& sid, + ::xercesc::DOMErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); + return ::LinphonePrivate::Xsd::Rlmi::parseResource (isrc, h, f, p); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::xercesc::InputSource& i, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::tree::error_handler< char > h; + + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + i, h, p, f)); + + h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); + + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > ( + ::LinphonePrivate::Xsd::Rlmi::parseResource ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::xercesc::InputSource& i, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + i, h, p, f)); + + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); + + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > ( + ::LinphonePrivate::Xsd::Rlmi::parseResource ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::xercesc::InputSource& i, + ::xercesc::DOMErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + i, h, p, f)); + + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); + + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > ( + ::LinphonePrivate::Xsd::Rlmi::parseResource ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (const ::xercesc::DOMDocument& doc, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + static_cast< ::xercesc::DOMDocument* > (doc.cloneNode (true))); + + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > ( + ::LinphonePrivate::Xsd::Rlmi::parseResource ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } + + const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (e)); + + if (n.name () == "resource" && + n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > r ( + ::xsd::cxx::tree::traits< ::LinphonePrivate::Xsd::Rlmi::Resource, char >::create ( + e, f, 0)); + return r; + } + + throw ::xsd::cxx::tree::unexpected_element < char > ( + n.name (), + n.namespace_ (), + "resource", + "urn:ietf:params:xml:ns:rlmi"); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties&) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > c ( + ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) && + !(f & ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom)) + ? static_cast< ::xercesc::DOMDocument* > (d->cloneNode (true)) + : 0); + + ::xercesc::DOMDocument& doc (c.get () ? *c : *d); + const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); + + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (e)); + + if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) + doc.setUserData (::LinphonePrivate::Xsd::XmlSchema::dom::treeNodeKey, + (c.get () ? &c : &d), + 0); + + if (n.name () == "resource" && + n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > r ( + ::xsd::cxx::tree::traits< ::LinphonePrivate::Xsd::Rlmi::Resource, char >::create ( + e, f, 0)); + return r; + } + + throw ::xsd::cxx::tree::unexpected_element < char > ( + n.name (), + n.namespace_ (), + "resource", + "urn:ietf:params:xml:ns:rlmi"); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (const ::std::string& u, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + + ::xsd::cxx::tree::error_handler< char > h; + + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + u, h, p, f)); + + h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); + + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > ( + ::LinphonePrivate::Xsd::Rlmi::parseInstance ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (const ::std::string& u, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + u, h, p, f)); + + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); + + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > ( + ::LinphonePrivate::Xsd::Rlmi::parseInstance ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (const ::std::string& u, + ::xercesc::DOMErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + u, h, p, f)); + + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); + + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > ( + ::LinphonePrivate::Xsd::Rlmi::parseInstance ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::std::istream& is, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + + ::xsd::cxx::xml::sax::std_input_source isrc (is); + return ::LinphonePrivate::Xsd::Rlmi::parseInstance (isrc, f, p); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::std::istream& is, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + + ::xsd::cxx::xml::sax::std_input_source isrc (is); + return ::LinphonePrivate::Xsd::Rlmi::parseInstance (isrc, h, f, p); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::std::istream& is, + ::xercesc::DOMErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::sax::std_input_source isrc (is); + return ::LinphonePrivate::Xsd::Rlmi::parseInstance (isrc, h, f, p); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::std::istream& is, + const ::std::string& sid, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + + ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); + return ::LinphonePrivate::Xsd::Rlmi::parseInstance (isrc, f, p); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::std::istream& is, + const ::std::string& sid, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + + ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); + return ::LinphonePrivate::Xsd::Rlmi::parseInstance (isrc, h, f, p); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::std::istream& is, + const ::std::string& sid, + ::xercesc::DOMErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); + return ::LinphonePrivate::Xsd::Rlmi::parseInstance (isrc, h, f, p); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::xercesc::InputSource& i, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::xsd::cxx::tree::error_handler< char > h; + + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + i, h, p, f)); + + h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); + + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > ( + ::LinphonePrivate::Xsd::Rlmi::parseInstance ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::xercesc::InputSource& i, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + i, h, p, f)); + + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); + + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > ( + ::LinphonePrivate::Xsd::Rlmi::parseInstance ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::xercesc::InputSource& i, + ::xercesc::DOMErrorHandler& h, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + i, h, p, f)); + + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); + + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > ( + ::LinphonePrivate::Xsd::Rlmi::parseInstance ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (const ::xercesc::DOMDocument& doc, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) + { + if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + static_cast< ::xercesc::DOMDocument* > (doc.cloneNode (true))); + + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > ( + ::LinphonePrivate::Xsd::Rlmi::parseInstance ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } + + const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (e)); + + if (n.name () == "instance" && + n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > r ( + ::xsd::cxx::tree::traits< ::LinphonePrivate::Xsd::Rlmi::Instance, char >::create ( + e, f, 0)); + return r; + } + + throw ::xsd::cxx::tree::unexpected_element < char > ( + n.name (), + n.namespace_ (), + "instance", + "urn:ietf:params:xml:ns:rlmi"); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, + ::LinphonePrivate::Xsd::XmlSchema::Flags f, + const ::LinphonePrivate::Xsd::XmlSchema::Properties&) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > c ( + ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) && + !(f & ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom)) + ? static_cast< ::xercesc::DOMDocument* > (d->cloneNode (true)) + : 0); + + ::xercesc::DOMDocument& doc (c.get () ? *c : *d); + const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); + + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (e)); + + if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) + doc.setUserData (::LinphonePrivate::Xsd::XmlSchema::dom::treeNodeKey, + (c.get () ? &c : &d), + 0); + + if (n.name () == "instance" && + n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > r ( + ::xsd::cxx::tree::traits< ::LinphonePrivate::Xsd::Rlmi::Instance, char >::create ( + e, f, 0)); + return r; + } + + throw ::xsd::cxx::tree::unexpected_element < char > ( + n.name (), + n.namespace_ (), + "instance", + "urn:ietf:params:xml:ns:rlmi"); + } + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (const ::std::string& u, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - ::xsd::cxx::tree::error_handler< char > h; + ::xsd::cxx::tree::error_handler< char > h; - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - u, h, p, f)); + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + u, h, p, f)); - h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); + h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); - return ::std::unique_ptr< ::rlmi::Instance > ( - ::rlmi::parseInstance ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > ( + ::LinphonePrivate::Xsd::Rlmi::parseName ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (const ::std::string& u, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (const ::std::string& u, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - u, h, p, f)); + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + u, h, p, f)); - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); - return ::std::unique_ptr< ::rlmi::Instance > ( - ::rlmi::parseInstance ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > ( + ::LinphonePrivate::Xsd::Rlmi::parseName ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (const ::std::string& u, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (const ::std::string& u, ::xercesc::DOMErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - u, h, p, f)); + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + u, h, p, f)); - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); - return ::std::unique_ptr< ::rlmi::Instance > ( - ::rlmi::parseInstance ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > ( + ::LinphonePrivate::Xsd::Rlmi::parseName ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::std::istream& is, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - ::xsd::cxx::xml::sax::std_input_source isrc (is); - return ::rlmi::parseInstance (isrc, f, p); - } + ::xsd::cxx::xml::sax::std_input_source isrc (is); + return ::LinphonePrivate::Xsd::Rlmi::parseName (isrc, f, p); + } - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::std::istream& is, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - ::xsd::cxx::xml::sax::std_input_source isrc (is); - return ::rlmi::parseInstance (isrc, h, f, p); - } + ::xsd::cxx::xml::sax::std_input_source isrc (is); + return ::LinphonePrivate::Xsd::Rlmi::parseName (isrc, h, f, p); + } - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::std::istream& is, ::xercesc::DOMErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::sax::std_input_source isrc (is); - return ::rlmi::parseInstance (isrc, h, f, p); - } + { + ::xsd::cxx::xml::sax::std_input_source isrc (is); + return ::LinphonePrivate::Xsd::Rlmi::parseName (isrc, h, f, p); + } - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::std::istream& is, const ::std::string& sid, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); - return ::rlmi::parseInstance (isrc, f, p); - } + ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); + return ::LinphonePrivate::Xsd::Rlmi::parseName (isrc, f, p); + } - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::std::istream& is, const ::std::string& sid, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); - return ::rlmi::parseInstance (isrc, h, f, p); - } + ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); + return ::LinphonePrivate::Xsd::Rlmi::parseName (isrc, h, f, p); + } - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::std::istream& is, const ::std::string& sid, ::xercesc::DOMErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); - return ::rlmi::parseInstance (isrc, h, f, p); - } + { + ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); + return ::LinphonePrivate::Xsd::Rlmi::parseName (isrc, h, f, p); + } - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::xercesc::InputSource& i, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::xercesc::InputSource& i, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::tree::error_handler< char > h; + { + ::xsd::cxx::tree::error_handler< char > h; - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - i, h, p, f)); + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + i, h, p, f)); - h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); + h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); - return ::std::unique_ptr< ::rlmi::Instance > ( - ::rlmi::parseInstance ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > ( + ::LinphonePrivate::Xsd::Rlmi::parseName ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::xercesc::InputSource& i, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::xercesc::InputSource& i, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - i, h, p, f)); + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + i, h, p, f)); - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); - return ::std::unique_ptr< ::rlmi::Instance > ( - ::rlmi::parseInstance ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > ( + ::LinphonePrivate::Xsd::Rlmi::parseName ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::xercesc::InputSource& i, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::xercesc::InputSource& i, ::xercesc::DOMErrorHandler& h, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - i, h, p, f)); + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::parse< char > ( + i, h, p, f)); - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); + if (!d.get ()) + throw ::xsd::cxx::tree::parsing< char > (); - return ::std::unique_ptr< ::rlmi::Instance > ( - ::rlmi::parseInstance ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > ( + ::LinphonePrivate::Xsd::Rlmi::parseName ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (const ::xercesc::DOMDocument& doc, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (const ::xercesc::DOMDocument& doc, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - static_cast< ::xercesc::DOMDocument* > (doc.cloneNode (true))); + { + if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + static_cast< ::xercesc::DOMDocument* > (doc.cloneNode (true))); - return ::std::unique_ptr< ::rlmi::Instance > ( - ::rlmi::parseInstance ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } + return ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > ( + ::LinphonePrivate::Xsd::Rlmi::parseName ( + std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); + } - const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (e)); + const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (e)); - if (n.name () == "instance" && - n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - ::std::unique_ptr< ::rlmi::Instance > r ( - ::xsd::cxx::tree::traits< ::rlmi::Instance, char >::create ( - e, f, 0)); - return r; - } + if (n.name () == "name" && + n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > r ( + ::xsd::cxx::tree::traits< ::LinphonePrivate::Xsd::Rlmi::Name, char >::create ( + e, f, 0)); + return r; + } - throw ::xsd::cxx::tree::unexpected_element < char > ( - n.name (), - n.namespace_ (), - "instance", - "urn:ietf:params:xml:ns:rlmi"); - } + throw ::xsd::cxx::tree::unexpected_element < char > ( + n.name (), + n.namespace_ (), + "name", + "urn:ietf:params:xml:ns:rlmi"); + } - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, ::LinphonePrivate::Xsd::XmlSchema::Flags f, const ::LinphonePrivate::Xsd::XmlSchema::Properties&) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > c ( - ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) && - !(f & ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom)) - ? static_cast< ::xercesc::DOMDocument* > (d->cloneNode (true)) - : 0); + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > c ( + ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) && + !(f & ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom)) + ? static_cast< ::xercesc::DOMDocument* > (d->cloneNode (true)) + : 0); - ::xercesc::DOMDocument& doc (c.get () ? *c : *d); - const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); + ::xercesc::DOMDocument& doc (c.get () ? *c : *d); + const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (e)); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (e)); - if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) - doc.setUserData (::LinphonePrivate::Xsd::XmlSchema::dom::treeNodeKey, - (c.get () ? &c : &d), - 0); + if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) + doc.setUserData (::LinphonePrivate::Xsd::XmlSchema::dom::treeNodeKey, + (c.get () ? &c : &d), + 0); - if (n.name () == "instance" && - n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - ::std::unique_ptr< ::rlmi::Instance > r ( - ::xsd::cxx::tree::traits< ::rlmi::Instance, char >::create ( - e, f, 0)); - return r; + if (n.name () == "name" && + n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > r ( + ::xsd::cxx::tree::traits< ::LinphonePrivate::Xsd::Rlmi::Name, char >::create ( + e, f, 0)); + return r; + } + + throw ::xsd::cxx::tree::unexpected_element < char > ( + n.name (), + n.namespace_ (), + "name", + "urn:ietf:params:xml:ns:rlmi"); + } } - - throw ::xsd::cxx::tree::unexpected_element < char > ( - n.name (), - n.namespace_ (), - "instance", - "urn:ietf:params:xml:ns:rlmi"); - } - - ::std::unique_ptr< ::rlmi::Name > - parseName (const ::std::string& u, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - - ::xsd::cxx::tree::error_handler< char > h; - - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - u, h, p, f)); - - h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); - - return ::std::unique_ptr< ::rlmi::Name > ( - ::rlmi::parseName ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } - - ::std::unique_ptr< ::rlmi::Name > - parseName (const ::std::string& u, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - u, h, p, f)); - - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); - - return ::std::unique_ptr< ::rlmi::Name > ( - ::rlmi::parseName ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } - - ::std::unique_ptr< ::rlmi::Name > - parseName (const ::std::string& u, - ::xercesc::DOMErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - u, h, p, f)); - - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); - - return ::std::unique_ptr< ::rlmi::Name > ( - ::rlmi::parseName ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } - - ::std::unique_ptr< ::rlmi::Name > - parseName (::std::istream& is, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - - ::xsd::cxx::xml::sax::std_input_source isrc (is); - return ::rlmi::parseName (isrc, f, p); - } - - ::std::unique_ptr< ::rlmi::Name > - parseName (::std::istream& is, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - - ::xsd::cxx::xml::sax::std_input_source isrc (is); - return ::rlmi::parseName (isrc, h, f, p); - } - - ::std::unique_ptr< ::rlmi::Name > - parseName (::std::istream& is, - ::xercesc::DOMErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::sax::std_input_source isrc (is); - return ::rlmi::parseName (isrc, h, f, p); - } - - ::std::unique_ptr< ::rlmi::Name > - parseName (::std::istream& is, - const ::std::string& sid, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - - ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); - return ::rlmi::parseName (isrc, f, p); - } - - ::std::unique_ptr< ::rlmi::Name > - parseName (::std::istream& is, - const ::std::string& sid, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0, - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) == 0); - - ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); - return ::rlmi::parseName (isrc, h, f, p); - } - - ::std::unique_ptr< ::rlmi::Name > - parseName (::std::istream& is, - const ::std::string& sid, - ::xercesc::DOMErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::xml::sax::std_input_source isrc (is, sid); - return ::rlmi::parseName (isrc, h, f, p); - } - - ::std::unique_ptr< ::rlmi::Name > - parseName (::xercesc::InputSource& i, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::xsd::cxx::tree::error_handler< char > h; - - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - i, h, p, f)); - - h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > (); - - return ::std::unique_ptr< ::rlmi::Name > ( - ::rlmi::parseName ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } - - ::std::unique_ptr< ::rlmi::Name > - parseName (::xercesc::InputSource& i, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - i, h, p, f)); - - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); - - return ::std::unique_ptr< ::rlmi::Name > ( - ::rlmi::parseName ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } - - ::std::unique_ptr< ::rlmi::Name > - parseName (::xercesc::InputSource& i, - ::xercesc::DOMErrorHandler& h, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::parse< char > ( - i, h, p, f)); - - if (!d.get ()) - throw ::xsd::cxx::tree::parsing< char > (); - - return ::std::unique_ptr< ::rlmi::Name > ( - ::rlmi::parseName ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } - - ::std::unique_ptr< ::rlmi::Name > - parseName (const ::xercesc::DOMDocument& doc, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p) - { - if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - static_cast< ::xercesc::DOMDocument* > (doc.cloneNode (true))); - - return ::std::unique_ptr< ::rlmi::Name > ( - ::rlmi::parseName ( - std::move (d), f | ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom, p)); - } - - const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (e)); - - if (n.name () == "name" && - n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - ::std::unique_ptr< ::rlmi::Name > r ( - ::xsd::cxx::tree::traits< ::rlmi::Name, char >::create ( - e, f, 0)); - return r; - } - - throw ::xsd::cxx::tree::unexpected_element < char > ( - n.name (), - n.namespace_ (), - "name", - "urn:ietf:params:xml:ns:rlmi"); - } - - ::std::unique_ptr< ::rlmi::Name > - parseName (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, - ::LinphonePrivate::Xsd::XmlSchema::Flags f, - const ::LinphonePrivate::Xsd::XmlSchema::Properties&) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > c ( - ((f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) && - !(f & ::LinphonePrivate::Xsd::XmlSchema::Flags::own_dom)) - ? static_cast< ::xercesc::DOMDocument* > (d->cloneNode (true)) - : 0); - - ::xercesc::DOMDocument& doc (c.get () ? *c : *d); - const ::xercesc::DOMElement& e (*doc.getDocumentElement ()); - - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (e)); - - if (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::keep_dom) - doc.setUserData (::LinphonePrivate::Xsd::XmlSchema::dom::treeNodeKey, - (c.get () ? &c : &d), - 0); - - if (n.name () == "name" && - n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - ::std::unique_ptr< ::rlmi::Name > r ( - ::xsd::cxx::tree::traits< ::rlmi::Name, char >::create ( - e, f, 0)); - return r; - } - - throw ::xsd::cxx::tree::unexpected_element < char > ( - n.name (), - n.namespace_ (), - "name", - "urn:ietf:params:xml:ns:rlmi"); } } @@ -2406,879 +2430,885 @@ namespace rlmi #include #include -namespace rlmi +namespace LinphonePrivate { - void - serializeList (::std::ostream& o, - const ::rlmi::List& s, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, - const ::std::string& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) + namespace Xsd { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); - - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeList (s, m, f)); - - ::xsd::cxx::tree::error_handler< char > h; - - ::xsd::cxx::xml::dom::ostream_format_target t (o); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + namespace Rlmi { - h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); - } - } - - void - serializeList (::std::ostream& o, - const ::rlmi::List& s, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, - const ::std::string& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); - - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeList (s, m, f)); - ::xsd::cxx::xml::dom::ostream_format_target t (o); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } - - void - serializeList (::std::ostream& o, - const ::rlmi::List& s, - ::xercesc::DOMErrorHandler& h, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, - const ::std::string& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeList (s, m, f)); - ::xsd::cxx::xml::dom::ostream_format_target t (o); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } - - void - serializeList (::xercesc::XMLFormatTarget& t, - const ::rlmi::List& s, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, - const ::std::string& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeList (s, m, f)); - - ::xsd::cxx::tree::error_handler< char > h; - - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); - } - } - - void - serializeList (::xercesc::XMLFormatTarget& t, - const ::rlmi::List& s, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, - const ::std::string& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeList (s, m, f)); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } - - void - serializeList (::xercesc::XMLFormatTarget& t, - const ::rlmi::List& s, - ::xercesc::DOMErrorHandler& h, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, - const ::std::string& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeList (s, m, f)); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } - - void - serializeList (::xercesc::DOMDocument& d, - const ::rlmi::List& s, - ::LinphonePrivate::Xsd::XmlSchema::Flags) - { - ::xercesc::DOMElement& e (*d.getDocumentElement ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (e)); - - if (n.name () == "list" && - n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - e << s; - } - else - { - throw ::xsd::cxx::tree::unexpected_element < char > ( - n.name (), - n.namespace_ (), - "list", - "urn:ietf:params:xml:ns:rlmi"); - } - } - - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > - serializeList (const ::rlmi::List& s, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::serialize< char > ( - "list", - "urn:ietf:params:xml:ns:rlmi", - m, f)); - - ::rlmi::serializeList (*d, s, f); - return d; - } - - void - serializeResource (::std::ostream& o, - const ::rlmi::Resource& s, + void + serializeList (::std::ostream& o, + const ::LinphonePrivate::Xsd::Rlmi::List& s, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, const ::std::string& e, ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeResource (s, m, f)); + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeList (s, m, f)); - ::xsd::cxx::tree::error_handler< char > h; + ::xsd::cxx::tree::error_handler< char > h; - ::xsd::cxx::xml::dom::ostream_format_target t (o); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); - } - } + ::xsd::cxx::xml::dom::ostream_format_target t (o); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); + } + } - void - serializeResource (::std::ostream& o, - const ::rlmi::Resource& s, + void + serializeList (::std::ostream& o, + const ::LinphonePrivate::Xsd::Rlmi::List& s, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, const ::std::string& e, ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeResource (s, m, f)); - ::xsd::cxx::xml::dom::ostream_format_target t (o); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeList (s, m, f)); + ::xsd::cxx::xml::dom::ostream_format_target t (o); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } - void - serializeResource (::std::ostream& o, - const ::rlmi::Resource& s, + void + serializeList (::std::ostream& o, + const ::LinphonePrivate::Xsd::Rlmi::List& s, ::xercesc::DOMErrorHandler& h, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, const ::std::string& e, ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeResource (s, m, f)); - ::xsd::cxx::xml::dom::ostream_format_target t (o); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeList (s, m, f)); + ::xsd::cxx::xml::dom::ostream_format_target t (o); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } - void - serializeResource (::xercesc::XMLFormatTarget& t, - const ::rlmi::Resource& s, + void + serializeList (::xercesc::XMLFormatTarget& t, + const ::LinphonePrivate::Xsd::Rlmi::List& s, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, const ::std::string& e, ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeResource (s, m, f)); + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeList (s, m, f)); - ::xsd::cxx::tree::error_handler< char > h; + ::xsd::cxx::tree::error_handler< char > h; - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); - } - } + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); + } + } - void - serializeResource (::xercesc::XMLFormatTarget& t, - const ::rlmi::Resource& s, + void + serializeList (::xercesc::XMLFormatTarget& t, + const ::LinphonePrivate::Xsd::Rlmi::List& s, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, const ::std::string& e, ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeResource (s, m, f)); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeList (s, m, f)); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } - void - serializeResource (::xercesc::XMLFormatTarget& t, - const ::rlmi::Resource& s, + void + serializeList (::xercesc::XMLFormatTarget& t, + const ::LinphonePrivate::Xsd::Rlmi::List& s, ::xercesc::DOMErrorHandler& h, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, const ::std::string& e, ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeResource (s, m, f)); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeList (s, m, f)); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } - void - serializeResource (::xercesc::DOMDocument& d, - const ::rlmi::Resource& s, + void + serializeList (::xercesc::DOMDocument& d, + const ::LinphonePrivate::Xsd::Rlmi::List& s, ::LinphonePrivate::Xsd::XmlSchema::Flags) - { - ::xercesc::DOMElement& e (*d.getDocumentElement ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (e)); + { + ::xercesc::DOMElement& e (*d.getDocumentElement ()); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (e)); - if (n.name () == "resource" && - n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - e << s; - } - else - { - throw ::xsd::cxx::tree::unexpected_element < char > ( - n.name (), - n.namespace_ (), - "resource", - "urn:ietf:params:xml:ns:rlmi"); - } - } + if (n.name () == "list" && + n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + e << s; + } + else + { + throw ::xsd::cxx::tree::unexpected_element < char > ( + n.name (), + n.namespace_ (), + "list", + "urn:ietf:params:xml:ns:rlmi"); + } + } - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > - serializeResource (const ::rlmi::Resource& s, + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > + serializeList (const ::LinphonePrivate::Xsd::Rlmi::List& s, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::serialize< char > ( - "resource", - "urn:ietf:params:xml:ns:rlmi", - m, f)); + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::serialize< char > ( + "list", + "urn:ietf:params:xml:ns:rlmi", + m, f)); - ::rlmi::serializeResource (*d, s, f); - return d; - } + ::LinphonePrivate::Xsd::Rlmi::serializeList (*d, s, f); + return d; + } - void - serializeInstance (::std::ostream& o, - const ::rlmi::Instance& s, + void + serializeResource (::std::ostream& o, + const ::LinphonePrivate::Xsd::Rlmi::Resource& s, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, + const ::std::string& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); + + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeResource (s, m, f)); + + ::xsd::cxx::tree::error_handler< char > h; + + ::xsd::cxx::xml::dom::ostream_format_target t (o); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); + } + } + + void + serializeResource (::std::ostream& o, + const ::LinphonePrivate::Xsd::Rlmi::Resource& s, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, + const ::std::string& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); + + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeResource (s, m, f)); + ::xsd::cxx::xml::dom::ostream_format_target t (o); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } + + void + serializeResource (::std::ostream& o, + const ::LinphonePrivate::Xsd::Rlmi::Resource& s, + ::xercesc::DOMErrorHandler& h, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, + const ::std::string& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeResource (s, m, f)); + ::xsd::cxx::xml::dom::ostream_format_target t (o); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } + + void + serializeResource (::xercesc::XMLFormatTarget& t, + const ::LinphonePrivate::Xsd::Rlmi::Resource& s, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, + const ::std::string& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeResource (s, m, f)); + + ::xsd::cxx::tree::error_handler< char > h; + + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); + } + } + + void + serializeResource (::xercesc::XMLFormatTarget& t, + const ::LinphonePrivate::Xsd::Rlmi::Resource& s, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, + const ::std::string& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeResource (s, m, f)); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } + + void + serializeResource (::xercesc::XMLFormatTarget& t, + const ::LinphonePrivate::Xsd::Rlmi::Resource& s, + ::xercesc::DOMErrorHandler& h, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, + const ::std::string& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeResource (s, m, f)); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } + + void + serializeResource (::xercesc::DOMDocument& d, + const ::LinphonePrivate::Xsd::Rlmi::Resource& s, + ::LinphonePrivate::Xsd::XmlSchema::Flags) + { + ::xercesc::DOMElement& e (*d.getDocumentElement ()); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (e)); + + if (n.name () == "resource" && + n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + e << s; + } + else + { + throw ::xsd::cxx::tree::unexpected_element < char > ( + n.name (), + n.namespace_ (), + "resource", + "urn:ietf:params:xml:ns:rlmi"); + } + } + + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > + serializeResource (const ::LinphonePrivate::Xsd::Rlmi::Resource& s, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::serialize< char > ( + "resource", + "urn:ietf:params:xml:ns:rlmi", + m, f)); + + ::LinphonePrivate::Xsd::Rlmi::serializeResource (*d, s, f); + return d; + } + + void + serializeInstance (::std::ostream& o, + const ::LinphonePrivate::Xsd::Rlmi::Instance& s, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, + const ::std::string& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); + + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeInstance (s, m, f)); + + ::xsd::cxx::tree::error_handler< char > h; + + ::xsd::cxx::xml::dom::ostream_format_target t (o); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); + } + } + + void + serializeInstance (::std::ostream& o, + const ::LinphonePrivate::Xsd::Rlmi::Instance& s, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, + const ::std::string& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); + + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeInstance (s, m, f)); + ::xsd::cxx::xml::dom::ostream_format_target t (o); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } + + void + serializeInstance (::std::ostream& o, + const ::LinphonePrivate::Xsd::Rlmi::Instance& s, + ::xercesc::DOMErrorHandler& h, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, + const ::std::string& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeInstance (s, m, f)); + ::xsd::cxx::xml::dom::ostream_format_target t (o); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } + + void + serializeInstance (::xercesc::XMLFormatTarget& t, + const ::LinphonePrivate::Xsd::Rlmi::Instance& s, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, + const ::std::string& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeInstance (s, m, f)); + + ::xsd::cxx::tree::error_handler< char > h; + + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); + } + } + + void + serializeInstance (::xercesc::XMLFormatTarget& t, + const ::LinphonePrivate::Xsd::Rlmi::Instance& s, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, + const ::std::string& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeInstance (s, m, f)); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } + + void + serializeInstance (::xercesc::XMLFormatTarget& t, + const ::LinphonePrivate::Xsd::Rlmi::Instance& s, + ::xercesc::DOMErrorHandler& h, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, + const ::std::string& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeInstance (s, m, f)); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } + + void + serializeInstance (::xercesc::DOMDocument& d, + const ::LinphonePrivate::Xsd::Rlmi::Instance& s, + ::LinphonePrivate::Xsd::XmlSchema::Flags) + { + ::xercesc::DOMElement& e (*d.getDocumentElement ()); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (e)); + + if (n.name () == "instance" && + n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + e << s; + } + else + { + throw ::xsd::cxx::tree::unexpected_element < char > ( + n.name (), + n.namespace_ (), + "instance", + "urn:ietf:params:xml:ns:rlmi"); + } + } + + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > + serializeInstance (const ::LinphonePrivate::Xsd::Rlmi::Instance& s, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, + ::LinphonePrivate::Xsd::XmlSchema::Flags f) + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::serialize< char > ( + "instance", + "urn:ietf:params:xml:ns:rlmi", + m, f)); + + ::LinphonePrivate::Xsd::Rlmi::serializeInstance (*d, s, f); + return d; + } + + void + serializeName (::std::ostream& o, + const ::LinphonePrivate::Xsd::Rlmi::Name& s, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, const ::std::string& e, ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeInstance (s, m, f)); + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeName (s, m, f)); - ::xsd::cxx::tree::error_handler< char > h; + ::xsd::cxx::tree::error_handler< char > h; - ::xsd::cxx::xml::dom::ostream_format_target t (o); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); - } - } + ::xsd::cxx::xml::dom::ostream_format_target t (o); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); + } + } - void - serializeInstance (::std::ostream& o, - const ::rlmi::Instance& s, + void + serializeName (::std::ostream& o, + const ::LinphonePrivate::Xsd::Rlmi::Name& s, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, const ::std::string& e, ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); + { + ::xsd::cxx::xml::auto_initializer i ( + (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeInstance (s, m, f)); - ::xsd::cxx::xml::dom::ostream_format_target t (o); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeName (s, m, f)); + ::xsd::cxx::xml::dom::ostream_format_target t (o); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } - void - serializeInstance (::std::ostream& o, - const ::rlmi::Instance& s, + void + serializeName (::std::ostream& o, + const ::LinphonePrivate::Xsd::Rlmi::Name& s, ::xercesc::DOMErrorHandler& h, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, const ::std::string& e, ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeInstance (s, m, f)); - ::xsd::cxx::xml::dom::ostream_format_target t (o); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeName (s, m, f)); + ::xsd::cxx::xml::dom::ostream_format_target t (o); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } - void - serializeInstance (::xercesc::XMLFormatTarget& t, - const ::rlmi::Instance& s, + void + serializeName (::xercesc::XMLFormatTarget& t, + const ::LinphonePrivate::Xsd::Rlmi::Name& s, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, const ::std::string& e, ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeInstance (s, m, f)); + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeName (s, m, f)); - ::xsd::cxx::tree::error_handler< char > h; + ::xsd::cxx::tree::error_handler< char > h; - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); - } - } + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); + } + } - void - serializeInstance (::xercesc::XMLFormatTarget& t, - const ::rlmi::Instance& s, + void + serializeName (::xercesc::XMLFormatTarget& t, + const ::LinphonePrivate::Xsd::Rlmi::Name& s, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, const ::std::string& e, ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeInstance (s, m, f)); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeName (s, m, f)); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } - void - serializeInstance (::xercesc::XMLFormatTarget& t, - const ::rlmi::Instance& s, + void + serializeName (::xercesc::XMLFormatTarget& t, + const ::LinphonePrivate::Xsd::Rlmi::Name& s, ::xercesc::DOMErrorHandler& h, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, const ::std::string& e, ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeInstance (s, m, f)); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::LinphonePrivate::Xsd::Rlmi::serializeName (s, m, f)); + if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) + { + throw ::xsd::cxx::tree::serialization< char > (); + } + } - void - serializeInstance (::xercesc::DOMDocument& d, - const ::rlmi::Instance& s, + void + serializeName (::xercesc::DOMDocument& d, + const ::LinphonePrivate::Xsd::Rlmi::Name& s, ::LinphonePrivate::Xsd::XmlSchema::Flags) - { - ::xercesc::DOMElement& e (*d.getDocumentElement ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (e)); + { + ::xercesc::DOMElement& e (*d.getDocumentElement ()); + const ::xsd::cxx::xml::qualified_name< char > n ( + ::xsd::cxx::xml::dom::name< char > (e)); - if (n.name () == "instance" && - n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - e << s; - } - else - { - throw ::xsd::cxx::tree::unexpected_element < char > ( - n.name (), - n.namespace_ (), - "instance", - "urn:ietf:params:xml:ns:rlmi"); - } - } + if (n.name () == "name" && + n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") + { + e << s; + } + else + { + throw ::xsd::cxx::tree::unexpected_element < char > ( + n.name (), + n.namespace_ (), + "name", + "urn:ietf:params:xml:ns:rlmi"); + } + } - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > - serializeInstance (const ::rlmi::Instance& s, + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > + serializeName (const ::LinphonePrivate::Xsd::Rlmi::Name& s, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::serialize< char > ( - "instance", - "urn:ietf:params:xml:ns:rlmi", - m, f)); + { + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( + ::xsd::cxx::xml::dom::serialize< char > ( + "name", + "urn:ietf:params:xml:ns:rlmi", + m, f)); - ::rlmi::serializeInstance (*d, s, f); - return d; - } + ::LinphonePrivate::Xsd::Rlmi::serializeName (*d, s, f); + return d; + } - void - serializeName (::std::ostream& o, - const ::rlmi::Name& s, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, - const ::std::string& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); + void + operator<< (::xercesc::DOMElement& e, const List& i) + { + e << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::Type& > (i); - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeName (s, m, f)); + // any_attribute + // + for (List::AnyAttributeConstIterator + b (i.getAnyAttribute ().begin ()), n (i.getAnyAttribute ().end ()); + b != n; ++b) + { + ::xercesc::DOMAttr* a ( + static_cast< ::xercesc::DOMAttr* > ( + e.getOwnerDocument ()->importNode ( + const_cast< ::xercesc::DOMAttr* > (&(*b)), true))); - ::xsd::cxx::tree::error_handler< char > h; + if (a->getLocalName () == 0) + e.setAttributeNode (a); + else + e.setAttributeNodeNS (a); + } - ::xsd::cxx::xml::dom::ostream_format_target t (o); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); + // name + // + for (List::NameConstIterator + b (i.getName ().begin ()), n (i.getName ().end ()); + b != n; ++b) + { + ::xercesc::DOMElement& s ( + ::xsd::cxx::xml::dom::create_element ( + "name", + "urn:ietf:params:xml:ns:rlmi", + e)); + + s << *b; + } + + // resource + // + for (List::ResourceConstIterator + b (i.getResource ().begin ()), n (i.getResource ().end ()); + b != n; ++b) + { + ::xercesc::DOMElement& s ( + ::xsd::cxx::xml::dom::create_element ( + "resource", + "urn:ietf:params:xml:ns:rlmi", + e)); + + s << *b; + } + + // uri + // + { + ::xercesc::DOMAttr& a ( + ::xsd::cxx::xml::dom::create_attribute ( + "uri", + e)); + + a << i.getUri (); + } + + // version + // + { + ::xercesc::DOMAttr& a ( + ::xsd::cxx::xml::dom::create_attribute ( + "version", + e)); + + a << i.getVersion (); + } + + // fullState + // + { + ::xercesc::DOMAttr& a ( + ::xsd::cxx::xml::dom::create_attribute ( + "fullState", + e)); + + a << i.getFullState (); + } + + // cid + // + if (i.getCid ()) + { + ::xercesc::DOMAttr& a ( + ::xsd::cxx::xml::dom::create_attribute ( + "cid", + e)); + + a << *i.getCid (); + } + } + + void + operator<< (::xercesc::DOMElement& e, const Resource& i) + { + e << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::Type& > (i); + + // any_attribute + // + for (Resource::AnyAttributeConstIterator + b (i.getAnyAttribute ().begin ()), n (i.getAnyAttribute ().end ()); + b != n; ++b) + { + ::xercesc::DOMAttr* a ( + static_cast< ::xercesc::DOMAttr* > ( + e.getOwnerDocument ()->importNode ( + const_cast< ::xercesc::DOMAttr* > (&(*b)), true))); + + if (a->getLocalName () == 0) + e.setAttributeNode (a); + else + e.setAttributeNodeNS (a); + } + + // name + // + for (Resource::NameConstIterator + b (i.getName ().begin ()), n (i.getName ().end ()); + b != n; ++b) + { + ::xercesc::DOMElement& s ( + ::xsd::cxx::xml::dom::create_element ( + "name", + "urn:ietf:params:xml:ns:rlmi", + e)); + + s << *b; + } + + // instance + // + for (Resource::InstanceConstIterator + b (i.getInstance ().begin ()), n (i.getInstance ().end ()); + b != n; ++b) + { + ::xercesc::DOMElement& s ( + ::xsd::cxx::xml::dom::create_element ( + "instance", + "urn:ietf:params:xml:ns:rlmi", + e)); + + s << *b; + } + + // uri + // + { + ::xercesc::DOMAttr& a ( + ::xsd::cxx::xml::dom::create_attribute ( + "uri", + e)); + + a << i.getUri (); + } + } + + void + operator<< (::xercesc::DOMElement& e, const Instance& i) + { + e << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::Type& > (i); + + // any_attribute + // + for (Instance::AnyAttributeConstIterator + b (i.getAnyAttribute ().begin ()), n (i.getAnyAttribute ().end ()); + b != n; ++b) + { + ::xercesc::DOMAttr* a ( + static_cast< ::xercesc::DOMAttr* > ( + e.getOwnerDocument ()->importNode ( + const_cast< ::xercesc::DOMAttr* > (&(*b)), true))); + + if (a->getLocalName () == 0) + e.setAttributeNode (a); + else + e.setAttributeNodeNS (a); + } + + // any + // + for (Instance::AnyConstIterator + b (i.getAny ().begin ()), n (i.getAny ().end ()); + b != n; ++b) + { + e.appendChild ( + e.getOwnerDocument ()->importNode ( + const_cast< ::xercesc::DOMElement* > (&(*b)), true)); + } + + // id + // + { + ::xercesc::DOMAttr& a ( + ::xsd::cxx::xml::dom::create_attribute ( + "id", + e)); + + a << i.getId (); + } + + // state + // + { + ::xercesc::DOMAttr& a ( + ::xsd::cxx::xml::dom::create_attribute ( + "state", + e)); + + a << i.getState (); + } + + // reason + // + if (i.getReason ()) + { + ::xercesc::DOMAttr& a ( + ::xsd::cxx::xml::dom::create_attribute ( + "reason", + e)); + + a << *i.getReason (); + } + + // cid + // + if (i.getCid ()) + { + ::xercesc::DOMAttr& a ( + ::xsd::cxx::xml::dom::create_attribute ( + "cid", + e)); + + a << *i.getCid (); + } + } + + void + operator<< (::xercesc::DOMElement& e, const Name& i) + { + e << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::String& > (i); + + // lang + // + if (i.getLang ()) + { + ::xercesc::DOMAttr& a ( + ::xsd::cxx::xml::dom::create_attribute ( + "lang", + "http://www.w3.org/XML/1998/namespace", + e)); + + a << *i.getLang (); + } + } + + void + operator<< (::xercesc::DOMElement& e, const State& i) + { + e << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::String& > (i); + } + + void + operator<< (::xercesc::DOMAttr& a, const State& i) + { + a << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::String& > (i); + } + + void + operator<< (::LinphonePrivate::Xsd::XmlSchema::ListStream& l, + const State& i) + { + l << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::String& > (i); + } } } - - void - serializeName (::std::ostream& o, - const ::rlmi::Name& s, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, - const ::std::string& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::xsd::cxx::xml::auto_initializer i ( - (f & ::LinphonePrivate::Xsd::XmlSchema::Flags::dont_initialize) == 0); - - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeName (s, m, f)); - ::xsd::cxx::xml::dom::ostream_format_target t (o); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } - - void - serializeName (::std::ostream& o, - const ::rlmi::Name& s, - ::xercesc::DOMErrorHandler& h, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, - const ::std::string& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeName (s, m, f)); - ::xsd::cxx::xml::dom::ostream_format_target t (o); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } - - void - serializeName (::xercesc::XMLFormatTarget& t, - const ::rlmi::Name& s, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, - const ::std::string& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeName (s, m, f)); - - ::xsd::cxx::tree::error_handler< char > h; - - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > (); - } - } - - void - serializeName (::xercesc::XMLFormatTarget& t, - const ::rlmi::Name& s, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& h, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, - const ::std::string& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeName (s, m, f)); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } - - void - serializeName (::xercesc::XMLFormatTarget& t, - const ::rlmi::Name& s, - ::xercesc::DOMErrorHandler& h, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, - const ::std::string& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::rlmi::serializeName (s, m, f)); - if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f)) - { - throw ::xsd::cxx::tree::serialization< char > (); - } - } - - void - serializeName (::xercesc::DOMDocument& d, - const ::rlmi::Name& s, - ::LinphonePrivate::Xsd::XmlSchema::Flags) - { - ::xercesc::DOMElement& e (*d.getDocumentElement ()); - const ::xsd::cxx::xml::qualified_name< char > n ( - ::xsd::cxx::xml::dom::name< char > (e)); - - if (n.name () == "name" && - n.namespace_ () == "urn:ietf:params:xml:ns:rlmi") - { - e << s; - } - else - { - throw ::xsd::cxx::tree::unexpected_element < char > ( - n.name (), - n.namespace_ (), - "name", - "urn:ietf:params:xml:ns:rlmi"); - } - } - - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > - serializeName (const ::rlmi::Name& s, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m, - ::LinphonePrivate::Xsd::XmlSchema::Flags f) - { - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d ( - ::xsd::cxx::xml::dom::serialize< char > ( - "name", - "urn:ietf:params:xml:ns:rlmi", - m, f)); - - ::rlmi::serializeName (*d, s, f); - return d; - } - - void - operator<< (::xercesc::DOMElement& e, const List& i) - { - e << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::Type& > (i); - - // any_attribute - // - for (List::AnyAttributeConstIterator - b (i.getAnyAttribute ().begin ()), n (i.getAnyAttribute ().end ()); - b != n; ++b) - { - ::xercesc::DOMAttr* a ( - static_cast< ::xercesc::DOMAttr* > ( - e.getOwnerDocument ()->importNode ( - const_cast< ::xercesc::DOMAttr* > (&(*b)), true))); - - if (a->getLocalName () == 0) - e.setAttributeNode (a); - else - e.setAttributeNodeNS (a); - } - - // name - // - for (List::NameConstIterator - b (i.getName ().begin ()), n (i.getName ().end ()); - b != n; ++b) - { - ::xercesc::DOMElement& s ( - ::xsd::cxx::xml::dom::create_element ( - "name", - "urn:ietf:params:xml:ns:rlmi", - e)); - - s << *b; - } - - // resource - // - for (List::ResourceConstIterator - b (i.getResource ().begin ()), n (i.getResource ().end ()); - b != n; ++b) - { - ::xercesc::DOMElement& s ( - ::xsd::cxx::xml::dom::create_element ( - "resource", - "urn:ietf:params:xml:ns:rlmi", - e)); - - s << *b; - } - - // uri - // - { - ::xercesc::DOMAttr& a ( - ::xsd::cxx::xml::dom::create_attribute ( - "uri", - e)); - - a << i.getUri (); - } - - // version - // - { - ::xercesc::DOMAttr& a ( - ::xsd::cxx::xml::dom::create_attribute ( - "version", - e)); - - a << i.getVersion (); - } - - // fullState - // - { - ::xercesc::DOMAttr& a ( - ::xsd::cxx::xml::dom::create_attribute ( - "fullState", - e)); - - a << i.getFullState (); - } - - // cid - // - if (i.getCid ()) - { - ::xercesc::DOMAttr& a ( - ::xsd::cxx::xml::dom::create_attribute ( - "cid", - e)); - - a << *i.getCid (); - } - } - - void - operator<< (::xercesc::DOMElement& e, const Resource& i) - { - e << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::Type& > (i); - - // any_attribute - // - for (Resource::AnyAttributeConstIterator - b (i.getAnyAttribute ().begin ()), n (i.getAnyAttribute ().end ()); - b != n; ++b) - { - ::xercesc::DOMAttr* a ( - static_cast< ::xercesc::DOMAttr* > ( - e.getOwnerDocument ()->importNode ( - const_cast< ::xercesc::DOMAttr* > (&(*b)), true))); - - if (a->getLocalName () == 0) - e.setAttributeNode (a); - else - e.setAttributeNodeNS (a); - } - - // name - // - for (Resource::NameConstIterator - b (i.getName ().begin ()), n (i.getName ().end ()); - b != n; ++b) - { - ::xercesc::DOMElement& s ( - ::xsd::cxx::xml::dom::create_element ( - "name", - "urn:ietf:params:xml:ns:rlmi", - e)); - - s << *b; - } - - // instance - // - for (Resource::InstanceConstIterator - b (i.getInstance ().begin ()), n (i.getInstance ().end ()); - b != n; ++b) - { - ::xercesc::DOMElement& s ( - ::xsd::cxx::xml::dom::create_element ( - "instance", - "urn:ietf:params:xml:ns:rlmi", - e)); - - s << *b; - } - - // uri - // - { - ::xercesc::DOMAttr& a ( - ::xsd::cxx::xml::dom::create_attribute ( - "uri", - e)); - - a << i.getUri (); - } - } - - void - operator<< (::xercesc::DOMElement& e, const Instance& i) - { - e << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::Type& > (i); - - // any_attribute - // - for (Instance::AnyAttributeConstIterator - b (i.getAnyAttribute ().begin ()), n (i.getAnyAttribute ().end ()); - b != n; ++b) - { - ::xercesc::DOMAttr* a ( - static_cast< ::xercesc::DOMAttr* > ( - e.getOwnerDocument ()->importNode ( - const_cast< ::xercesc::DOMAttr* > (&(*b)), true))); - - if (a->getLocalName () == 0) - e.setAttributeNode (a); - else - e.setAttributeNodeNS (a); - } - - // any - // - for (Instance::AnyConstIterator - b (i.getAny ().begin ()), n (i.getAny ().end ()); - b != n; ++b) - { - e.appendChild ( - e.getOwnerDocument ()->importNode ( - const_cast< ::xercesc::DOMElement* > (&(*b)), true)); - } - - // id - // - { - ::xercesc::DOMAttr& a ( - ::xsd::cxx::xml::dom::create_attribute ( - "id", - e)); - - a << i.getId (); - } - - // state - // - { - ::xercesc::DOMAttr& a ( - ::xsd::cxx::xml::dom::create_attribute ( - "state", - e)); - - a << i.getState (); - } - - // reason - // - if (i.getReason ()) - { - ::xercesc::DOMAttr& a ( - ::xsd::cxx::xml::dom::create_attribute ( - "reason", - e)); - - a << *i.getReason (); - } - - // cid - // - if (i.getCid ()) - { - ::xercesc::DOMAttr& a ( - ::xsd::cxx::xml::dom::create_attribute ( - "cid", - e)); - - a << *i.getCid (); - } - } - - void - operator<< (::xercesc::DOMElement& e, const Name& i) - { - e << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::String& > (i); - - // lang - // - if (i.getLang ()) - { - ::xercesc::DOMAttr& a ( - ::xsd::cxx::xml::dom::create_attribute ( - "lang", - "http://www.w3.org/XML/1998/namespace", - e)); - - a << *i.getLang (); - } - } - - void - operator<< (::xercesc::DOMElement& e, const State& i) - { - e << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::String& > (i); - } - - void - operator<< (::xercesc::DOMAttr& a, const State& i) - { - a << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::String& > (i); - } - - void - operator<< (::LinphonePrivate::Xsd::XmlSchema::ListStream& l, - const State& i) - { - l << static_cast< const ::LinphonePrivate::Xsd::XmlSchema::String& > (i); - } } #include diff --git a/src/xml/rlmi.h b/src/xml/rlmi.h index 219a656bc..fcb1d221d 100644 --- a/src/xml/rlmi.h +++ b/src/xml/rlmi.h @@ -267,13 +267,19 @@ namespace LinphonePrivate // Forward declarations. // -namespace rlmi +namespace LinphonePrivate { - class List; - class Resource; - class Instance; - class Name; - class State; + namespace Xsd + { + namespace Rlmi + { + class List; + class Resource; + class Instance; + class Name; + class State; + } + } } @@ -295,604 +301,616 @@ namespace rlmi #include "xml.h" -namespace rlmi +namespace LinphonePrivate { - class List: public ::LinphonePrivate::Xsd::XmlSchema::Type + namespace Xsd { - public: - // name - // - typedef ::rlmi::Name NameType; - typedef ::xsd::cxx::tree::sequence< NameType > NameSequence; - typedef NameSequence::iterator NameIterator; - typedef NameSequence::const_iterator NameConstIterator; - typedef ::xsd::cxx::tree::traits< NameType, char > NameTraits; - - const NameSequence& - getName () const; - - NameSequence& - getName (); - - void - setName (const NameSequence& s); - - // resource - // - typedef ::rlmi::Resource ResourceType; - typedef ::xsd::cxx::tree::sequence< ResourceType > ResourceSequence; - typedef ResourceSequence::iterator ResourceIterator; - typedef ResourceSequence::const_iterator ResourceConstIterator; - typedef ::xsd::cxx::tree::traits< ResourceType, char > ResourceTraits; - - const ResourceSequence& - getResource () const; - - ResourceSequence& - getResource (); - - void - setResource (const ResourceSequence& s); - - // uri - // - typedef ::LinphonePrivate::Xsd::XmlSchema::Uri UriType; - typedef ::xsd::cxx::tree::traits< UriType, char > UriTraits; - - const UriType& - getUri () const; - - UriType& - getUri (); - - void - setUri (const UriType& x); - - void - setUri (::std::unique_ptr< UriType > p); - - ::std::unique_ptr< UriType > - setDetachUri (); - - // version - // - typedef ::LinphonePrivate::Xsd::XmlSchema::UnsignedInt VersionType; - typedef ::xsd::cxx::tree::traits< VersionType, char > VersionTraits; - - const VersionType& - getVersion () const; - - VersionType& - getVersion (); - - void - setVersion (const VersionType& x); - - // fullState - // - typedef ::LinphonePrivate::Xsd::XmlSchema::Boolean FullStateType; - typedef ::xsd::cxx::tree::traits< FullStateType, char > FullStateTraits; - - const FullStateType& - getFullState () const; - - FullStateType& - getFullState (); - - void - setFullState (const FullStateType& x); - - // cid - // - typedef ::LinphonePrivate::Xsd::XmlSchema::String CidType; - typedef ::xsd::cxx::tree::optional< CidType > CidOptional; - typedef ::xsd::cxx::tree::traits< CidType, char > CidTraits; - - const CidOptional& - getCid () const; - - CidOptional& - getCid (); - - void - setCid (const CidType& x); - - void - setCid (const CidOptional& x); - - void - setCid (::std::unique_ptr< CidType > p); - - // any_attribute - // - typedef ::xsd::cxx::tree::attribute_set< char > AnyAttributeSet; - typedef AnyAttributeSet::iterator AnyAttributeIterator; - typedef AnyAttributeSet::const_iterator AnyAttributeConstIterator; - - const AnyAttributeSet& - getAnyAttribute () const; - - AnyAttributeSet& - getAnyAttribute (); - - void - setAnyAttribute (const AnyAttributeSet& s); - - // DOMDocument for wildcard content. - // - const ::xercesc::DOMDocument& - getDomDocument () const; - - ::xercesc::DOMDocument& - getDomDocument (); - - // Constructors. - // - List (const UriType&, - const VersionType&, - const FullStateType&); - - List (const ::xercesc::DOMElement& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); - - List (const List& x, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); - - virtual List* - _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0) const; - - List& - operator= (const List& x); - - virtual - ~List (); - - // Implementation. - // - protected: - void - parse (::xsd::cxx::xml::dom::parser< char >&, - ::LinphonePrivate::Xsd::XmlSchema::Flags); - - protected: - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > dom_document_; - - NameSequence name_; - ResourceSequence resource_; - ::xsd::cxx::tree::one< UriType > uri_; - ::xsd::cxx::tree::one< VersionType > version_; - ::xsd::cxx::tree::one< FullStateType > fullState_; - CidOptional cid_; - AnyAttributeSet any_attribute_; - }; - - class Resource: public ::LinphonePrivate::Xsd::XmlSchema::Type - { - public: - // name - // - typedef ::rlmi::Name NameType; - typedef ::xsd::cxx::tree::sequence< NameType > NameSequence; - typedef NameSequence::iterator NameIterator; - typedef NameSequence::const_iterator NameConstIterator; - typedef ::xsd::cxx::tree::traits< NameType, char > NameTraits; - - const NameSequence& - getName () const; - - NameSequence& - getName (); - - void - setName (const NameSequence& s); - - // instance - // - typedef ::rlmi::Instance InstanceType; - typedef ::xsd::cxx::tree::sequence< InstanceType > InstanceSequence; - typedef InstanceSequence::iterator InstanceIterator; - typedef InstanceSequence::const_iterator InstanceConstIterator; - typedef ::xsd::cxx::tree::traits< InstanceType, char > InstanceTraits; - - const InstanceSequence& - getInstance () const; - - InstanceSequence& - getInstance (); - - void - setInstance (const InstanceSequence& s); - - // uri - // - typedef ::LinphonePrivate::Xsd::XmlSchema::Uri UriType; - typedef ::xsd::cxx::tree::traits< UriType, char > UriTraits; - - const UriType& - getUri () const; - - UriType& - getUri (); - - void - setUri (const UriType& x); - - void - setUri (::std::unique_ptr< UriType > p); - - ::std::unique_ptr< UriType > - setDetachUri (); - - // any_attribute - // - typedef ::xsd::cxx::tree::attribute_set< char > AnyAttributeSet; - typedef AnyAttributeSet::iterator AnyAttributeIterator; - typedef AnyAttributeSet::const_iterator AnyAttributeConstIterator; - - const AnyAttributeSet& - getAnyAttribute () const; - - AnyAttributeSet& - getAnyAttribute (); - - void - setAnyAttribute (const AnyAttributeSet& s); - - // DOMDocument for wildcard content. - // - const ::xercesc::DOMDocument& - getDomDocument () const; - - ::xercesc::DOMDocument& - getDomDocument (); - - // Constructors. - // - Resource (const UriType&); - - Resource (const ::xercesc::DOMElement& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); - - Resource (const Resource& x, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); - - virtual Resource* - _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0) const; - - Resource& - operator= (const Resource& x); - - virtual - ~Resource (); - - // Implementation. - // - protected: - void - parse (::xsd::cxx::xml::dom::parser< char >&, - ::LinphonePrivate::Xsd::XmlSchema::Flags); - - protected: - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > dom_document_; - - NameSequence name_; - InstanceSequence instance_; - ::xsd::cxx::tree::one< UriType > uri_; - AnyAttributeSet any_attribute_; - }; - - class Instance: public ::LinphonePrivate::Xsd::XmlSchema::Type - { - public: - // any - // - typedef ::xsd::cxx::tree::element_sequence AnySequence; - typedef AnySequence::iterator AnyIterator; - typedef AnySequence::const_iterator AnyConstIterator; - - const AnySequence& - getAny () const; - - AnySequence& - getAny (); - - void - setAny (const AnySequence& s); - - // id - // - typedef ::LinphonePrivate::Xsd::XmlSchema::String IdType; - typedef ::xsd::cxx::tree::traits< IdType, char > IdTraits; - - const IdType& - getId () const; - - IdType& - getId (); - - void - setId (const IdType& x); - - void - setId (::std::unique_ptr< IdType > p); - - ::std::unique_ptr< IdType > - setDetachId (); - - // state - // - typedef ::rlmi::State StateType; - typedef ::xsd::cxx::tree::traits< StateType, char > StateTraits; - - const StateType& - getState () const; - - StateType& - getState (); - - void - setState (const StateType& x); - - void - setState (::std::unique_ptr< StateType > p); - - ::std::unique_ptr< StateType > - setDetachState (); - - // reason - // - typedef ::LinphonePrivate::Xsd::XmlSchema::String ReasonType; - typedef ::xsd::cxx::tree::optional< ReasonType > ReasonOptional; - typedef ::xsd::cxx::tree::traits< ReasonType, char > ReasonTraits; - - const ReasonOptional& - getReason () const; - - ReasonOptional& - getReason (); - - void - setReason (const ReasonType& x); - - void - setReason (const ReasonOptional& x); - - void - setReason (::std::unique_ptr< ReasonType > p); - - // cid - // - typedef ::LinphonePrivate::Xsd::XmlSchema::String CidType; - typedef ::xsd::cxx::tree::optional< CidType > CidOptional; - typedef ::xsd::cxx::tree::traits< CidType, char > CidTraits; - - const CidOptional& - getCid () const; - - CidOptional& - getCid (); - - void - setCid (const CidType& x); - - void - setCid (const CidOptional& x); - - void - setCid (::std::unique_ptr< CidType > p); - - // any_attribute - // - typedef ::xsd::cxx::tree::attribute_set< char > AnyAttributeSet; - typedef AnyAttributeSet::iterator AnyAttributeIterator; - typedef AnyAttributeSet::const_iterator AnyAttributeConstIterator; - - const AnyAttributeSet& - getAnyAttribute () const; - - AnyAttributeSet& - getAnyAttribute (); - - void - setAnyAttribute (const AnyAttributeSet& s); - - // DOMDocument for wildcard content. - // - const ::xercesc::DOMDocument& - getDomDocument () const; - - ::xercesc::DOMDocument& - getDomDocument (); - - // Constructors. - // - Instance (const IdType&, - const StateType&); - - Instance (const ::xercesc::DOMElement& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); - - Instance (const Instance& x, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); - - virtual Instance* - _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0) const; - - Instance& - operator= (const Instance& x); - - virtual - ~Instance (); - - // Implementation. - // - protected: - void - parse (::xsd::cxx::xml::dom::parser< char >&, - ::LinphonePrivate::Xsd::XmlSchema::Flags); - - protected: - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > dom_document_; - - AnySequence any_; - ::xsd::cxx::tree::one< IdType > id_; - ::xsd::cxx::tree::one< StateType > state_; - ReasonOptional reason_; - CidOptional cid_; - AnyAttributeSet any_attribute_; - }; - - class Name: public ::LinphonePrivate::Xsd::XmlSchema::String - { - public: - // lang - // - typedef ::namespace_::Lang LangType; - typedef ::xsd::cxx::tree::optional< LangType > LangOptional; - typedef ::xsd::cxx::tree::traits< LangType, char > LangTraits; - - const LangOptional& - getLang () const; - - LangOptional& - getLang (); - - void - setLang (const LangType& x); - - void - setLang (const LangOptional& x); - - void - setLang (::std::unique_ptr< LangType > p); - - // Constructors. - // - Name (); - - Name (const char*); - - Name (const ::std::string&); - - Name (const ::LinphonePrivate::Xsd::XmlSchema::String&); - - Name (const ::xercesc::DOMElement& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); - - Name (const Name& x, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); - - virtual Name* - _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0) const; - - Name& - operator= (const Name& x); - - virtual - ~Name (); - - // Implementation. - // - protected: - void - parse (::xsd::cxx::xml::dom::parser< char >&, - ::LinphonePrivate::Xsd::XmlSchema::Flags); - - protected: - LangOptional lang_; - }; - - class State: public ::LinphonePrivate::Xsd::XmlSchema::String - { - public: - enum Value + namespace Rlmi { - active, - pending, - terminated - }; + class List: public ::LinphonePrivate::Xsd::XmlSchema::Type + { + public: + // name + // + typedef ::LinphonePrivate::Xsd::Rlmi::Name NameType; + typedef ::xsd::cxx::tree::sequence< NameType > NameSequence; + typedef NameSequence::iterator NameIterator; + typedef NameSequence::const_iterator NameConstIterator; + typedef ::xsd::cxx::tree::traits< NameType, char > NameTraits; - State (Value v); + const NameSequence& + getName () const; - State (const char* v); + NameSequence& + getName (); - State (const ::std::string& v); + void + setName (const NameSequence& s); - State (const ::LinphonePrivate::Xsd::XmlSchema::String& v); + // resource + // + typedef ::LinphonePrivate::Xsd::Rlmi::Resource ResourceType; + typedef ::xsd::cxx::tree::sequence< ResourceType > ResourceSequence; + typedef ResourceSequence::iterator ResourceIterator; + typedef ResourceSequence::const_iterator ResourceConstIterator; + typedef ::xsd::cxx::tree::traits< ResourceType, char > ResourceTraits; - State (const ::xercesc::DOMElement& e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + const ResourceSequence& + getResource () const; - State (const ::xercesc::DOMAttr& a, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + ResourceSequence& + getResource (); - State (const ::std::string& s, - const ::xercesc::DOMElement* e, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + void + setResource (const ResourceSequence& s); - State (const State& x, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + // uri + // + typedef ::LinphonePrivate::Xsd::XmlSchema::Uri UriType; + typedef ::xsd::cxx::tree::traits< UriType, char > UriTraits; - virtual State* - _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0) const; + const UriType& + getUri () const; - State& - operator= (Value v); + UriType& + getUri (); - virtual - operator Value () const - { - return _xsd_State_convert (); + void + setUri (const UriType& x); + + void + setUri (::std::unique_ptr< UriType > p); + + ::std::unique_ptr< UriType > + setDetachUri (); + + // version + // + typedef ::LinphonePrivate::Xsd::XmlSchema::UnsignedInt VersionType; + typedef ::xsd::cxx::tree::traits< VersionType, char > VersionTraits; + + const VersionType& + getVersion () const; + + VersionType& + getVersion (); + + void + setVersion (const VersionType& x); + + // fullState + // + typedef ::LinphonePrivate::Xsd::XmlSchema::Boolean FullStateType; + typedef ::xsd::cxx::tree::traits< FullStateType, char > FullStateTraits; + + const FullStateType& + getFullState () const; + + FullStateType& + getFullState (); + + void + setFullState (const FullStateType& x); + + // cid + // + typedef ::LinphonePrivate::Xsd::XmlSchema::String CidType; + typedef ::xsd::cxx::tree::optional< CidType > CidOptional; + typedef ::xsd::cxx::tree::traits< CidType, char > CidTraits; + + const CidOptional& + getCid () const; + + CidOptional& + getCid (); + + void + setCid (const CidType& x); + + void + setCid (const CidOptional& x); + + void + setCid (::std::unique_ptr< CidType > p); + + // any_attribute + // + typedef ::xsd::cxx::tree::attribute_set< char > AnyAttributeSet; + typedef AnyAttributeSet::iterator AnyAttributeIterator; + typedef AnyAttributeSet::const_iterator AnyAttributeConstIterator; + + const AnyAttributeSet& + getAnyAttribute () const; + + AnyAttributeSet& + getAnyAttribute (); + + void + setAnyAttribute (const AnyAttributeSet& s); + + // DOMDocument for wildcard content. + // + const ::xercesc::DOMDocument& + getDomDocument () const; + + ::xercesc::DOMDocument& + getDomDocument (); + + // Constructors. + // + List (const UriType&, + const VersionType&, + const FullStateType&); + + List (const ::xercesc::DOMElement& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + + List (const List& x, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + + virtual List* + _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0) const; + + List& + operator= (const List& x); + + virtual + ~List (); + + // Implementation. + // + protected: + void + parse (::xsd::cxx::xml::dom::parser< char >&, + ::LinphonePrivate::Xsd::XmlSchema::Flags); + + protected: + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > dom_document_; + + NameSequence name_; + ResourceSequence resource_; + ::xsd::cxx::tree::one< UriType > uri_; + ::xsd::cxx::tree::one< VersionType > version_; + ::xsd::cxx::tree::one< FullStateType > fullState_; + CidOptional cid_; + AnyAttributeSet any_attribute_; + }; + + class Resource: public ::LinphonePrivate::Xsd::XmlSchema::Type + { + public: + // name + // + typedef ::LinphonePrivate::Xsd::Rlmi::Name NameType; + typedef ::xsd::cxx::tree::sequence< NameType > NameSequence; + typedef NameSequence::iterator NameIterator; + typedef NameSequence::const_iterator NameConstIterator; + typedef ::xsd::cxx::tree::traits< NameType, char > NameTraits; + + const NameSequence& + getName () const; + + NameSequence& + getName (); + + void + setName (const NameSequence& s); + + // instance + // + typedef ::LinphonePrivate::Xsd::Rlmi::Instance InstanceType; + typedef ::xsd::cxx::tree::sequence< InstanceType > InstanceSequence; + typedef InstanceSequence::iterator InstanceIterator; + typedef InstanceSequence::const_iterator InstanceConstIterator; + typedef ::xsd::cxx::tree::traits< InstanceType, char > InstanceTraits; + + const InstanceSequence& + getInstance () const; + + InstanceSequence& + getInstance (); + + void + setInstance (const InstanceSequence& s); + + // uri + // + typedef ::LinphonePrivate::Xsd::XmlSchema::Uri UriType; + typedef ::xsd::cxx::tree::traits< UriType, char > UriTraits; + + const UriType& + getUri () const; + + UriType& + getUri (); + + void + setUri (const UriType& x); + + void + setUri (::std::unique_ptr< UriType > p); + + ::std::unique_ptr< UriType > + setDetachUri (); + + // any_attribute + // + typedef ::xsd::cxx::tree::attribute_set< char > AnyAttributeSet; + typedef AnyAttributeSet::iterator AnyAttributeIterator; + typedef AnyAttributeSet::const_iterator AnyAttributeConstIterator; + + const AnyAttributeSet& + getAnyAttribute () const; + + AnyAttributeSet& + getAnyAttribute (); + + void + setAnyAttribute (const AnyAttributeSet& s); + + // DOMDocument for wildcard content. + // + const ::xercesc::DOMDocument& + getDomDocument () const; + + ::xercesc::DOMDocument& + getDomDocument (); + + // Constructors. + // + Resource (const UriType&); + + Resource (const ::xercesc::DOMElement& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + + Resource (const Resource& x, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + + virtual Resource* + _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0) const; + + Resource& + operator= (const Resource& x); + + virtual + ~Resource (); + + // Implementation. + // + protected: + void + parse (::xsd::cxx::xml::dom::parser< char >&, + ::LinphonePrivate::Xsd::XmlSchema::Flags); + + protected: + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > dom_document_; + + NameSequence name_; + InstanceSequence instance_; + ::xsd::cxx::tree::one< UriType > uri_; + AnyAttributeSet any_attribute_; + }; + + class Instance: public ::LinphonePrivate::Xsd::XmlSchema::Type + { + public: + // any + // + typedef ::xsd::cxx::tree::element_sequence AnySequence; + typedef AnySequence::iterator AnyIterator; + typedef AnySequence::const_iterator AnyConstIterator; + + const AnySequence& + getAny () const; + + AnySequence& + getAny (); + + void + setAny (const AnySequence& s); + + // id + // + typedef ::LinphonePrivate::Xsd::XmlSchema::String IdType; + typedef ::xsd::cxx::tree::traits< IdType, char > IdTraits; + + const IdType& + getId () const; + + IdType& + getId (); + + void + setId (const IdType& x); + + void + setId (::std::unique_ptr< IdType > p); + + ::std::unique_ptr< IdType > + setDetachId (); + + // state + // + typedef ::LinphonePrivate::Xsd::Rlmi::State StateType; + typedef ::xsd::cxx::tree::traits< StateType, char > StateTraits; + + const StateType& + getState () const; + + StateType& + getState (); + + void + setState (const StateType& x); + + void + setState (::std::unique_ptr< StateType > p); + + ::std::unique_ptr< StateType > + setDetachState (); + + // reason + // + typedef ::LinphonePrivate::Xsd::XmlSchema::String ReasonType; + typedef ::xsd::cxx::tree::optional< ReasonType > ReasonOptional; + typedef ::xsd::cxx::tree::traits< ReasonType, char > ReasonTraits; + + const ReasonOptional& + getReason () const; + + ReasonOptional& + getReason (); + + void + setReason (const ReasonType& x); + + void + setReason (const ReasonOptional& x); + + void + setReason (::std::unique_ptr< ReasonType > p); + + // cid + // + typedef ::LinphonePrivate::Xsd::XmlSchema::String CidType; + typedef ::xsd::cxx::tree::optional< CidType > CidOptional; + typedef ::xsd::cxx::tree::traits< CidType, char > CidTraits; + + const CidOptional& + getCid () const; + + CidOptional& + getCid (); + + void + setCid (const CidType& x); + + void + setCid (const CidOptional& x); + + void + setCid (::std::unique_ptr< CidType > p); + + // any_attribute + // + typedef ::xsd::cxx::tree::attribute_set< char > AnyAttributeSet; + typedef AnyAttributeSet::iterator AnyAttributeIterator; + typedef AnyAttributeSet::const_iterator AnyAttributeConstIterator; + + const AnyAttributeSet& + getAnyAttribute () const; + + AnyAttributeSet& + getAnyAttribute (); + + void + setAnyAttribute (const AnyAttributeSet& s); + + // DOMDocument for wildcard content. + // + const ::xercesc::DOMDocument& + getDomDocument () const; + + ::xercesc::DOMDocument& + getDomDocument (); + + // Constructors. + // + Instance (const IdType&, + const StateType&); + + Instance (const ::xercesc::DOMElement& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + + Instance (const Instance& x, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + + virtual Instance* + _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0) const; + + Instance& + operator= (const Instance& x); + + virtual + ~Instance (); + + // Implementation. + // + protected: + void + parse (::xsd::cxx::xml::dom::parser< char >&, + ::LinphonePrivate::Xsd::XmlSchema::Flags); + + protected: + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > dom_document_; + + AnySequence any_; + ::xsd::cxx::tree::one< IdType > id_; + ::xsd::cxx::tree::one< StateType > state_; + ReasonOptional reason_; + CidOptional cid_; + AnyAttributeSet any_attribute_; + }; + + class Name: public ::LinphonePrivate::Xsd::XmlSchema::String + { + public: + // lang + // + typedef ::namespace_::Lang LangType; + typedef ::xsd::cxx::tree::optional< LangType > LangOptional; + typedef ::xsd::cxx::tree::traits< LangType, char > LangTraits; + + const LangOptional& + getLang () const; + + LangOptional& + getLang (); + + void + setLang (const LangType& x); + + void + setLang (const LangOptional& x); + + void + setLang (::std::unique_ptr< LangType > p); + + // Constructors. + // + Name (); + + Name (const char*); + + Name (const ::std::string&); + + Name (const ::LinphonePrivate::Xsd::XmlSchema::String&); + + Name (const ::xercesc::DOMElement& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + + Name (const Name& x, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + + virtual Name* + _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0) const; + + Name& + operator= (const Name& x); + + virtual + ~Name (); + + // Implementation. + // + protected: + void + parse (::xsd::cxx::xml::dom::parser< char >&, + ::LinphonePrivate::Xsd::XmlSchema::Flags); + + protected: + LangOptional lang_; + }; + + class State: public ::LinphonePrivate::Xsd::XmlSchema::String + { + public: + enum Value + { + active, + pending, + terminated + }; + + State (Value v); + + State (const char* v); + + State (const ::std::string& v); + + State (const ::LinphonePrivate::Xsd::XmlSchema::String& v); + + State (const ::xercesc::DOMElement& e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + + State (const ::xercesc::DOMAttr& a, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + + State (const ::std::string& s, + const ::xercesc::DOMElement* e, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + + State (const State& x, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0); + + virtual State* + _clone (::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + ::LinphonePrivate::Xsd::XmlSchema::Container* c = 0) const; + + State& + operator= (Value v); + + virtual + operator Value () const + { + return _xsd_State_convert (); + } + + protected: + Value + _xsd_State_convert () const; + + public: + static const char* const _xsd_State_literals_[3]; + static const Value _xsd_State_indexes_[3]; + }; } - - protected: - Value - _xsd_State_convert () const; - - public: - static const char* const _xsd_State_literals_[3]; - static const Value _xsd_State_indexes_[3]; - }; + } } #include -namespace rlmi +namespace LinphonePrivate { - ::std::ostream& - operator<< (::std::ostream&, const List&); + namespace Xsd + { + namespace Rlmi + { + ::std::ostream& + operator<< (::std::ostream&, const List&); - ::std::ostream& - operator<< (::std::ostream&, const Resource&); + ::std::ostream& + operator<< (::std::ostream&, const Resource&); - ::std::ostream& - operator<< (::std::ostream&, const Instance&); + ::std::ostream& + operator<< (::std::ostream&, const Instance&); - ::std::ostream& - operator<< (::std::ostream&, const Name&); + ::std::ostream& + operator<< (::std::ostream&, const Name&); - ::std::ostream& - operator<< (::std::ostream&, State::Value); + ::std::ostream& + operator<< (::std::ostream&, State::Value); - ::std::ostream& - operator<< (::std::ostream&, const State&); + ::std::ostream& + operator<< (::std::ostream&, const State&); + } + } } #include @@ -901,379 +919,385 @@ namespace rlmi #include #include -namespace rlmi +namespace LinphonePrivate { - // Parse a URI or a local file. - // + namespace Xsd + { + namespace Rlmi + { + // Parse a URI or a local file. + // - ::std::unique_ptr< ::rlmi::List > - parseList (const ::std::string& uri, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::List > - parseList (const ::std::string& uri, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::List > - parseList (const ::std::string& uri, - ::xercesc::DOMErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - // Parse std::istream. - // - - ::std::unique_ptr< ::rlmi::List > - parseList (::std::istream& is, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::List > - parseList (::std::istream& is, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::List > - parseList (::std::istream& is, - ::xercesc::DOMErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::List > - parseList (::std::istream& is, - const ::std::string& id, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::List > - parseList (::std::istream& is, - const ::std::string& id, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::List > - parseList (::std::istream& is, - const ::std::string& id, - ::xercesc::DOMErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - // Parse xercesc::InputSource. - // - - ::std::unique_ptr< ::rlmi::List > - parseList (::xercesc::InputSource& is, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::List > - parseList (::xercesc::InputSource& is, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::List > - parseList (::xercesc::InputSource& is, - ::xercesc::DOMErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - // Parse xercesc::DOMDocument. - // - - ::std::unique_ptr< ::rlmi::List > - parseList (const ::xercesc::DOMDocument& d, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::List > - parseList (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - // Parse a URI or a local file. - // - - ::std::unique_ptr< ::rlmi::Resource > - parseResource (const ::std::string& uri, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (const ::std::string& uri, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Resource > - parseResource (const ::std::string& uri, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (const ::std::string& uri, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Resource > - parseResource (const ::std::string& uri, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (const ::std::string& uri, ::xercesc::DOMErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - // Parse std::istream. - // + // Parse std::istream. + // - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::std::istream& is, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::std::istream& is, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::std::istream& is, ::xercesc::DOMErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::std::istream& is, const ::std::string& id, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::std::istream& is, const ::std::string& id, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::std::istream& is, const ::std::string& id, ::xercesc::DOMErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - // Parse xercesc::InputSource. - // + // Parse xercesc::InputSource. + // - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::xercesc::InputSource& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::xercesc::InputSource& is, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::xercesc::InputSource& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::xercesc::InputSource& is, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::xercesc::InputSource& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::xercesc::InputSource& is, ::xercesc::DOMErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - // Parse xercesc::DOMDocument. - // + // Parse xercesc::DOMDocument. + // - ::std::unique_ptr< ::rlmi::Resource > - parseResource (const ::xercesc::DOMDocument& d, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (const ::xercesc::DOMDocument& d, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Resource > - parseResource (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::List > + parseList (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - // Parse a URI or a local file. - // + // Parse a URI or a local file. + // - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (const ::std::string& uri, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (const ::std::string& uri, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (const ::std::string& uri, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (const ::std::string& uri, + ::xercesc::DOMErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + // Parse std::istream. + // + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::std::istream& is, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::std::istream& is, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::std::istream& is, + ::xercesc::DOMErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::std::istream& is, + const ::std::string& id, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::std::istream& is, + const ::std::string& id, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::std::istream& is, + const ::std::string& id, + ::xercesc::DOMErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + // Parse xercesc::InputSource. + // + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::xercesc::InputSource& is, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::xercesc::InputSource& is, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::xercesc::InputSource& is, + ::xercesc::DOMErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + // Parse xercesc::DOMDocument. + // + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (const ::xercesc::DOMDocument& d, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Resource > + parseResource (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + // Parse a URI or a local file. + // + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (const ::std::string& uri, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (const ::std::string& uri, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (const ::std::string& uri, + ::xercesc::DOMErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + // Parse std::istream. + // + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::std::istream& is, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::std::istream& is, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::std::istream& is, + ::xercesc::DOMErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::std::istream& is, + const ::std::string& id, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::std::istream& is, + const ::std::string& id, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::std::istream& is, + const ::std::string& id, + ::xercesc::DOMErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + // Parse xercesc::InputSource. + // + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::xercesc::InputSource& is, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::xercesc::InputSource& is, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::xercesc::InputSource& is, + ::xercesc::DOMErrorHandler& eh, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + // Parse xercesc::DOMDocument. + // + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (const ::xercesc::DOMDocument& d, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Instance > + parseInstance (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, + const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + + // Parse a URI or a local file. + // + + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (const ::std::string& uri, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (const ::std::string& uri, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (const ::std::string& uri, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (const ::std::string& uri, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (const ::std::string& uri, ::xercesc::DOMErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - // Parse std::istream. - // + // Parse std::istream. + // - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::std::istream& is, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::std::istream& is, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::std::istream& is, ::xercesc::DOMErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::std::istream& is, const ::std::string& id, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::std::istream& is, const ::std::string& id, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::std::istream& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::std::istream& is, const ::std::string& id, ::xercesc::DOMErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - // Parse xercesc::InputSource. - // + // Parse xercesc::InputSource. + // - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::xercesc::InputSource& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::xercesc::InputSource& is, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::xercesc::InputSource& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::xercesc::InputSource& is, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::xercesc::InputSource& is, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::xercesc::InputSource& is, ::xercesc::DOMErrorHandler& eh, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - // Parse xercesc::DOMDocument. - // + // Parse xercesc::DOMDocument. + // - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (const ::xercesc::DOMDocument& d, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (const ::xercesc::DOMDocument& d, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - ::std::unique_ptr< ::rlmi::Instance > - parseInstance (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, + ::std::unique_ptr< ::LinphonePrivate::Xsd::Rlmi::Name > + parseName (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - // Parse a URI or a local file. - // - - ::std::unique_ptr< ::rlmi::Name > - parseName (const ::std::string& uri, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::Name > - parseName (const ::std::string& uri, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::Name > - parseName (const ::std::string& uri, - ::xercesc::DOMErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - // Parse std::istream. - // - - ::std::unique_ptr< ::rlmi::Name > - parseName (::std::istream& is, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::Name > - parseName (::std::istream& is, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::Name > - parseName (::std::istream& is, - ::xercesc::DOMErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::Name > - parseName (::std::istream& is, - const ::std::string& id, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::Name > - parseName (::std::istream& is, - const ::std::string& id, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::Name > - parseName (::std::istream& is, - const ::std::string& id, - ::xercesc::DOMErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - // Parse xercesc::InputSource. - // - - ::std::unique_ptr< ::rlmi::Name > - parseName (::xercesc::InputSource& is, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::Name > - parseName (::xercesc::InputSource& is, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::Name > - parseName (::xercesc::InputSource& is, - ::xercesc::DOMErrorHandler& eh, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - // Parse xercesc::DOMDocument. - // - - ::std::unique_ptr< ::rlmi::Name > - parseName (const ::xercesc::DOMDocument& d, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); - - ::std::unique_ptr< ::rlmi::Name > - parseName (::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > d, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0, - const ::LinphonePrivate::Xsd::XmlSchema::Properties& p = ::LinphonePrivate::Xsd::XmlSchema::Properties ()); + } + } } #include @@ -1284,301 +1308,307 @@ namespace rlmi #include -namespace rlmi +namespace LinphonePrivate { - // Serialize to std::ostream. - // + namespace Xsd + { + namespace Rlmi + { + // Serialize to std::ostream. + // - void - serializeList (::std::ostream& os, - const ::rlmi::List& x, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), - const ::std::string& e = "UTF-8", - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - - void - serializeList (::std::ostream& os, - const ::rlmi::List& x, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), - const ::std::string& e = "UTF-8", - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - - void - serializeList (::std::ostream& os, - const ::rlmi::List& x, - ::xercesc::DOMErrorHandler& eh, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), - const ::std::string& e = "UTF-8", - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - - // Serialize to xercesc::XMLFormatTarget. - // - - void - serializeList (::xercesc::XMLFormatTarget& ft, - const ::rlmi::List& x, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), - const ::std::string& e = "UTF-8", - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - - void - serializeList (::xercesc::XMLFormatTarget& ft, - const ::rlmi::List& x, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), - const ::std::string& e = "UTF-8", - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - - void - serializeList (::xercesc::XMLFormatTarget& ft, - const ::rlmi::List& x, - ::xercesc::DOMErrorHandler& eh, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), - const ::std::string& e = "UTF-8", - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - - // Serialize to an existing xercesc::DOMDocument. - // - - void - serializeList (::xercesc::DOMDocument& d, - const ::rlmi::List& x, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - - // Serialize to a new xercesc::DOMDocument. - // - - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > - serializeList (const ::rlmi::List& x, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - - // Serialize to std::ostream. - // - - void - serializeResource (::std::ostream& os, - const ::rlmi::Resource& x, + void + serializeList (::std::ostream& os, + const ::LinphonePrivate::Xsd::Rlmi::List& x, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), const ::std::string& e = "UTF-8", ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - void - serializeResource (::std::ostream& os, - const ::rlmi::Resource& x, + void + serializeList (::std::ostream& os, + const ::LinphonePrivate::Xsd::Rlmi::List& x, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), const ::std::string& e = "UTF-8", ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - void - serializeResource (::std::ostream& os, - const ::rlmi::Resource& x, + void + serializeList (::std::ostream& os, + const ::LinphonePrivate::Xsd::Rlmi::List& x, ::xercesc::DOMErrorHandler& eh, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), const ::std::string& e = "UTF-8", ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - // Serialize to xercesc::XMLFormatTarget. - // + // Serialize to xercesc::XMLFormatTarget. + // - void - serializeResource (::xercesc::XMLFormatTarget& ft, - const ::rlmi::Resource& x, + void + serializeList (::xercesc::XMLFormatTarget& ft, + const ::LinphonePrivate::Xsd::Rlmi::List& x, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), const ::std::string& e = "UTF-8", ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - void - serializeResource (::xercesc::XMLFormatTarget& ft, - const ::rlmi::Resource& x, + void + serializeList (::xercesc::XMLFormatTarget& ft, + const ::LinphonePrivate::Xsd::Rlmi::List& x, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), const ::std::string& e = "UTF-8", ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - void - serializeResource (::xercesc::XMLFormatTarget& ft, - const ::rlmi::Resource& x, + void + serializeList (::xercesc::XMLFormatTarget& ft, + const ::LinphonePrivate::Xsd::Rlmi::List& x, ::xercesc::DOMErrorHandler& eh, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), const ::std::string& e = "UTF-8", ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - // Serialize to an existing xercesc::DOMDocument. - // + // Serialize to an existing xercesc::DOMDocument. + // - void - serializeResource (::xercesc::DOMDocument& d, - const ::rlmi::Resource& x, + void + serializeList (::xercesc::DOMDocument& d, + const ::LinphonePrivate::Xsd::Rlmi::List& x, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - // Serialize to a new xercesc::DOMDocument. - // + // Serialize to a new xercesc::DOMDocument. + // - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > - serializeResource (const ::rlmi::Resource& x, + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > + serializeList (const ::LinphonePrivate::Xsd::Rlmi::List& x, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - // Serialize to std::ostream. - // + // Serialize to std::ostream. + // - void - serializeInstance (::std::ostream& os, - const ::rlmi::Instance& x, + void + serializeResource (::std::ostream& os, + const ::LinphonePrivate::Xsd::Rlmi::Resource& x, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), + const ::std::string& e = "UTF-8", + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + void + serializeResource (::std::ostream& os, + const ::LinphonePrivate::Xsd::Rlmi::Resource& x, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), + const ::std::string& e = "UTF-8", + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + void + serializeResource (::std::ostream& os, + const ::LinphonePrivate::Xsd::Rlmi::Resource& x, + ::xercesc::DOMErrorHandler& eh, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), + const ::std::string& e = "UTF-8", + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + // Serialize to xercesc::XMLFormatTarget. + // + + void + serializeResource (::xercesc::XMLFormatTarget& ft, + const ::LinphonePrivate::Xsd::Rlmi::Resource& x, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), + const ::std::string& e = "UTF-8", + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + void + serializeResource (::xercesc::XMLFormatTarget& ft, + const ::LinphonePrivate::Xsd::Rlmi::Resource& x, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), + const ::std::string& e = "UTF-8", + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + void + serializeResource (::xercesc::XMLFormatTarget& ft, + const ::LinphonePrivate::Xsd::Rlmi::Resource& x, + ::xercesc::DOMErrorHandler& eh, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), + const ::std::string& e = "UTF-8", + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + // Serialize to an existing xercesc::DOMDocument. + // + + void + serializeResource (::xercesc::DOMDocument& d, + const ::LinphonePrivate::Xsd::Rlmi::Resource& x, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + // Serialize to a new xercesc::DOMDocument. + // + + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > + serializeResource (const ::LinphonePrivate::Xsd::Rlmi::Resource& x, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + // Serialize to std::ostream. + // + + void + serializeInstance (::std::ostream& os, + const ::LinphonePrivate::Xsd::Rlmi::Instance& x, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), + const ::std::string& e = "UTF-8", + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + void + serializeInstance (::std::ostream& os, + const ::LinphonePrivate::Xsd::Rlmi::Instance& x, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), + const ::std::string& e = "UTF-8", + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + void + serializeInstance (::std::ostream& os, + const ::LinphonePrivate::Xsd::Rlmi::Instance& x, + ::xercesc::DOMErrorHandler& eh, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), + const ::std::string& e = "UTF-8", + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + // Serialize to xercesc::XMLFormatTarget. + // + + void + serializeInstance (::xercesc::XMLFormatTarget& ft, + const ::LinphonePrivate::Xsd::Rlmi::Instance& x, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), + const ::std::string& e = "UTF-8", + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + void + serializeInstance (::xercesc::XMLFormatTarget& ft, + const ::LinphonePrivate::Xsd::Rlmi::Instance& x, + ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), + const ::std::string& e = "UTF-8", + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + void + serializeInstance (::xercesc::XMLFormatTarget& ft, + const ::LinphonePrivate::Xsd::Rlmi::Instance& x, + ::xercesc::DOMErrorHandler& eh, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), + const ::std::string& e = "UTF-8", + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + // Serialize to an existing xercesc::DOMDocument. + // + + void + serializeInstance (::xercesc::DOMDocument& d, + const ::LinphonePrivate::Xsd::Rlmi::Instance& x, + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + // Serialize to a new xercesc::DOMDocument. + // + + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > + serializeInstance (const ::LinphonePrivate::Xsd::Rlmi::Instance& x, + const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), + ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + + // Serialize to std::ostream. + // + + void + serializeName (::std::ostream& os, + const ::LinphonePrivate::Xsd::Rlmi::Name& x, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), const ::std::string& e = "UTF-8", ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - void - serializeInstance (::std::ostream& os, - const ::rlmi::Instance& x, + void + serializeName (::std::ostream& os, + const ::LinphonePrivate::Xsd::Rlmi::Name& x, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), const ::std::string& e = "UTF-8", ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - void - serializeInstance (::std::ostream& os, - const ::rlmi::Instance& x, + void + serializeName (::std::ostream& os, + const ::LinphonePrivate::Xsd::Rlmi::Name& x, ::xercesc::DOMErrorHandler& eh, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), const ::std::string& e = "UTF-8", ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - // Serialize to xercesc::XMLFormatTarget. - // + // Serialize to xercesc::XMLFormatTarget. + // - void - serializeInstance (::xercesc::XMLFormatTarget& ft, - const ::rlmi::Instance& x, + void + serializeName (::xercesc::XMLFormatTarget& ft, + const ::LinphonePrivate::Xsd::Rlmi::Name& x, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), const ::std::string& e = "UTF-8", ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - void - serializeInstance (::xercesc::XMLFormatTarget& ft, - const ::rlmi::Instance& x, + void + serializeName (::xercesc::XMLFormatTarget& ft, + const ::LinphonePrivate::Xsd::Rlmi::Name& x, ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), const ::std::string& e = "UTF-8", ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - void - serializeInstance (::xercesc::XMLFormatTarget& ft, - const ::rlmi::Instance& x, + void + serializeName (::xercesc::XMLFormatTarget& ft, + const ::LinphonePrivate::Xsd::Rlmi::Name& x, ::xercesc::DOMErrorHandler& eh, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), const ::std::string& e = "UTF-8", ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - // Serialize to an existing xercesc::DOMDocument. - // + // Serialize to an existing xercesc::DOMDocument. + // - void - serializeInstance (::xercesc::DOMDocument& d, - const ::rlmi::Instance& x, + void + serializeName (::xercesc::DOMDocument& d, + const ::LinphonePrivate::Xsd::Rlmi::Name& x, ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - // Serialize to a new xercesc::DOMDocument. - // + // Serialize to a new xercesc::DOMDocument. + // - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > - serializeInstance (const ::rlmi::Instance& x, + ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > + serializeName (const ::LinphonePrivate::Xsd::Rlmi::Name& x, const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - // Serialize to std::ostream. - // + void + operator<< (::xercesc::DOMElement&, const List&); - void - serializeName (::std::ostream& os, - const ::rlmi::Name& x, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), - const ::std::string& e = "UTF-8", - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + void + operator<< (::xercesc::DOMElement&, const Resource&); - void - serializeName (::std::ostream& os, - const ::rlmi::Name& x, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), - const ::std::string& e = "UTF-8", - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + void + operator<< (::xercesc::DOMElement&, const Instance&); - void - serializeName (::std::ostream& os, - const ::rlmi::Name& x, - ::xercesc::DOMErrorHandler& eh, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), - const ::std::string& e = "UTF-8", - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + void + operator<< (::xercesc::DOMElement&, const Name&); - // Serialize to xercesc::XMLFormatTarget. - // + void + operator<< (::xercesc::DOMElement&, const State&); - void - serializeName (::xercesc::XMLFormatTarget& ft, - const ::rlmi::Name& x, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), - const ::std::string& e = "UTF-8", - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); + void + operator<< (::xercesc::DOMAttr&, const State&); - void - serializeName (::xercesc::XMLFormatTarget& ft, - const ::rlmi::Name& x, - ::LinphonePrivate::Xsd::XmlSchema::ErrorHandler& eh, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), - const ::std::string& e = "UTF-8", - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - - void - serializeName (::xercesc::XMLFormatTarget& ft, - const ::rlmi::Name& x, - ::xercesc::DOMErrorHandler& eh, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), - const ::std::string& e = "UTF-8", - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - - // Serialize to an existing xercesc::DOMDocument. - // - - void - serializeName (::xercesc::DOMDocument& d, - const ::rlmi::Name& x, - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - - // Serialize to a new xercesc::DOMDocument. - // - - ::LinphonePrivate::Xsd::XmlSchema::dom::unique_ptr< ::xercesc::DOMDocument > - serializeName (const ::rlmi::Name& x, - const ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap& m = ::LinphonePrivate::Xsd::XmlSchema::NamespaceInfomap (), - ::LinphonePrivate::Xsd::XmlSchema::Flags f = 0); - - void - operator<< (::xercesc::DOMElement&, const List&); - - void - operator<< (::xercesc::DOMElement&, const Resource&); - - void - operator<< (::xercesc::DOMElement&, const Instance&); - - void - operator<< (::xercesc::DOMElement&, const Name&); - - void - operator<< (::xercesc::DOMElement&, const State&); - - void - operator<< (::xercesc::DOMAttr&, const State&); - - void - operator<< (::LinphonePrivate::Xsd::XmlSchema::ListStream&, - const State&); + void + operator<< (::LinphonePrivate::Xsd::XmlSchema::ListStream&, + const State&); + } + } } #include