#include <WSParserComplexType.h>
Public Member Functions | |
WSParserComplexType (const xdoc::SNode &complexTypeElement, const String &name="", const String &typeName="") | |
virtual | ~WSParserComplexType ()=default |
String | name () const |
String | className () const |
WSMultiplicity | multiplicity () const |
bool | isArray () const |
WSParserComplexTypeList | sequence () const |
SWSRestriction | restriction () const |
virtual void | parse () |
void | parseSequence (const xdoc::SNode &sequence) |
void | generate (std::ostream &classDeclaration, std::ostream &classImplementation, const String &externalHeader, const String &serviceNamespace) const |
Static Public Member Functions | |
static String | wsClassName (const String &className) |
static xdoc::SNode | findSimpleType (const String &typeName) |
Static Public Attributes | |
static std::map< String, xdoc::SNode > | SimpleTypeElements |
Protected Member Functions | |
void | generateDefinition (std::ostream &classDeclaration, sptk::Strings &fieldNames, sptk::Strings &elementNames, sptk::Strings &attributeNames, const String &serviceNamespace) const |
void | generateImplementation (std::ostream &classImplementation, const Strings &fieldNames, const Strings &elementNames, const Strings &attributeNames, const String &serviceNamespace) const |
Parses WSDL complexType element
|
explicit |
Constructor
complexTypeElement | WSDL complexType element |
name | Object name |
typeName | Object types |
|
virtualdefault |
Destructor
String sptk::WSParserComplexType::className | ( | ) | const |
Generated C++ class name
void sptk::WSParserComplexType::generate | ( | std::ostream & | classDeclaration, |
std::ostream & | classImplementation, | ||
const String & | externalHeader, | ||
const String & | serviceNamespace | ||
) | const |
Generates C++ class declaration and implementation
|
protected |
Generate C++ class declaration
classDeclaration | std::ostream&, Output header file stream |
|
protected |
Generate C++ class implementation
classImplementation | std::ostream&, Output implementation file stream |
|
inline |
Is the type an array?
References ONE_OR_MORE, and ZERO_OR_MORE.
|
inline |
Multiplicity flag
|
inline |
WSDL element name
|
virtual |
Parses WSDL complexType element
void sptk::WSParserComplexType::parseSequence | ( | const xdoc::SNode & | sequence | ) |
Parses WSDL child sequence
|
inline |
Get optional restriction
|
inline |
Get child elements sequence
WSDL class name