Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Introduction to HydraExpress
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

© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.