- Hardcover: 672 pages
- Publisher: Addison-Wesley Professional; 1 edition (February 10, 2000)
- Language: English
- ISBN-10: 0201183951
- ISBN-13: 978-0201183955
- Product Dimensions: 7.6 x 1.6 x 9.4 inches
- Shipping Weight: 2.6 pounds (View shipping rates and policies)
- Average Customer Review: 22 customer reviews
- Amazon Best Sellers Rank: #1,609,023 in Books (See Top 100 in Books)
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
Standard C++ IOStreams and Locales: Advanced Programmer's Guide and Reference 1st Edition
Use the Amazon App to scan ISBNs and compare prices.
Frequently bought together
Customers who bought this item also bought
Aimed at the advanced C++ programmer, Standard C++ IOStreams and Locales explains the internals of how C++ streams work and provides support for internationalization. It explains the inner details of architecture and design of these important built-in C++ objects, and it's a reference to all relevant classes and methods.
This book effectively reveals the inner workings of the entire stream class library in today's Standard C++ in two ways: First, it explains the design principles and internal function of these stream classes, whether for simple console or file I/O or for more advanced topics like memory streams. There's coverage of I/O basics (manipulators, stream flags, and other built-in features) for everyday programming with streams. The book also does an excellent job of delving into the nitty-gritty details of these classes (which most of us know only on the surface). Examples include a custom date class that will cooperate with existing stream libraries and create new "facets"--output rules that customize data for particular languages or "locales."
Besides an in-depth guide to what streams do by default and some hints for adding your own classes to work with them, the text also contains over 200 pages of reference material on every C++ stream and locale class, organized by header files. (These sections will arguably be the most useful for the working C++ developer.)
Like the support for template classes, the Standard Library's support for streams is powerful but until now, anyway, not easily accessible to ordinary programmers. For anyone who already knows the fundamentals of streams and is seeking to do more, this title fills a useful niche. It is an authoritative and densely packed source of technical detail on built-in C++ classes. --Richard Dragan
Topics covered: Standard C++ predefined streams, input and output operators, manipulators, locale basics, formatted input, stream state flags, file streams, in-memory I/O, stream positioning, synchronizing streams, stream class architecture, stream buffer classes, character types, wide character support, stream and stream buffer iterators, custom stream classes for user-defined types, inserters and extractors, user-defined manipulators, customizing stream and stream buffer classes, internationalization and localization, standard facets, user-defined facets, stream and locale class reference.
"Langer and Kreft have an international book that applies to the United States and the rest of the world the way they address internationalization." -- C. Tondo, T&T TechWorks, Inc.
"The combination of usage guide and reference manual is good. This book is particularly relevant for anyone who needs to internationalize their programs input and output to exhibit reasonable and expected behavior, language, monetary and numeric formatting and syntax. In today's global economy, internationalized behavior is a highly desirable goal." -- Mary Dageforde, Dageforde Consulting
"This is THE book on streams. There is nothing whatsoever like this on the market, and anyone who needs to I18n/Localization will eat this up. I found these chapters readable and informative." -- Chuck Allison, Consulting Editor, C/C++ Users Journal
Top customer reviews
As this book points out, IOStreams is perhaps the most-overlooked part of standard C++. It has just as many features as the STL, and can help you write less, better code if you take advantage of it. If you have ever spent a few days writing a buffer class, you didn't have to; The IOStreams streambuf is comletely extensible and customizable.
Even better, IOStreams is a complex, high-performance library written by a C++ expert from Bell Labs. Most of us C++ programmers don't think about how IOStreams works, other than to write '<<' a few times. OO design doesn't get any better than that. This book is also an excellent case study on the IOStreams library, touching on the proper use of multiple inheritence, and the benefits of static type checking. If a library can be this efficient and extensible, while being as easy to use as typing '<<', there is something every C++ programmer can learn from its design.
The book is even endorsed by Jerry Schwarz, the man who invented IOStreams, and has a forward written by him. If you own two STL books, but not this book, I think you've made a mistake. This should be the third C++ book you buy, after a language reference and STL reference. It is that useful and interesting.
Pages 343-559 are a reference guide and are of marginal utility.
This book would be improved by giving more historical perspective on the development of iostreams.
There is now no reason ANY programmer should create a new ostream class by inheriting from basic_ostream<>. The I/O streams library was designed to be extended by programmers. Read this book and learn how to do it so that you don't have to re-write every sub member as a forward to the actual class.
As for Locales, there is a chapter in the latest version of B.S's book as an Appendix. Or about 1/4th of this book is devoted to how that mechanism works.
Buy it. You need it. Without it you are programming by guess and by golly.
The text has been a joy to read. Not exactly light reading but worth it. This book serves well as a tutorial and reference guide to the iostream. I haven't yet read the section on Locales but expect it to be of the same caliber.
The last time a C++ book had such an impression was "The Annotated C++ Reference Manual" of many years ago. This book ranks right up there.
Clearly, serious C++ developers will want to have this book in their C++ reference collection.
Most recent customer reviews
This book is not a tutorial or an introduction.Read more