|
#include <WSBasicTypes.h>
Public Member Functions | |
| WSBasicType ()=default | |
| WSBasicType (const char *name, bool optional) | |
| WSBasicType (const WSBasicType &other)=default | |
| WSBasicType (WSBasicType &&other) noexcept=default | |
| WSBasicType & | operator= (const WSBasicType &other) |
| WSBasicType & | operator= (WSBasicType &&other) noexcept |
| bool | optional () const |
| void | optional (bool opt) |
| void | clear () override |
| void | load (const xdoc::SNode &attr, bool nullLargeData) override |
| virtual void | load (const String &attr) |
| virtual void | load (const Field &field) |
| virtual | operator String () const |
| String | asString () const override |
| auto | asInteger () const |
| auto | asInt64 () const |
| auto | asFloat () const |
| auto | asBool () const |
| void | setInteger (int32_t _value) |
| void | setInt64 (int64_t _value) |
| void | setFloat (bool _value) |
| void | setBool (bool _value) |
| void | setBuffer (const char *buffer, size_t size) |
| bool | isNull () const override |
| void | throwIfNull (const String &parentTypeName) const |
| size_t | dataSize () const |
| VariantDataType | dataType () const |
| void | setNull () |
| Variant & | value () |
| const Variant & | value () const |
| void | exportTo (const xdoc::SNode &parent, const char *name=nullptr) const override |
Public Member Functions inherited from sptk::WSType | |
| WSType ()=default | |
| WSType (const char *name) | |
| WSType (const WSType &)=default | |
| WSType (WSType &&) noexcept=default | |
| WSType & | operator= (const WSType &) |
| WSType & | operator= (WSType &&) noexcept |
| virtual String | className () const |
| virtual String | name () const |
| virtual void | owaspCheck (const String &value) |
| virtual void | clear ()=0 |
| virtual void | load (const xdoc::SNode &attr, bool nullLargeData=false)=0 |
| virtual String | asString () const |
| virtual bool | isNull () const =0 |
| virtual void | exportTo (const xdoc::SNode &parent, const char *name=nullptr) const =0 |
Protected Member Functions | |
| void | setNull (VariantDataType dataType) |
| virtual VariantDataType | defaultDataType () const |
| Default data type. More... | |
Base type for all standard WSDL types
|
default |
Constructor
|
inline |
Constructor
| name | WSDL element name |
| optional | Element optionality flag |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Clears content (sets to NULL)
Implements sptk::WSType.
|
inlineprotectedvirtual |
Default data type.
Used in clear operations
Reimplemented in sptk::WSString, sptk::WSBool, sptk::WSDate, sptk::WSDateTime, sptk::WSDouble, and sptk::WSInteger.
References VAR_NONE.
|
overridevirtual |
Adds an element to response XML with this object data
| parent | Parent XML element |
| name | Optional name for child element |
Implements sptk::WSType.
|
inlineoverridevirtual |
Implements sptk::WSType.
|
inlinevirtual |
Loads type data from database field
| field | Database field |
Reimplemented in sptk::WSString, sptk::WSBool, sptk::WSDate, sptk::WSDateTime, sptk::WSDouble, and sptk::WSInteger.
|
inlinevirtual |
Loads type data from string
| attr | A string |
Reimplemented in sptk::WSString, sptk::WSBool, sptk::WSDate, sptk::WSDateTime, sptk::WSDouble, and sptk::WSInteger.
|
inlineoverridevirtual |
Loads type data from request XML node
| attr | XML node |
Implements sptk::WSType.
Reimplemented in sptk::WSString, sptk::WSBool, sptk::WSDate, sptk::WSDateTime, sptk::WSDouble, and sptk::WSInteger.
References VAR_STRING.
|
inlinevirtual |
Returns element name
Reimplemented in sptk::WSString.
|
inline |
Return true if value is optional
|
inline |
Sets optionality flag
| opt | Element optionality flag |
| void sptk::WSBasicType::throwIfNull | ( | const String & | parentTypeName | ) | const |
Throw SOAPException is the object is null
| parentTypeName | Parent object type name |