xmltooling
1.4.2
|
Licensed to the University Corporation for Advanced Internet Development, Inc. More...
#include <typeinfo>
#include <cstdio>
#include <xmltooling/config_pub_win32.h>
#include <utility>
Classes | |
struct | xmltooling::cleanup< T > |
Functor for cleaning up heap objects in containers. More... | |
struct | xmltooling::cleanup_pair< A, B > |
Functor for cleaning up heap objects in key/value containers. More... | |
struct | xmltooling::cleanup_const_pair< A, B > |
Functor for cleaning up const heap objects in key/value containers. More... | |
Namespaces | |
xmltooling | |
Public namespace of XML Tooling library. | |
Macros | |
#define | nullptr 0 |
#define | XMLTOOL_IMPORT |
#define | XMLTOOL_EXPORT |
#define | XMLTOOL_DLLLOCAL |
#define | XMLTOOL_DLLPUBLIC |
#define | XMLTOOL_API XMLTOOL_IMPORT |
#define | XMLTOOL_EXCEPTIONAPI(api) |
#define | XMLTOOLING_DOXYGEN(desc) /##** desc */ |
#define | MAKE_NONCOPYABLE(type) |
Blocks copy c'tor and assignment operator for a class. More... | |
#define | DECL_XMLOBJECT_ABSTRACT(linkage, cname, base, desc) |
Begins the declaration of an XMLObject specialization for an abstract element/type. More... | |
#define | BEGIN_XMLOBJECT(linkage, cname, base, desc) |
Begins the declaration of an XMLObject specialization. More... | |
#define | BEGIN_XMLOBJECT2(linkage, cname, base, base2, desc) |
Begins the declaration of an XMLObject specialization with two base classes. More... | |
#define | BEGIN_XMLOBJECT3(linkage, cname, base, base2, base3, desc) |
Begins the declaration of an XMLObject specialization with three base classes. More... | |
#define | BEGIN_XMLOBJECT4(linkage, cname, base, base2, base3, base4, desc) |
Begins the declaration of an XMLObject specialization with four base classes. More... | |
#define | BEGIN_XMLOBJECT5(linkage, cname, base, base2, base3, base4, base5, desc) |
Begins the declaration of an XMLObject specialization with five base classes. More... | |
#define | END_XMLOBJECT } |
Ends the declaration of an XMLObject specialization. | |
#define | DECL_ELEMENT_QNAME |
Declares a static variable holding the XMLObject's element QName. More... | |
#define | DECL_TYPE_QNAME |
Declares a static variable holding the XMLObject's schema type QName. More... | |
#define | IMPL_ELEMENT_QNAME(cname, namespaceURI, namespacePrefix) xmltooling::QName cname::ELEMENT_QNAME(namespaceURI,cname::LOCAL_NAME,namespacePrefix) |
Implements a static variable holding an XMLObject's element QName. More... | |
#define | IMPL_TYPE_QNAME(cname, namespaceURI, namespacePrefix) xmltooling::QName cname::TYPE_QNAME(namespaceURI,cname::TYPE_NAME,namespacePrefix) |
Implements a static variable holding an XMLObject's schema type QName. More... | |
#define | DECL_INHERITED_XMLOBJECT_ATTRIB(proper, upcased, type) |
Declares abstract set method for a typed XML attribute. More... | |
#define | DECL_XMLOBJECT_ATTRIB(proper, upcased, type) |
Declares abstract get/set methods for a typed XML attribute. More... | |
#define | DECL_INHERITED_STRING_ATTRIB(proper, upcased) DECL_INHERITED_XMLOBJECT_ATTRIB(proper,upcased,XMLCh) |
Declares abstract set method for a string XML attribute. More... | |
#define | DECL_STRING_ATTRIB(proper, upcased) DECL_XMLOBJECT_ATTRIB(proper,upcased,XMLCh) |
Declares abstract get/set methods for a string XML attribute. More... | |
#define | DECL_INHERITED_DATETIME_ATTRIB(proper, upcased) |
Declares abstract set method for a DateTime XML attribute. More... | |
#define | DECL_DATETIME_ATTRIB(proper, upcased) |
Declares abstract get/set methods for a DateTime XML attribute. More... | |
#define | DECL_INHERITED_INTEGER_ATTRIB(proper, upcased) |
Declares abstract set method for an integer XML attribute. More... | |
#define | DECL_INTEGER_ATTRIB(proper, upcased) |
Declares abstract get/set methods for an integer XML attribute. More... | |
#define | DECL_BOOLEAN_ATTRIB(proper, upcased, def) |
Declares abstract get/set methods for a boolean XML attribute. More... | |
#define | IMPL_XMLOBJECT_ATTRIB(proper, type) |
Implements get/set methods and a private member for a typed XML attribute. More... | |
#define | IMPL_STRING_ATTRIB(proper) IMPL_XMLOBJECT_ATTRIB(proper,XMLCh) |
Implements get/set methods and a private member for a string XML attribute. More... | |
#define | IMPL_ID_ATTRIB(proper) |
Implements get/set methods and a private member for a string XML attribute, plus a getXMLID override. More... | |
#define | IMPL_ID_ATTRIB_EX(proper, ucase, namespaceURI) |
Implements get/set methods and a private member for a string XML attribute, plus a getXMLID override and attribute node clearance when DOM is dropped. More... | |
#define | IMPL_DATETIME_ATTRIB(proper, fallback) IMPL_DATETIME_ATTRIB_EX(proper,fallback,false) |
Implements get/set methods and a private member for a DateTime XML attribute. More... | |
#define | IMPL_DURATION_ATTRIB(proper, fallback) IMPL_DATETIME_ATTRIB_EX(proper,fallback,true) |
Implements get/set methods and a private member for a duration-valued DateTime XML attribute. More... | |
#define | IMPL_DATETIME_ATTRIB_EX(proper, fallback, duration) |
Implements get/set methods and a private member for a DateTime XML attribute. More... | |
#define | IMPL_INTEGER_ATTRIB(proper) |
Implements get/set methods and a private member for an integer XML attribute. More... | |
#define | IMPL_BOOLEAN_ATTRIB(proper) |
Implements get/set methods and a private member for a boolean XML attribute. More... | |
#define | IMPL_XMLOBJECT_FOREIGN_ATTRIB(proper, type) |
Implements get/set methods and a private member for a typed, qualified XML attribute. More... | |
#define | DECL_INHERITED_TYPED_FOREIGN_CHILD(proper, ns) |
Declares abstract set method for a typed XML child object in a foreign namespace. More... | |
#define | DECL_TYPED_FOREIGN_CHILD(proper, ns) |
Declares abstract get/set methods for a typed XML child object in a foreign namespace. More... | |
#define | DECL_INHERITED_TYPED_CHILD(proper) |
Declares abstract set method for a typed XML child object. More... | |
#define | DECL_TYPED_CHILD(proper) |
Declares abstract get/set methods for a typed XML child object. More... | |
#define | DECL_XMLOBJECT_CHILD(proper) |
Declares abstract get/set methods for a generic XML child object. More... | |
#define | IMPL_TYPED_CHILD(proper) |
Implements get/set methods and a private list iterator member for a typed XML child object. More... | |
#define | IMPL_TYPED_FOREIGN_CHILD(proper, ns) |
Implements get/set methods and a private list iterator member for a typed XML child object in a foreign namespace. More... | |
#define | IMPL_XMLOBJECT_CHILD(proper) |
Implements get/set methods and a private list iterator member for a generic XML child object. More... | |
#define | DECL_TYPED_CHILDREN(proper) |
Declares abstract get/set methods for a typed XML child collection. More... | |
#define | DECL_TYPED_FOREIGN_CHILDREN(proper, ns) |
Declares abstract get/set methods for a typed XML child collection in a foreign namespace. More... | |
#define | DECL_XMLOBJECT_CHILDREN(proper) |
Declares abstract get/set methods for a generic XML child collection. More... | |
#define | IMPL_TYPED_CHILDREN(proper, fence) |
Implements get method and a private vector member for a typed XML child collection. More... | |
#define | IMPL_TYPED_FOREIGN_CHILDREN(proper, ns, fence) |
Implements get method and a private vector member for a typed XML child collection in a foreign namespace. More... | |
#define | IMPL_XMLOBJECT_CHILDREN(proper, fence) |
Implements get method and a private vector member for a generic XML child collection. More... | |
#define | MARSHALL_STRING_ATTRIB(proper, ucase, namespaceURI) |
Implements marshalling for a string attribute. More... | |
#define | MARSHALL_DATETIME_ATTRIB(proper, ucase, namespaceURI) |
Implements marshalling for a DateTime attribute. More... | |
#define | MARSHALL_INTEGER_ATTRIB(proper, ucase, namespaceURI) |
Implements marshalling for an integer attribute. More... | |
#define | MARSHALL_BOOLEAN_ATTRIB(proper, ucase, namespaceURI) |
Implements marshalling for a boolean attribute. More... | |
#define | MARSHALL_QNAME_ATTRIB(proper, ucase, namespaceURI) |
Implements marshalling for a QName attribute. More... | |
#define | MARSHALL_ID_ATTRIB(proper, ucase, namespaceURI) |
Implements marshalling for an ID attribute. More... | |
#define | PROC_STRING_ATTRIB(proper, ucase, namespaceURI) |
Implements unmarshalling process branch for a string attribute. More... | |
#define | PROC_ID_ATTRIB(proper, ucase, namespaceURI) |
Implements unmarshalling process branch for an ID attribute. More... | |
#define | PROC_DATETIME_ATTRIB(proper, ucase, namespaceURI) PROC_STRING_ATTRIB(proper,ucase,namespaceURI) |
Implements unmarshalling process branch for a DateTime attribute. More... | |
#define | PROC_QNAME_ATTRIB(proper, ucase, namespaceURI) |
Implements unmarshalling process branch for a DateTime attribute. More... | |
#define | PROC_INTEGER_ATTRIB(proper, ucase, namespaceURI) PROC_STRING_ATTRIB(proper,ucase,namespaceURI) |
Implements unmarshalling process branch for an integer attribute. More... | |
#define | PROC_BOOLEAN_ATTRIB(proper, ucase, namespaceURI) PROC_STRING_ATTRIB(proper,ucase,namespaceURI) |
Implements unmarshalling process branch for a boolean attribute. More... | |
#define | PROC_TYPED_CHILDREN(proper, namespaceURI, force) |
Implements unmarshalling process branch for typed child collection element. More... | |
#define | PROC_TYPED_FOREIGN_CHILDREN(proper, ns, namespaceURI, force) |
Implements unmarshalling process branch for typed child collection element in a foreign namespace. More... | |
#define | PROC_TYPED_CHILD(proper, namespaceURI, force) |
Implements unmarshalling process branch for typed child singleton element. More... | |
#define | PROC_TYPED_FOREIGN_CHILD(proper, ns, namespaceURI, force) |
Implements unmarshalling process branch for typed child singleton element in a foreign namespace. More... | |
#define | PROC_XMLOBJECT_CHILD(proper, namespaceURI) |
Implements unmarshalling process branch for a generic child singleton element. More... | |
#define | DECL_SIMPLE_CONTENT(proper) |
Declares aliased get/set methods for named XML element simple content. More... | |
#define | DECL_INTEGER_CONTENT(proper) |
Declares aliased get/set methods for named integer XML element content. More... | |
#define | IMPL_XMLOBJECT_CLONE(cname) |
Implements cloning methods for an XMLObject specialization implementation class. More... | |
#define | DECL_XMLOBJECT_SIMPLE(linkage, cname, proper, desc) |
Declares an XMLObject specialization with a simple content model and type, handling it as string data. More... | |
#define | DECL_XMLOBJECTIMPL_SIMPLE(linkage, cname) |
Declares and defines an implementation class for an XMLObject with a simple content model and type, handling it as string data. More... | |
#define | BEGIN_XMLOBJECTBUILDER(linkage, cname, namespaceURI, namespacePrefix) |
Begins the declaration of an XMLObjectBuilder specialization. More... | |
#define | END_XMLOBJECTBUILDER } |
Ends the declaration of an XMLObjectBuilder specialization. | |
#define | DECL_XMLOBJECTBUILDER(linkage, cname, namespaceURI, namespacePrefix) |
Declares a generic XMLObjectBuilder specialization. More... | |
#define | IMPL_XMLOBJECTBUILDER(cname) |
Implements the standard XMLObjectBuilder specialization function. More... | |
#define | BEGIN_XMLOBJECTVALIDATOR(linkage, cname) |
Begins the declaration of a Schema Validator specialization. More... | |
#define | BEGIN_XMLOBJECTVALIDATOR_SUB(linkage, cname, base) |
Begins the declaration of a Schema Validator specialization subclass. More... | |
#define | END_XMLOBJECTVALIDATOR } } |
Ends the declaration of a Validator specialization. | |
#define | XMLOBJECTVALIDATOR_CHECKTYPE(cname) |
Validator code that checks the object type. More... | |
#define | XMLOBJECTVALIDATOR_REQUIRE(cname, proper) |
Validator code that checks for a required attribute, content, or singleton. More... | |
#define | XMLOBJECTVALIDATOR_REQUIRE_INTEGER(cname, proper) |
Validator code that checks for a required integer attribute. More... | |
#define | XMLOBJECTVALIDATOR_ONEOF(cname, proper1, proper2) |
Validator code that checks for one of a pair of required attributes, content, or singletons. More... | |
#define | XMLOBJECTVALIDATOR_ONLYONEOF(cname, proper1, proper2) |
Validator code that checks for one of a pair of required attributes, content, or singletons, but disallows both. More... | |
#define | XMLOBJECTVALIDATOR_ONEOF3(cname, proper1, proper2, proper3) |
Validator code that checks for one of a set of three required attributes, content, or singletons. More... | |
#define | XMLOBJECTVALIDATOR_ONLYONEOF3(cname, proper1, proper2, proper3) |
Validator code that checks for one of a set of three required attributes, content, or singletons but disallows more than one. More... | |
#define | XMLOBJECTVALIDATOR_NONEORBOTH(cname, proper1, proper2) |
Validator code that checks a co-constraint (if one present, the other must be) between a pair of attributes, content, or singletons. More... | |
#define | XMLOBJECTVALIDATOR_NONEMPTY(cname, proper) |
Validator code that checks for a non-empty collection. More... | |
#define | XMLOBJECTVALIDATOR_SIMPLE(linkage, cname) |
Declares/defines a Validator specialization that checks object type and a non-empty simple content model. More... | |
Functions | |
template<class InputSequence , class OutputSequence > | |
void | xmltooling::clone (const InputSequence &in, OutputSequence &out) |
Template function for cloning a sequence of XMLObjects. More... | |
Licensed to the University Corporation for Advanced Internet Development, Inc.
(UCAID) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership.
UCAID licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Base header file definitions. Must be included prior to including any other header.
#define BEGIN_XMLOBJECT | ( | linkage, | |
cname, | |||
base, | |||
desc | |||
) |
Begins the declaration of an XMLObject specialization.
Basic boilerplate includes a protected constructor, empty virtual destructor, and Unicode constants for the default associated element's name and prefix.
linkage | linkage specifier for the class |
cname | the name of the class to declare |
base | the base class to derive from using public virtual inheritance |
desc | documentation comment for class |
#define BEGIN_XMLOBJECT2 | ( | linkage, | |
cname, | |||
base, | |||
base2, | |||
desc | |||
) |
Begins the declaration of an XMLObject specialization with two base classes.
Basic boilerplate includes a protected constructor, empty virtual destructor, and Unicode constants for the default associated element's name and prefix.
linkage | linkage specifier for the class |
cname | the name of the class to declare |
base | the first base class to derive from using public virtual inheritance |
base2 | the second base class to derive from using public virtual inheritance |
desc | documentation comment for class |
#define BEGIN_XMLOBJECT3 | ( | linkage, | |
cname, | |||
base, | |||
base2, | |||
base3, | |||
desc | |||
) |
Begins the declaration of an XMLObject specialization with three base classes.
Basic boilerplate includes a protected constructor, empty virtual destructor, and Unicode constants for the default associated element's name and prefix.
linkage | linkage specifier for the class |
cname | the name of the class to declare |
base | the first base class to derive from using public virtual inheritance |
base2 | the second base class to derive from using public virtual inheritance |
base3 | the third base class to derive from using public virtual inheritance |
desc | documentation comment for class |
#define BEGIN_XMLOBJECT4 | ( | linkage, | |
cname, | |||
base, | |||
base2, | |||
base3, | |||
base4, | |||
desc | |||
) |
Begins the declaration of an XMLObject specialization with four base classes.
Basic boilerplate includes a protected constructor, empty virtual destructor, and Unicode constants for the default associated element's name and prefix.
linkage | linkage specifier for the class |
cname | the name of the class to declare |
base | the first base class to derive from using public virtual inheritance |
base2 | the second base class to derive from using public virtual inheritance |
base3 | the third base class to derive from using public virtual inheritance |
base4 | the fourth base class to derive from using public virtual inheritance |
desc | documentation comment for class |
#define BEGIN_XMLOBJECT5 | ( | linkage, | |
cname, | |||
base, | |||
base2, | |||
base3, | |||
base4, | |||
base5, | |||
desc | |||
) |
Begins the declaration of an XMLObject specialization with five base classes.
Basic boilerplate includes a protected constructor, empty virtual destructor, and Unicode constants for the default associated element's name and prefix.
linkage | linkage specifier for the class |
cname | the name of the class to declare |
base | the first base class to derive from using public virtual inheritance |
base2 | the second base class to derive from using public virtual inheritance |
base3 | the third base class to derive from using public virtual inheritance |
base4 | the fourth base class to derive from using public virtual inheritance |
base5 | the fifth base class to derive from using public virtual inheritance |
desc | documentation comment for class |
#define BEGIN_XMLOBJECTBUILDER | ( | linkage, | |
cname, | |||
namespaceURI, | |||
namespacePrefix | |||
) |
Begins the declaration of an XMLObjectBuilder specialization.
Basic boilerplate includes an empty virtual destructor, and a default builder that defaults the element name.
linkage | linkage specifier for the class |
cname | the name of the XMLObject specialization |
namespaceURI | the XML namespace of the default associated element |
namespacePrefix | the XML namespace prefix of the default associated element |
#define BEGIN_XMLOBJECTVALIDATOR | ( | linkage, | |
cname | |||
) |
Begins the declaration of a Schema Validator specialization.
linkage | linkage specifier for the class |
cname | the base name of the Validator specialization |
#define BEGIN_XMLOBJECTVALIDATOR_SUB | ( | linkage, | |
cname, | |||
base | |||
) |
Begins the declaration of a Schema Validator specialization subclass.
linkage | linkage specifier for the class |
cname | the base name of the Validator specialization |
base | base class for the validator |
#define DECL_BOOLEAN_ATTRIB | ( | proper, | |
upcased, | |||
def | |||
) |
Declares abstract get/set methods for a boolean XML attribute.
proper | the proper name of the attribute |
upcased | the upcased name of the attribute |
def | the default/presumed value, if no explicit value has been set |
#define DECL_DATETIME_ATTRIB | ( | proper, | |
upcased | |||
) |
Declares abstract get/set methods for a DateTime XML attribute.
proper | the proper name of the attribute |
upcased | the upcased name of the attribute |
#define DECL_ELEMENT_QNAME |
Declares a static variable holding the XMLObject's element QName.
#define DECL_INHERITED_DATETIME_ATTRIB | ( | proper, | |
upcased | |||
) |
Declares abstract set method for a DateTime XML attribute.
The get method is omitted.
proper | the proper name of the attribute |
upcased | the upcased name of the attribute |
#define DECL_INHERITED_INTEGER_ATTRIB | ( | proper, | |
upcased | |||
) |
Declares abstract set method for an integer XML attribute.
The get method is omitted.
proper | the proper name of the attribute |
upcased | the upcased name of the attribute |
#define DECL_INHERITED_STRING_ATTRIB | ( | proper, | |
upcased | |||
) | DECL_INHERITED_XMLOBJECT_ATTRIB(proper,upcased,XMLCh) |
Declares abstract set method for a string XML attribute.
The get method is omitted.
proper | the proper name of the attribute |
upcased | the upcased name of the attribute |
#define DECL_INHERITED_TYPED_CHILD | ( | proper | ) |
Declares abstract set method for a typed XML child object.
The get method is omitted.
proper | the proper name of the child type |
#define DECL_INHERITED_TYPED_FOREIGN_CHILD | ( | proper, | |
ns | |||
) |
Declares abstract set method for a typed XML child object in a foreign namespace.
The get method is omitted.
proper | the proper name of the child type |
ns | the C++ namespace for the type |
#define DECL_INHERITED_XMLOBJECT_ATTRIB | ( | proper, | |
upcased, | |||
type | |||
) |
Declares abstract set method for a typed XML attribute.
The get method is omitted.
proper | the proper name of the attribute |
upcased | the upcased name of the attribute |
type | the attribute's data type |
#define DECL_INTEGER_ATTRIB | ( | proper, | |
upcased | |||
) |
Declares abstract get/set methods for an integer XML attribute.
proper | the proper name of the attribute |
upcased | the upcased name of the attribute |
#define DECL_INTEGER_CONTENT | ( | proper | ) |
Declares aliased get/set methods for named integer XML element content.
proper | the proper name to label the element's content |
#define DECL_SIMPLE_CONTENT | ( | proper | ) |
Declares aliased get/set methods for named XML element simple content.
proper | the proper name to label the element's content |
#define DECL_STRING_ATTRIB | ( | proper, | |
upcased | |||
) | DECL_XMLOBJECT_ATTRIB(proper,upcased,XMLCh) |
Declares abstract get/set methods for a string XML attribute.
proper | the proper name of the attribute |
upcased | the upcased name of the attribute |
#define DECL_TYPE_QNAME |
Declares a static variable holding the XMLObject's schema type QName.
#define DECL_TYPED_CHILD | ( | proper | ) |
Declares abstract get/set methods for a typed XML child object.
proper | the proper name of the child type |
#define DECL_TYPED_CHILDREN | ( | proper | ) |
Declares abstract get/set methods for a typed XML child collection.
proper | the proper name of the child type |
#define DECL_TYPED_FOREIGN_CHILD | ( | proper, | |
ns | |||
) |
Declares abstract get/set methods for a typed XML child object in a foreign namespace.
proper | the proper name of the child type |
ns | the C++ namespace for the type |
#define DECL_TYPED_FOREIGN_CHILDREN | ( | proper, | |
ns | |||
) |
Declares abstract get/set methods for a typed XML child collection in a foreign namespace.
proper | the proper name of the child type |
ns | the C++ namespace for the type |
#define DECL_XMLOBJECT_ABSTRACT | ( | linkage, | |
cname, | |||
base, | |||
desc | |||
) |
Begins the declaration of an XMLObject specialization for an abstract element/type.
Basic boilerplate includes a protected constructor, empty virtual destructor, and Unicode constants for the default associated element's name and prefix.
linkage | linkage specifier for the class |
cname | the name of the class to declare |
base | the base class to derive from using public virtual inheritance |
desc | documentation comment for class |
#define DECL_XMLOBJECT_ATTRIB | ( | proper, | |
upcased, | |||
type | |||
) |
Declares abstract get/set methods for a typed XML attribute.
proper | the proper name of the attribute |
upcased | the upcased name of the attribute |
type | the attribute's data type |
#define DECL_XMLOBJECT_CHILD | ( | proper | ) |
Declares abstract get/set methods for a generic XML child object.
proper | the proper name of the child |
#define DECL_XMLOBJECT_CHILDREN | ( | proper | ) |
Declares abstract get/set methods for a generic XML child collection.
proper | the proper name of the child |
#define DECL_XMLOBJECT_SIMPLE | ( | linkage, | |
cname, | |||
proper, | |||
desc | |||
) |
Declares an XMLObject specialization with a simple content model and type, handling it as string data.
linkage | linkage specifier for the class |
cname | the name of the XMLObject specialization |
proper | the proper name to label the element's content |
desc | documentation for class |
#define DECL_XMLOBJECTBUILDER | ( | linkage, | |
cname, | |||
namespaceURI, | |||
namespacePrefix | |||
) |
Declares a generic XMLObjectBuilder specialization.
linkage | linkage specifier for the class |
cname | the name of the XMLObject specialization |
namespaceURI | the XML namespace of the default associated element |
namespacePrefix | the XML namespace prefix of the default associated element |
#define DECL_XMLOBJECTIMPL_SIMPLE | ( | linkage, | |
cname | |||
) |
Declares and defines an implementation class for an XMLObject with a simple content model and type, handling it as string data.
linkage | linkage specifier for the class |
cname | the name of the XMLObject specialization |
#define IMPL_BOOLEAN_ATTRIB | ( | proper | ) |
Implements get/set methods and a private member for a boolean XML attribute.
proper | the proper name of the attribute |
#define IMPL_DATETIME_ATTRIB | ( | proper, | |
fallback | |||
) | IMPL_DATETIME_ATTRIB_EX(proper,fallback,false) |
Implements get/set methods and a private member for a DateTime XML attribute.
proper | the proper name of the attribute |
fallback | epoch to return when attribute is NULL |
#define IMPL_DATETIME_ATTRIB_EX | ( | proper, | |
fallback, | |||
duration | |||
) |
Implements get/set methods and a private member for a DateTime XML attribute.
proper | the proper name of the attribute |
fallback | epoch to return when attribute is NULL |
duration | true iff the attribute should be handled as a duration |
#define IMPL_DURATION_ATTRIB | ( | proper, | |
fallback | |||
) | IMPL_DATETIME_ATTRIB_EX(proper,fallback,true) |
Implements get/set methods and a private member for a duration-valued DateTime XML attribute.
proper | the proper name of the attribute |
fallback | epoch to return when attribute is NULL |
#define IMPL_ELEMENT_QNAME | ( | cname, | |
namespaceURI, | |||
namespacePrefix | |||
) | xmltooling::QName cname::ELEMENT_QNAME(namespaceURI,cname::LOCAL_NAME,namespacePrefix) |
Implements a static variable holding an XMLObject's element QName.
cname | the name of the XMLObject specialization |
namespaceURI | the XML namespace of the default associated element |
namespacePrefix | the XML namespace prefix of the default associated element |
#define IMPL_ID_ATTRIB | ( | proper | ) |
Implements get/set methods and a private member for a string XML attribute, plus a getXMLID override.
proper | the proper name of the attribute |
#define IMPL_ID_ATTRIB_EX | ( | proper, | |
ucase, | |||
namespaceURI | |||
) |
Implements get/set methods and a private member for a string XML attribute, plus a getXMLID override and attribute node clearance when DOM is dropped.
proper | the proper name of the attribute |
ucase | the upcased name of the attribute |
namespaceURI | the XML namespace of the attribute |
#define IMPL_INTEGER_ATTRIB | ( | proper | ) |
Implements get/set methods and a private member for an integer XML attribute.
proper | the proper name of the attribute |
#define IMPL_STRING_ATTRIB | ( | proper | ) | IMPL_XMLOBJECT_ATTRIB(proper,XMLCh) |
Implements get/set methods and a private member for a string XML attribute.
proper | the proper name of the attribute |
#define IMPL_TYPE_QNAME | ( | cname, | |
namespaceURI, | |||
namespacePrefix | |||
) | xmltooling::QName cname::TYPE_QNAME(namespaceURI,cname::TYPE_NAME,namespacePrefix) |
Implements a static variable holding an XMLObject's schema type QName.
cname | the name of the XMLObject specialization |
namespaceURI | the XML namespace of the default associated element |
namespacePrefix | the XML namespace prefix of the default associated element |
#define IMPL_TYPED_CHILD | ( | proper | ) |
Implements get/set methods and a private list iterator member for a typed XML child object.
proper | the proper name of the child type |
#define IMPL_TYPED_CHILDREN | ( | proper, | |
fence | |||
) |
Implements get method and a private vector member for a typed XML child collection.
proper | the proper name of the child type |
fence | insertion fence for new objects of the child collection in backing list |
#define IMPL_TYPED_FOREIGN_CHILD | ( | proper, | |
ns | |||
) |
Implements get/set methods and a private list iterator member for a typed XML child object in a foreign namespace.
proper | the proper name of the child type |
ns | the C++ namespace for the type |
#define IMPL_TYPED_FOREIGN_CHILDREN | ( | proper, | |
ns, | |||
fence | |||
) |
Implements get method and a private vector member for a typed XML child collection in a foreign namespace.
proper | the proper name of the child type |
ns | the C++ namespace for the type |
fence | insertion fence for new objects of the child collection in backing list |
#define IMPL_XMLOBJECT_ATTRIB | ( | proper, | |
type | |||
) |
Implements get/set methods and a private member for a typed XML attribute.
proper | the proper name of the attribute |
type | the attribute's data type |
#define IMPL_XMLOBJECT_CHILD | ( | proper | ) |
Implements get/set methods and a private list iterator member for a generic XML child object.
proper | the proper name of the child |
#define IMPL_XMLOBJECT_CHILDREN | ( | proper, | |
fence | |||
) |
Implements get method and a private vector member for a generic XML child collection.
proper | the proper name of the child |
fence | insertion fence for new objects of the child collection in backing list |
#define IMPL_XMLOBJECT_CLONE | ( | cname | ) |
Implements cloning methods for an XMLObject specialization implementation class.
cname | the name of the XMLObject specialization |
#define IMPL_XMLOBJECT_FOREIGN_ATTRIB | ( | proper, | |
type | |||
) |
Implements get/set methods and a private member for a typed, qualified XML attribute.
proper | the proper name of the attribute |
type | the attribute's data type |
#define IMPL_XMLOBJECTBUILDER | ( | cname | ) |
Implements the standard XMLObjectBuilder specialization function.
cname | the name of the XMLObject specialization |
#define MAKE_NONCOPYABLE | ( | type | ) |
Blocks copy c'tor and assignment operator for a class.
#define MARSHALL_BOOLEAN_ATTRIB | ( | proper, | |
ucase, | |||
namespaceURI | |||
) |
Implements marshalling for a boolean attribute.
proper | the proper name of the attribute |
ucase | the upcased name of the attribute |
namespaceURI | the XML namespace of the attribute |
#define MARSHALL_DATETIME_ATTRIB | ( | proper, | |
ucase, | |||
namespaceURI | |||
) |
Implements marshalling for a DateTime attribute.
proper | the proper name of the attribute |
ucase | the upcased name of the attribute |
namespaceURI | the XML namespace of the attribute |
#define MARSHALL_ID_ATTRIB | ( | proper, | |
ucase, | |||
namespaceURI | |||
) |
Implements marshalling for an ID attribute.
proper | the proper name of the attribute |
ucase | the upcased name of the attribute |
namespaceURI | the XML namespace of the attribute |
#define MARSHALL_INTEGER_ATTRIB | ( | proper, | |
ucase, | |||
namespaceURI | |||
) |
Implements marshalling for an integer attribute.
proper | the proper name of the attribute |
ucase | the upcased name of the attribute |
namespaceURI | the XML namespace of the attribute |
#define MARSHALL_QNAME_ATTRIB | ( | proper, | |
ucase, | |||
namespaceURI | |||
) |
Implements marshalling for a QName attribute.
proper | the proper name of the attribute |
ucase | the upcased name of the attribute |
namespaceURI | the XML namespace of the attribute |
#define MARSHALL_STRING_ATTRIB | ( | proper, | |
ucase, | |||
namespaceURI | |||
) |
Implements marshalling for a string attribute.
proper | the proper name of the attribute |
ucase | the upcased name of the attribute |
namespaceURI | the XML namespace of the attribute |
#define PROC_BOOLEAN_ATTRIB | ( | proper, | |
ucase, | |||
namespaceURI | |||
) | PROC_STRING_ATTRIB(proper,ucase,namespaceURI) |
Implements unmarshalling process branch for a boolean attribute.
proper | the proper name of the attribute |
ucase | the upcased name of the attribute |
namespaceURI | the XML namespace of the attribute |
#define PROC_DATETIME_ATTRIB | ( | proper, | |
ucase, | |||
namespaceURI | |||
) | PROC_STRING_ATTRIB(proper,ucase,namespaceURI) |
Implements unmarshalling process branch for a DateTime attribute.
proper | the proper name of the attribute |
ucase | the upcased name of the attribute |
namespaceURI | the XML namespace of the attribute |
#define PROC_ID_ATTRIB | ( | proper, | |
ucase, | |||
namespaceURI | |||
) |
Implements unmarshalling process branch for an ID attribute.
proper | the proper name of the attribute |
ucase | the upcased name of the attribute |
namespaceURI | the XML namespace of the attribute |
#define PROC_INTEGER_ATTRIB | ( | proper, | |
ucase, | |||
namespaceURI | |||
) | PROC_STRING_ATTRIB(proper,ucase,namespaceURI) |
Implements unmarshalling process branch for an integer attribute.
proper | the proper name of the attribute |
ucase | the upcased name of the attribute |
namespaceURI | the XML namespace of the attribute |
#define PROC_QNAME_ATTRIB | ( | proper, | |
ucase, | |||
namespaceURI | |||
) |
Implements unmarshalling process branch for a DateTime attribute.
proper | the proper name of the attribute |
ucase | the upcased name of the attribute |
namespaceURI | the XML namespace of the attribute |
#define PROC_STRING_ATTRIB | ( | proper, | |
ucase, | |||
namespaceURI | |||
) |
Implements unmarshalling process branch for a string attribute.
proper | the proper name of the attribute |
ucase | the upcased name of the attribute |
namespaceURI | the XML namespace of the attribute |
#define PROC_TYPED_CHILD | ( | proper, | |
namespaceURI, | |||
force | |||
) |
Implements unmarshalling process branch for typed child singleton element.
proper | the proper name of the child type |
namespaceURI | the XML namespace of the child element |
force | bypass use of hint and just cast down to check child |
#define PROC_TYPED_CHILDREN | ( | proper, | |
namespaceURI, | |||
force | |||
) |
Implements unmarshalling process branch for typed child collection element.
proper | the proper name of the child type |
namespaceURI | the XML namespace of the child element |
force | bypass use of hint and just cast down to check child |
#define PROC_TYPED_FOREIGN_CHILD | ( | proper, | |
ns, | |||
namespaceURI, | |||
force | |||
) |
Implements unmarshalling process branch for typed child singleton element in a foreign namespace.
proper | the proper name of the child type |
ns | the C++ namespace for the type |
namespaceURI | the XML namespace of the child element |
force | bypass use of hint and just cast down to check child |
#define PROC_TYPED_FOREIGN_CHILDREN | ( | proper, | |
ns, | |||
namespaceURI, | |||
force | |||
) |
Implements unmarshalling process branch for typed child collection element in a foreign namespace.
proper | the proper name of the child type |
ns | the C++ namespace for the type |
namespaceURI | the XML namespace of the child element |
force | bypass use of hint and just cast down to check child |
#define PROC_XMLOBJECT_CHILD | ( | proper, | |
namespaceURI | |||
) |
Implements unmarshalling process branch for a generic child singleton element.
proper | the proper name of the child type |
namespaceURI | the XML namespace of the child element |
#define XMLOBJECTVALIDATOR_CHECKTYPE | ( | cname | ) |
Validator code that checks the object type.
cname | the name of the XMLObject specialization |
#define XMLOBJECTVALIDATOR_NONEMPTY | ( | cname, | |
proper | |||
) |
Validator code that checks for a non-empty collection.
cname | the name of the XMLObject specialization |
proper | the proper name of the collection item |
#define XMLOBJECTVALIDATOR_NONEORBOTH | ( | cname, | |
proper1, | |||
proper2 | |||
) |
Validator code that checks a co-constraint (if one present, the other must be) between a pair of attributes, content, or singletons.
cname | the name of the XMLObject specialization |
proper1 | the proper name of the first attribute, content, or singleton member |
proper2 | the proper name of the second attribute, content, or singleton member |
#define XMLOBJECTVALIDATOR_ONEOF | ( | cname, | |
proper1, | |||
proper2 | |||
) |
Validator code that checks for one of a pair of required attributes, content, or singletons.
cname | the name of the XMLObject specialization |
proper1 | the proper name of the first attribute, content, or singleton member |
proper2 | the proper name of the second attribute, content, or singleton member |
#define XMLOBJECTVALIDATOR_ONEOF3 | ( | cname, | |
proper1, | |||
proper2, | |||
proper3 | |||
) |
Validator code that checks for one of a set of three required attributes, content, or singletons.
cname | the name of the XMLObject specialization |
proper1 | the proper name of the first attribute, content, or singleton member |
proper2 | the proper name of the second attribute, content, or singleton member |
proper3 | the proper name of the third attribute, content, or singleton member |
#define XMLOBJECTVALIDATOR_ONLYONEOF | ( | cname, | |
proper1, | |||
proper2 | |||
) |
Validator code that checks for one of a pair of required attributes, content, or singletons, but disallows both.
cname | the name of the XMLObject specialization |
proper1 | the proper name of the first attribute, content, or singleton member |
proper2 | the proper name of the second attribute, content, or singleton member |
#define XMLOBJECTVALIDATOR_ONLYONEOF3 | ( | cname, | |
proper1, | |||
proper2, | |||
proper3 | |||
) |
Validator code that checks for one of a set of three required attributes, content, or singletons but disallows more than one.
cname | the name of the XMLObject specialization |
proper1 | the proper name of the first attribute, content, or singleton member |
proper2 | the proper name of the second attribute, content, or singleton member |
proper3 | the proper name of the third attribute, content, or singleton member |
#define XMLOBJECTVALIDATOR_REQUIRE | ( | cname, | |
proper | |||
) |
Validator code that checks for a required attribute, content, or singleton.
cname | the name of the XMLObject specialization |
proper | the proper name of the attribute, content, or singleton member |
#define XMLOBJECTVALIDATOR_REQUIRE_INTEGER | ( | cname, | |
proper | |||
) |
Validator code that checks for a required integer attribute.
cname | the name of the XMLObject specialization |
proper | the proper name of the attribute, content, or singleton member |
#define XMLOBJECTVALIDATOR_SIMPLE | ( | linkage, | |
cname | |||
) |
Declares/defines a Validator specialization that checks object type and a non-empty simple content model.
linkage | linkage specifier for the class |
cname | the name of the XMLObject specialization |