Class library support
The z/TPF system provides class library support for the following:
- A subset of the C++ classes of the Application Support Class Library. The classes provided
are:
- IDate
- The
IDateclass provides support for date information. You can constructIDateobjects in a number of ways and then useIDatemethods to determine the day of the week, month, or year, compare two dates, test a date for certain characteristics, and obtain the names of days or months that are dependent on the national language locale setting in effect at run time. - IException
- The
IExceptionclass is the base class from which all exception objects thrown in the library are derived. - IString
- The
IStringclass provides greater flexibility in handling strings than traditional C-style character arrays. TheIStringclass supports both single- and multiple-byte character sets. WithIStringobjects, you can code string-handling operations much more quickly. For example, you can concatenate two strings simply by using the +operator, or compare them using the == operator. - ITime
- The
ITimeclass creates time-of-day objects. You can compare the objects, add them together, remove specific information from them, or write them to an output stream. - ITimeStamp
- The
ITimeStampclass creates time-stamp objects. You can compare the objects, add them together, remove specific information from them, or write them to an output stream. - I0String
- The
I0Stringclass is identical to theIStringclass except in its method of indexing strings. In theIStringclass, the first character of a string is at position 1, whereas the same string when stored in anI0Stringobject has its first character at position 0.I0Stringis provided for programmers who are used to the C string-handling approach of treating strings as starting at position 0.IStringandI0Stringobjects are easily interchanged, and they support the same set of methods and operators.
Note: When you use the objects of the exception classes in the Application Support Class Library, the following series of messages can be displayed:
Where nnnn is the error number and string is the group associated with the error ID.Error ID is nnnn Error Code group is string Exception Text is: Refer to Class Library Support in z/TPF Application Programming.If the z/TPF message OPR-I094204 is displayed immediately following these messages, you can ignore it. This message is the result of the same error condition.
- The following header files, which are used by applications for Application Support Class Library (CPP3)
support:
idate.hppidecimal.hppiexcbase.hppistring.hppitime.hppitmstamp.hppi0string.hpp.
- The standard template library, which is shipped as part of the GNU standard C++ library (libstdc++).