History log of /external/astl/src/ios_base.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f1112427006f4fd9b72cb46acd46ddbbf1e7b741 04-Feb-2010 Nicolas Catania <niko@google.com> Added basic support for the streams flags and iomanip.
/external/astl/src/ios_base.cpp
d1e702c1f745428a7bc53cbbd80b0c283ca52de1 03-Feb-2010 Nicolas Catania <niko@google.com> Added basic_ios abstraction and finished cout/cerr implementation.

basic_ios was missing. we should have:
ostream -> basic_ios -> ios_base

basic_ios's role is very minor for us, it just holds the streambuf where the
writes happen. In a real STL it does a bit more, it deals with the numerous
flags that can be set on a stream.

The ostream implementation is now complete since it can get
the streambuf from its base class to perform the 2 ops supported:
- flush()
- operator<<(char*)

The final piece was a concrete implementation of a streambuf to output the strings
to stdout or stderr.
This is done in a new class stdio_filebuf which wraps a regular stdio.h stream.
For cerr we use stderr to build the stdio_filebuf instance that cerr will wrap.
Same for cout and stdout.
/external/astl/src/ios_base.cpp
7c0a09a5022e5fb75b7a7dd6d68d4f811f6c462b 29-Jan-2010 Nicolas Catania <niko@google.com> In ostream, added code to do the one time init of the stdio streams.

The new inner class Init will be in charge of constructing the
streams cout and cerr.
/external/astl/src/ios_base.cpp
8974d36b49996aa59a926a53b830332890021e4c 24-Jan-2010 Nicolas Catania <niko@google.com> Basic support of the ios_base, the root of all streams.

Added skeleton for ostream and the iosfwd header files.
iomanip is referenced in the comment but not included in this CL.
/external/astl/src/ios_base.cpp