Format Lite |
|
This library in not part of Boost.
This library is a lightweight, easy-to-learn framework for formatting data structures such as standard library containers and Boost tuples. It provides a reasonable degree of customizability with an emphasis on human-readable output formats useful for testing and debugging.
A future version of Format Lite could be a candidate for incorporation into C++0x, to compensate for the lack of standard iostreams inserters and extractors for standard library containers, and to make existing inserters and extractors — such as those provided in <complex> — more flexible.
Format lite provides three function templates:
boost::io::punctuate, used to specify punctuation sequences and options for line-breaks and indentation.
operator<<, used to insert ranges and tuple-like objects into standard output streams.
operator>>, used to extract ranges and tuple-like objects from standard input streams.
Format lite was inspired by Reece Dunne's Output Formatters Library.
| format_lite.zip | (87 KB) | |
| format_lite.tar.gz | (45 KB) |
You can contact the author, Jonathan Turkanis, at turkanis@coderage.com.
Revised 20 May, 2004
© Copyright Jonathan D. Turkanis, 2004
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)