NAME
OTC_SObject -
Abstract base class for string type objects.
SYNOPSIS
#include <OTC/text/sobject.hh>
class OTC_SObject
{
protected:
OTC_SObject();
virtual ~OTC_SObject();
virtual OTC_RString rawString() const = 0;
};
CLASS TYPE
Abstract
DESCRIPTION
The OTC_SObject class serves as a base class for string type
objects which should not have the full OTC_String class
interface visible to users. This class makes the conversion
to an instance of OTC_String automatic without the derived
class having to provide a conversion operator to an instance
of OTC_String.
QUERY
virtual OTC_RString rawString() const = 0;
Must be redefined in a derived class
to return a raw string representation
of the derived class.
SEE ALSO
OTC_RString, OTC_String
LIBRARY
OTC
AUTHOR(S)
Graham Dumpleton
COPYRIGHT
Copyright 1994 TELSTRA CORPORATION LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED