Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module User's Guide

13.10 Use the Capabilities of the Module!

By far the most common mistake is to not use the full power of the module. If you find yourself writing a little "helper" class, consider why you are doing it. Or, if what you are writing seems a little clumsy, then maybe there's a more elegant approach. A bit of searching through the Essential Tools Module manuals may uncover just the thing you are looking for!

Here is a surprisingly common example:

This program reads lines from a file specified on the command line and prints them to standard output. By using the full abilities of the RWCString class it could be greatly simplified as follows:

There are countless other such examples. The point is, if it looks awkward to you, most likely there's a better way!

Previous fileTop of DocumentContentsIndex pageNext file

©2004 Copyright Quovadx, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.