The iof library is currently capable of:
- All STL stream manipulations: alignment, number and boolean representation, padding/field width
- All printf/scanf formatting, except "%n" (STL streams don't either), using same codes
- Can use same marker syntax for all types (float, int, UDT, etc)
- Don't need to tell the type of object being output, works on stream format state entirely
- Centering (STL streams don't)
- Use any character as fill
- Apply formatting to several format markers
- Restore stream format state after format completed
- Restore stream format even if aborted by exception (esp. useful for input)
- Easy-to-use "stringizer" to create strings from formatted output
- Can use function calls instead of operators, if desired
- Doesn't require temporary instances of streams (except for some operations not supported by streams "out of the box", like centering)
- More information available about where/type of error, for formatted input
- Dynamic format specification
- Validates input characters specified in format string
- Stream character skipping as per the "ignore()" methods, uses similar syntax as printf/scanf
- Format guard available for cases where some non-iof format changes are required, but need to be "undone"
Some limitations:
- no support for printf()'s "%n" or "%*"
- no support (yet) for wchar
- no ordered parameters
Generated on Fri Nov 24 16:16:01 2006 for IOF Library by 1.5.1-p1
Thanks to for hosting