United States    
COMPAQ STORE | PRODUCTS |
SERVICES | SUPPORT | CONTACT US | SEARCH
C++
Compaq C++

Compaq C++
Class Library Reference Manual


Previous Contents Index


Chapter 1
Overview

The C++ Class Library is a set of headers and other files implementing a collection of basic C++ classes. In the library, these classes are arranged in functionally related groups called packages.

The C++ Class Library makes use of other run-time libraries.

Note

Identifiers beginning with cxxl or CXXL are reserved for the C++ Class Library and should not be used by customer programs except as specified in this manual.

Error message examples in this manual are displayed without their OpenVMS facility, error severity, or message identification code prefixes. You can achieve this result by entering the following DCL command:


$ set message/nofac/nosev/noid 

1.1 Thread Safe Programming

Developers of multithreaded applications should note the following:

1.2 Using RMS Attributes with iostreams

The Class Library class fstream constructors amd open() member function do not support different RMS attributes, for example, creating a stream-lf file.

To work around this restriction, use the C library creat() or open() call, which returns a file descriptor, and then use the fstream constructor, which accepts a file descriptor as its argument. For example:


 
 
#include <fstream.hxx> 
 
int main() 
{ 
  int fp; 
 
  // use either creat or open 
  //if ( !(fp= creat("output_file.test", 0, "rfm=stmlf")) ) 
 
  if ( !(fp= open("output_file.test", O_WRONLY | O_CREAT | O_TRUNC , 0, 
"rfm=stmlf")) ) 
    perror("open"); 
 
  ofstream output_file(fp); // use special constructor which takes 
                            // a file descriptor as argument 
  // ... 
} 
 

1.3 Class Library Restrictions

The following are restrictions in the C++ Class Library:


Previous Next Contents Index
  

1.800.AT.COMPAQ

privacy and legal statement