Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Base class for value types. More...
#include <ilviews/base/value.h>
Inherited by IlvValueAntialiasingModeTypeClass, IlvValueAnyTypeClass, IlvValueArcModeTypeClass, IlvValueBitmapTypeClass, IlvValueBooleanTypeClass, IlvValueDirectionTypeClass, IlvValueDoubleTypeClass, IlvValueEnumTypeClass, IlvValueFillRuleTypeClass, IlvValueFillStyleTypeClass, IlvValueFloatArrayTypeClass, IlvValueFloatTypeClass, IlvValueInterfaceTypeClass, IlvValueIntTypeClass, IlvValueMethodTypeClass, IlvValueNoTypeClass, IlvValueNullTypeClass, IlvValuePointArrayTypeClass, IlvValueResourceTypeClass, IlvValueStringArrayTypeClass, IlvValueStringTypeClass, IlvValueTimeTypeClass, IlvValueUIntArrayTypeClass, and IlvValueUIntTypeClass.
Public Member Functions | |
virtual IlInt | compareValues (const IlvValue &v1, const IlvValue &v2) const |
Compares two values. | |
virtual void | copy (IlvValue &dest, const IlvValue &src) const |
Copies a value. | |
virtual IlvValue * | createValue (const char *name=0) const |
Creates a new value for this type. | |
virtual void | deleteValue (IlvValue &value) const |
Deletes the internals of a value. | |
virtual IlBoolean | fromString (IlvValue &value, const char *string, IlAny arg=0) const |
Converts a string to a value of this type. | |
virtual const char * | name () const |
Retrieves the name of this type. | |
virtual const char * | toString (const IlvValue &value) const |
Creates a textual representation of a value of this type. | |
Static Public Member Functions | |
static IlvValueTypeClass * | Get (const char *name) |
Get a type instance by name. | |
static IlvValueTypeClass ** | GetAll (IlUInt &count) |
Get all registered types. |
Base class for value types.
Library: views
This class handles the types that instances of IlvValue
can hold.
There are several predefined subtypes of IlvValueTypeClass
that let you manipulate all the basic types regularly used in Rogue Wave Views.
There is a unique instance of a type, and this instance is shared by all instances of IlvValue
that have this type.
virtual IlInt IlvValueTypeClass::compareValues | ( | const IlvValue & | v1, | |
const IlvValue & | v2 | |||
) | const [virtual] |
Compares two values.
Both value must have the type this
.
v1 | The first value to compare. | |
v2 | The second value to compare. |
IlTrue
if v1 and v2 are identical from this type's perspective. Copies a value.
dest | The destination value object that is set to a copy of src. | |
src | The source value. |
virtual IlvValue* IlvValueTypeClass::createValue | ( | const char * | name = 0 |
) | const [virtual] |
Creates a new value for this type.
name | The name of the value to be created. |
IlvValue
with the indicated name. virtual void IlvValueTypeClass::deleteValue | ( | IlvValue & | value | ) | const [virtual] |
Deletes the internals of a value.
If this type has stored information that needs cleanup, this member function is meant to do the job.
virtual IlBoolean IlvValueTypeClass::fromString | ( | IlvValue & | value, | |
const char * | string, | |||
IlAny | arg = 0 | |||
) | const [virtual] |
Converts a string to a value of this type.
value | The value that is set from a conversion of string. | |
string | The input string to be converted. | |
arg | An argument that may be necessary for the conversion to succeed. |
static IlvValueTypeClass* IlvValueTypeClass::Get | ( | const char * | name | ) | [static] |
Get a type instance by name.
name | The name of the type to retrieve. |
static IlvValueTypeClass** IlvValueTypeClass::GetAll | ( | IlUInt & | count | ) | [static] |
Get all registered types.
count | Is set to the number of returned types. |
IlPoolOf_ILVOPENPAR_Pointer_ILVCLOSEPAR_
. virtual const char* IlvValueTypeClass::name | ( | ) | const [virtual] |
Retrieves the name of this type.
virtual const char* IlvValueTypeClass::toString | ( | const IlvValue & | value | ) | const [virtual] |
Creates a textual representation of a value of this type.
value | The value whose textual representation is requested. |
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.