BDE 4.14.0 Production release
Loading...
Searching...
No Matches
s_baltst::BasicSchemaUtil Struct Reference

#include <s_baltst_basicschemautil.h>

Static Public Member Functions

template<class PARENT_TYPE , class CHILD_TYPE >
static bsl::enable_if<!bsl::is_const< PARENT_TYPE >::value &&IsElementOrSchema< PARENT_TYPE >::value &&IsElement< CHILD_TYPE >::value >::type append (PARENT_TYPE *parent, const CHILD_TYPE &element)
 
static void appendEnumeration (BasicSchemaRestrictionElement *parent, const bsl::string_view &value)
 
static bool areEqualUpToAnnotation (const BasicSchema &a, const BasicSchema &b)
 

Detailed Description

This utility struct provides a namespace for a suite of functions for non-primitive operations on s_baltst::BasicSchema objects.

Member Function Documentation

◆ append()

template<class PARENT_TYPE , class CHILD_TYPE >
bsl::enable_if<!bsl::is_const< PARENT_TYPE >::value &&BasicSchemaUtil::IsElementOrSchema< PARENT_TYPE >::value &&BasicSchemaUtil::IsElement< CHILD_TYPE >::value >::type s_baltst::BasicSchemaUtil::append ( PARENT_TYPE *  parent,
const CHILD_TYPE &  element 
)
static

Insert the specified element after the last element in the choice vector of the specified parent. This function participates in overload resolution if PARENT_TYPE is a non-const type for which IsElementOrSchema<PARENT_TYPE>::value is true and IsElement<CHILD_TYPE>::value is true.

◆ appendEnumeration()

void s_baltst::BasicSchemaUtil::appendEnumeration ( BasicSchemaRestrictionElement parent,
const bsl::string_view value 
)
static

Insert a s_baltst::EnumerationElement with the specified value after the last element in the choice vector of the specified parent.

◆ areEqualUpToAnnotation()

bool s_baltst::BasicSchemaUtil::areEqualUpToAnnotation ( const BasicSchema a,
const BasicSchema b 
)
static

Return true if the specified a and b are structurally equivalent except for the presence, absence, or order of annotations, and return false otherwise.


The documentation for this struct was generated from the following file: