The IStringGeneratorasString template class is an IStringGeneratorFn-derived
class. It dispatches C++ member functions against an object
to generate an IString. It's purpose is to provide the same string generation
capability as IBase::asString(), which was to obtain the standard version of an
object's contents. (IBase is an obsolete class in this release of Open Class Library.
and IStringGenerator no
longer derives from it.)
Note:
Constructors & DestructorYou would not normally create objects of this class.
![]() |
public:
virtual ~IStringGeneratorasString()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IStringGeneratorasString()
Create an instance of this string generator function that generates a string representation for objects of class T.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Generate StringEstablishes the protocol for generating an IString for the object parameter. Subclasses implement this function to generate an IString for that object.
![]() |
public:
virtual IString stringFor(const T& element) const
Calls the appropriate member function on the object reference parameter. The returned string will be of the same form as returned by IBase::asString() in previous releases of Open Class Library.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
virtual ~IStringGeneratorFn()
IStringGeneratorFn()
virtual IString stringFor(const T& object) const = 0
void addRef()
unsigned long count() const
void removeRef()
virtual ~IMRefCounted()
IMRefCounted(const IMRefCounted&)
IMRefCounted()
IMRefCounted& operator =(const IMRefCounted&)