Logo Search packages:      
Sourcecode: icu version File versions

virtual UClassID Format::getDynamicClassID (  )  const [pure virtual]

Returns a unique class ID POLYMORPHICALLY. Pure virtual method. This method is to implement a simple version of RTTI, since not all C++ compilers support genuine RTTI. Polymorphic operator==() and clone() methods call this method.

Concrete subclasses of Format must implement getDynamicClassID() and also a static method and data member:

static UClassID getStaticClassID() { return (UClassID) } static char fgClassID;

Returns:
The class ID for this object. All objects of a given class have the same class ID. Objects of other classes have different class IDs.

Implemented in ChoiceFormat, DecimalFormat, MessageFormat, NumberFormat, RuleBasedNumberFormat, and SimpleDateFormat.

Referenced by MessageFormat::format(), MessageFormat::makeFormat(), SimpleDateFormat::operator==(), RuleBasedNumberFormat::operator==(), NumberFormat::operator==(), MessageFormat::operator==(), DecimalFormat::operator==(), DateFormat::operator==(), ChoiceFormat::operator==(), and IntlTestSimpleDateFormatAPI::testAPI().


Generated by  Doxygen 1.6.0   Back to index