b01bd93a2017c23a87cd57b459785ba672bf5b64
Add the following classes in the 'simgear' namespace: - CharArrayStreambuf subclass of std::streambuf stream buffer - ROCharArrayStreambuf subclass of CharArrayStreambuf stream buffer - CharArrayIStream subclass of std::istream input stream - CharArrayOStream subclass of std::ostream output stream - CharArrayIOStream subclass of std::iostream input/output stream CharArrayStreambuf is a stream buffer class allowing to read from, and write to char arrays (std::strstream has been deprecated since C++98). Contrary to std::strstream, this class does no dynamic allocation: it is very simple, strictly staying for both reads and writes within the limits of the buffer specified in the constructor. Contrary to std::stringstream, CharArrayStreambuf allows one to work on an array of char (that could be static data or on the stack) without having to make a whole copy of it. CharArrayStreambuf supports reading and writing (including efficient implementations of xsgetn() and xsputn()), seeking (with independent read and write stream pointers, as for std::stringstream) and putting back chars up to the beginning of the char array. The internal buffer for both reads and writes is defined to be the whole buffer specified in the constructor call. As a consequence, flushing the stream buffer with pubsync() is useless: data is always written directly to the buffer passed to the constructor, never to an intermediate buffer. Of course, this buffer must remain available as long as the stream buffer object is used. ROCharArrayStreambuf is a read-only subclass of CharArrayStreambuf. CharArrayIStream, CharArrayOStream and CharArrayIOStream are very simple convenience stream classes using either CharArrayStreambuf or ROCharArrayStreambuf as their stream buffer class.
SimGear - Simulator Construction Tools ====================================== http://www.flightgear.org SimGear is a set of open-source libraries designed to be used as building blocks for quickly assembling 3d simulations, games, and visualization applications. SimGear is developed by the FlightGear project and also provides the base for the FlightGear Flight Simulator. Source code for SimGear is released under the GNU Library General Public License (LGPL) - see COPYING for license details. See INSTALL file for help on building SimGear.
Description
Languages
C++
85.5%
C
13.1%
CMake
1.4%