#include <WSBasicTypes.h>
Public Member Functions | |
WSBool () | |
WSBool (const String &name, bool optional) | |
WSBool (bool _value) | |
String | className () const override |
VariantDataType | defaultDataType () const override |
Default data type. More... | |
void | load (const xdoc::SNode &attr, bool nullLargeData) override |
void | load (const String &attr) override |
void | load (const Field &field) override |
virtual WSBool & | operator= (bool _value) |
operator bool () const | |
Public Member Functions inherited from sptk::WSBasicType | |
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 |
Additional Inherited Members | |
Protected Member Functions inherited from sptk::WSBasicType | |
void | setNull (VariantDataType dataType) |
virtual VariantDataType | defaultDataType () const |
Default data type. More... | |
Wrapper for WSDL bool type
|
inline |
Constructor
References VAR_BOOL.
|
inline |
|
inlineexplicit |
Constructor
value | Value |
optional | Element optionality flag |
|
inlineoverridevirtual |
Return class name
Reimplemented from sptk::WSType.
|
inlineoverridevirtual |
Default data type.
Used in clear operations
Reimplemented from sptk::WSBasicType.
References VAR_BOOL.
|
overridevirtual |
Loads type data from database field
field | Database field |
Reimplemented from sptk::WSBasicType.
|
overridevirtual |
|
overridevirtual |
Load data from XML node
attr | XML node |
nullLargeData | Set null for elements with data size > 256 bytes |
Reimplemented from sptk::WSBasicType.
|
inline |
Conversion operator
|
inlinevirtual |
Assignment operation