ICU 76.1 76.1
|
FormattableObject
is an abstract class that can be implemented in order to define an arbitrary class that can be passed to a custom formatter or selector function.
More...
#include <messageformat2_formattable.h>
Public Member Functions | |
virtual const UnicodeString & | tag () const =0 |
Returns an arbitrary string representing the type of this object. | |
virtual | ~FormattableObject () |
Destructor. | |
Public Member Functions inherited from icu::UObject | |
virtual | ~UObject () |
Destructor. | |
virtual UClassID | getDynamicClassID () const |
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. | |
FormattableObject
is an abstract class that can be implemented in order to define an arbitrary class that can be passed to a custom formatter or selector function.
To be passed in such a way, it must be wrapped in a Formattable
object.
Definition at line 46 of file messageformat2_formattable.h.
|
virtual |
Destructor.
|
pure virtual |
Returns an arbitrary string representing the type of this object.
It's up to the implementor of this class, as well as the implementors of any custom functions that rely on particular values of this tag corresponding to particular classes that the object contents can be downcast to, to ensure that the type tags are used soundly.