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 IDate class provides support for date information. You can construct IDate objects in a number of ways and then use IDate methods 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 IException class is the base class from which all exception objects thrown in the library are derived.
    IString
    The IString class provides greater flexibility in handling strings than traditional C-style character arrays. The IString class supports both single- and multiple-byte character sets. With IString objects, 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 ITime class 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 ITimeStamp class 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 I0String class is identical to the IString class except in its method of indexing strings. In the IString class, the first character of a string is at position 1, whereas the same string when stored in an I0String object has its first character at position 0. I0String is provided for programmers who are used to the C string-handling approach of treating strings as starting at position 0. IString and I0String objects 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:
    Error ID is nnnn
    Error Code group is string
    Exception Text is:
      Refer to Class Library Support in z/TPF Application Programming.
    Where nnnn is the error number and string is the group associated with the error ID.

    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.hpp
    • idecimal.hpp
    • iexcbase.hpp
    • istring.hpp
    • itime.hpp
    • itmstamp.hpp
    • i0string.hpp.
    All other header files shipped with the Application Support Class Library are for implementation only.
  • The standard template library, which is shipped as part of the GNU standard C++ library (libstdc++).