IStringGeneratorasString

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: This class is used primarily by the Visual Builder. You would not normally use this class yourself.


IStringGeneratorasString - Member Functions and Data by Group

Constructors & Destructor

You would not normally create objects of this class.


[view class]
~IStringGeneratorasString
public:
virtual ~IStringGeneratorasString()

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
IStringGeneratorasString
public:
IStringGeneratorasString()

Create an instance of this string generator function that generates a string representation for objects of class T.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Generate String

Establishes the protocol for generating an IString for the object parameter. Subclasses implement this function to generate an IString for that object.


[view class]
stringFor
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.

element
Reference to the object against which it dispatches the member function.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IStringGeneratorasString - Inherited Member Functions and Data

Inherited Public Functions

IStringGeneratorFn
IMRefCounted

Inherited Public Data

Inherited Protected Functions

IMRefCounted

Inherited Protected Data