#include <Variant.h>
Variant set methods and adaptors 22 methods
◆ VariantAdaptors() [1/2]
Copy constructor.
- Parameters
-
◆ VariantAdaptors() [2/2]
Move constructor.
- Parameters
-
◆ asBool()
bool sptk::VariantAdaptors::asBool |
( |
| ) |
const |
Conversion to bool
Converts variant string value with first char one of 'Y','y','T','t' to true, and one of 'N','n','F','f' to false. For the integer and float values, the value <=0 is false, and > 0 is true.
◆ asDate()
DateTime sptk::VariantAdaptors::asDate |
( |
| ) |
const |
Conversion method
Converts variant value to DateTime. The time part of CDdatetime is empty.
◆ asDateTime()
DateTime sptk::VariantAdaptors::asDateTime |
( |
| ) |
const |
Conversion method
Converts variant value to DateTime.
◆ asFloat()
double sptk::VariantAdaptors::asFloat |
( |
| ) |
const |
Conversion to double
Converts variant value to double.
◆ asImagePtr()
const uint8_t * sptk::VariantAdaptors::asImagePtr |
( |
| ) |
const |
Conversion method
Simply returns the internal data pointer for string/text/blob types. For incompatible types throws an exception.
◆ asInt64()
int64_t sptk::VariantAdaptors::asInt64 |
( |
| ) |
const |
Conversion method
Converts variant value to double.
◆ asInteger()
int sptk::VariantAdaptors::asInteger |
( |
| ) |
const |
Conversion method
Converts variant value to double.
◆ asString()
virtual String sptk::VariantAdaptors::asString |
( |
| ) |
const |
|
virtual |
◆ setBool()
virtual void sptk::VariantAdaptors::setBool |
( |
bool |
value | ) |
|
|
virtual |
◆ setBuffer()
◆ setData()
void sptk::VariantAdaptors::setData |
( |
const BaseVariant & |
other | ) |
|
|
protected |
Copies data from another CVariant
◆ setDateTime()
virtual void sptk::VariantAdaptors::setDateTime |
( |
DateTime |
value, |
|
|
bool |
dateOnly = false |
|
) |
| |
|
virtual |
◆ setExternalBuffer()
◆ setFloat()
virtual void sptk::VariantAdaptors::setFloat |
( |
double |
value | ) |
|
|
virtual |
◆ setImageNdx()
virtual void sptk::VariantAdaptors::setImageNdx |
( |
uint32_t |
value | ) |
|
|
virtual |
◆ setImagePtr()
virtual void sptk::VariantAdaptors::setImagePtr |
( |
const uint8_t * |
value | ) |
|
|
virtual |
◆ setInt64()
virtual void sptk::VariantAdaptors::setInt64 |
( |
int64_t |
value | ) |
|
|
virtual |
◆ setInteger()
virtual void sptk::VariantAdaptors::setInteger |
( |
int32_t |
value | ) |
|
|
virtual |
◆ setMoney() [1/2]
virtual void sptk::VariantAdaptors::setMoney |
( |
const MoneyData & |
value | ) |
|
|
virtual |
◆ setMoney() [2/2]
virtual void sptk::VariantAdaptors::setMoney |
( |
int64_t |
value, |
|
|
unsigned |
scale |
|
) |
| |
|
virtual |
◆ setNull()
Sets the NULL state
Useful for the database operations. Releases the memory allocated for string/text/blob types. Sets the data to zero(s).
- Parameters
-
vtype | Optional variant type to enforce |
◆ setString()
virtual void sptk::VariantAdaptors::setString |
( |
const String & |
value | ) |
|
|
virtual |
The documentation for this class was generated from the following file: