| [Double] [Up] [Coord] | Data Types |
| User Feedback |
class String
{
public:
String();
String(const char *str);
String(const String& str);
~String();
String& operator=(const String& str);
};
The following public methods are intended for use by application programs:
String()
: default constructor
String(String&)
: copy constructor
String(char *)
: constructor from char *
~String()
: destructor
String& operator=
: assignment operator
The class String
is a proxy for the internal toolbox string type. It takes care of
chores like memory release and exception catching. When a toolbox function returns a string, an
object of this class is created to be returned to the caller. The object constructor catches
any error ocurred in the function implementation and, in case of error, throws a
morphException
.
See the code of the demonstrations for examples of use of the String
class.
| [Double] [Up] [Coord] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |