Base interface for accessing typed values.
More...
#include <cppexpose/include/cppexpose/typed/TypeInterface.h>
Base interface for accessing typed values.
This interface allows for accessing typed values and their possible conversions. It is used for both properties and variants.
cppexpose::TypeInterface::TypeInterface |
( |
| ) |
|
virtual cppexpose::TypeInterface::~TypeInterface |
( |
| ) |
|
|
virtual |
virtual bool cppexpose::TypeInterface::isEnum |
( |
| ) |
const |
|
pure virtual |
Check if value is of enum-type.
- Returns
- 'true' if value is an enum, else 'false'
virtual bool cppexpose::TypeInterface::isArray |
( |
| ) |
const |
|
pure virtual |
Check if value is of array-type.
- Returns
- 'true' if value is an array, else 'false'
virtual bool cppexpose::TypeInterface::isVariant |
( |
| ) |
const |
|
pure virtual |
Check if value is of type cppexpose::Variant.
- Returns
- 'true' if value is a variant, else 'false'
virtual bool cppexpose::TypeInterface::isString |
( |
| ) |
const |
|
pure virtual |
Check if value is of type string.
- Returns
- 'true' if value is a string, else 'false'
virtual bool cppexpose::TypeInterface::isBool |
( |
| ) |
const |
|
pure virtual |
Check if value is of type bool.
- Returns
- 'true' if value is a bool, else 'false'
virtual bool cppexpose::TypeInterface::isNumber |
( |
| ) |
const |
|
pure virtual |
Check if value is a number.
- Returns
- 'true' if value is a number, else 'false'
virtual bool cppexpose::TypeInterface::isIntegral |
( |
| ) |
const |
|
pure virtual |
Check if value is an integral.
- Returns
- 'true' if value is a integral, else 'false'
virtual bool cppexpose::TypeInterface::isSignedIntegral |
( |
| ) |
const |
|
pure virtual |
Check if value is a signed integral.
- Returns
- 'true' if value is a signed integral, else 'false'
virtual bool cppexpose::TypeInterface::isUnsignedIntegral |
( |
| ) |
const |
|
pure virtual |
Check if value is an unsigned integral.
- Returns
- 'true' if value is an unsigned integral, else 'false'
virtual bool cppexpose::TypeInterface::isFloatingPoint |
( |
| ) |
const |
|
pure virtual |
Check if value is a floating point number.
- Returns
- 'true' if value is a floating point number, else 'false'
virtual Variant cppexpose::TypeInterface::toVariant |
( |
| ) |
const |
|
pure virtual |
Convert value into variant.
- Returns
- Variant representation of the value
virtual bool cppexpose::TypeInterface::fromVariant |
( |
const Variant & |
value | ) |
|
|
pure virtual |
Set value from variant.
- Parameters
-
- Returns
- 'true' if value could be set, else 'false'
virtual std::string cppexpose::TypeInterface::toString |
( |
| ) |
const |
|
pure virtual |
Convert value into string.
- Returns
- String representation of the value
virtual bool cppexpose::TypeInterface::fromString |
( |
const std::string & |
value | ) |
|
|
pure virtual |
Set value from string.
- Parameters
-
- Returns
- 'true' if value could be set, else 'false'
virtual bool cppexpose::TypeInterface::toBool |
( |
| ) |
const |
|
pure virtual |
Convert value into bool.
- Returns
- Converted value
virtual bool cppexpose::TypeInterface::fromBool |
( |
bool |
value | ) |
|
|
pure virtual |
Set value from bool.
- Parameters
-
- Returns
- 'true' if value could be set, else 'false'
virtual long long cppexpose::TypeInterface::toLongLong |
( |
| ) |
const |
|
pure virtual |
Convert value into long long.
- Returns
- Converted value
virtual bool cppexpose::TypeInterface::fromLongLong |
( |
long long |
value | ) |
|
|
pure virtual |
Set value from long long.
- Parameters
-
- Returns
- 'true' if value could be set, else 'false'
virtual unsigned long long cppexpose::TypeInterface::toULongLong |
( |
| ) |
const |
|
pure virtual |
Convert value into unsigned long long.
- Returns
- Converted value
virtual bool cppexpose::TypeInterface::fromULongLong |
( |
unsigned long long |
value | ) |
|
|
pure virtual |
Set value from unsigned long long.
- Parameters
-
- Returns
- 'true' if value could be set, else 'false'
virtual double cppexpose::TypeInterface::toDouble |
( |
| ) |
const |
|
pure virtual |
Convert value into double.
- Returns
- Converted value
virtual bool cppexpose::TypeInterface::fromDouble |
( |
double |
value | ) |
|
|
pure virtual |
Set value from double.
- Parameters
-
- Returns
- 'true' if value could be set, else 'false'
The documentation for this class was generated from the following file: