SH::ShVariantCast Struct Reference

Inheritance diagram for SH::ShVariantCast:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~ShVariantCast ()
virtual void getCastTypes (ShValueType &dest, ShDataType &destDT, ShValueType &src, ShDataType &srcDT) const =0
virtual void getDestTypes (ShValueType &valueType, ShDataType &dataType) const =0
 Returns whether the destination of this caster matches the given types.
virtual void doCast (ShVariant *dest, const ShVariant *src) const =0
 Casts data from src into dest.

Detailed Description

Definition at line 36 of file ShVariantCast.hpp.


Member Function Documentation

virtual void SH::ShVariantCast::doCast ShVariant dest,
const ShVariant src
const [pure virtual]
 

Casts data from src into dest.

src must have Src value type and SrcDT data type. dest similarly must match Dest and DestDT. Also, must guarantee dest != src (it will work if they are the same but what a waste...)

Implemented in SH::ShDataVariantCast< Dest, DestDT, Src, SrcDT >.


The documentation for this struct was generated from the following file:
Generated on Wed Nov 9 15:36:52 2005 for Sh by  doxygen 1.4.5