Xavax C++ Library | Class Index FAQ Overview |
Constructor Summary | |
Variant()
Construct a Variant with a null value. |
|
Variant(bool b)
Construct a Variant from a boolean value. |
|
Variant(int i)
Construct a Variant from an integer value |
|
Variant(unsigned int ui)
Construct a Variant from an unsigned integer value. |
|
Variant(double d)
Construct a Variant from a double precision floating point value. |
|
Variant(const char*)
Construct a Variant from a character pointer. |
|
Variant(const Variant& rhs)
Construct a Variant that is a copy of a Variant. |
Operator Summary | |
Variant&
|
operator=(const Variant& rhs)
Assign the value of a Variant to this Variant. |
Variant&
|
operator=(bool b)
Assign a boolean value to a Variant. |
Variant&
|
operator=(int i)
Assign an integer value to a Variant. |
Variant&
|
operator=(unsigned int ui)
Assign an unsigned integer value to a Variant. |
Variant&
|
operator=(double d)
Assign a double precision floating point value to a Variant. |
Variant&
|
operator=(const char* s)
Assign a character pointer to a Variant. |
bool
|
operator bool()
Return the value of a Variant as a boolean value. |
int
|
operator int()
Return the value of a Variant as an integer. |
unsigned
|
operator unsigned int()
Return the value of a Variant as an unsigned integer. |
double
| n
operator double()
Return the value of a Variant as a double precision floating point value. |
const
|
operator const char*()
Return the value of a Variant as a character pointer. |
Method Summary | |
VariantType
|
type()
Return the type of the value of this Variant. |
const char*
|
typeName()
Return the type name of the value of this Variant. |
const char*
|
typeName(unsigned int)
Return the type name for the specified type. |
Related Classes | |
Formatter |
Constructor Detail |
Variant()
Variant(bool b)
b
.
b
- the initial value of the Variant.Variant(int i)
i
.
i
- the initial value of the Variant.Variant(unsigned int ui)
ui
.
ui
- the initial value of the Variant.Variant(double d)
d
.
d
- the initial value of the Variant.Variant(const char* s)
s
.
s
- the initial value of the Variant.Variant(const Variant& gdr)
gdr
.
gdr
- the Variant to copy.
Operator Detail |
Variant& operator=(Variant& src)
src
to this Variant.src
- the Variant to be copied.Variant& operator=(bool b)
b
to this Variant.b
- the new value of this Variant.Variant& operator=(int i)
i
to this Variant.i
- the new value of this Variant.Variant& operator=(unsigned int ui)
ui
to this Variant.ui
- the new value of this Variant.Variant& operator=(double d)
d
to this Variant.d
- the new value of this Variant.Variant& operator=(const char*)
s
to this Variant.s
- the new value of this Variant.operator bool() const
operator int() const
operator unsigned int() const
operator double() const
operator const char*() const
Method Detail |
VariantType type() const
const char* typeName()
static const char* typeName(unsigned int type)
type
.
type
- a type
(see VariantType).
Example Code |
Copyright © 2003 Xavax Inc. -- All Rights Reserved