Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

7.4 Creating a Localized Message

The constructor for rwsf::LocalizedMessage provides a mechanism for looking up a localized string based on it's identifier. For example:

You can then substitute any dynamic content using the replace() member function, or the templatized left shift operator (operator<<):

Finally, the localized, updated string can be accessed through the getMessage() member function:

For an example demonstrating throwing an rwsf::Exception containing an rwsf::LocalizedMessage, see Section 8.2.2.



Previous fileTop of DocumentContentsIndex pageNext file

©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave 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.