d9cc3738b917bffb814b14ec12e1b991ccadb981
- Create "testfile" in a temporary directory (and make sure the temp dir and the file it contains are both removed when the test program exits). - Use test macros such as SG_CHECK_EQUAL() instead of by-hand checks and "return EXIT_FAILURE" statements. - Use sg_ofstream instead of plain std::ostream. This simplifies things a tiny bit, because one SGPath instance is enough to create both the sg_ofstream instance and the sg_gzifstream instance used afterwards to reread the created file. - Don't call (sg_)ofstream::close() at the end of the block the instance is declared in: this is entirely unnecessary, since sg_ofstream derives from std::ofstream, which is automatically close()d when destroyed (RAII behavior).
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%