The ITContainCvt interface

Base class: ITEssential

Decomposes an object into C++ base type instances. ITContainCvt is used by the ITContainerIter class to extract values from an object. ITContainCvt is to be used for objects that are naturally represented by base type arrays, such as a point list.

This interface provides the following methods.
Method Description
ITBool ConvertTo(long item, output_type &) Converts item to the output type. The output_type parameter must be one of the following types:
  • short
  • int
  • long
  • float
  • double
  • long double
  • const char *
  • ITString
  • bool (if supported by compiler)
  • ITInt8
long NumItems() Returns the number of items in this object.
ITBool ConvertFrom (long item, const type) Sets the value of the contained item from the value of the C++ type given as type.