DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Getting Started

Naming Conventions

C++ Standard Components do not use any special prefixing or suffixing conventions for user-visible class names; rather, the classes are given their simple, natural names (such as List, String, etc.). This provides superior succinctness and readability within the user's code, compared to a prefixing or suffixing scheme. Normally this would sometimes cause problems with conflicting names arising among other class libraries or application code.

However, Standards Components now use the new namespace feature of C++. All Standard Components (except fs and G2++) are declared in namespace SCO_SC. This is generally not reflected in the examples shown in this guide, however. As a convenience measure for compiling old code that uses Standard Components, compiling with -DVSING_SCO_SC will generate using directives of the form "using namespace SCO_SC;" at the end of each Standard Components header. This will allow you to compile existing code without changing it to reference the namespace.

Class and other global names that are not meant to be user-visible are suffixed with _ATTLC, to avoid any further name space conflicts.


Next topic: Classification of components
Previous topic: Where Are Some Other Components?

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004