Separated string formatting used only for help.
authorTeemu Murtola <teemu.murtola@gmail.com>
Sat, 12 May 2012 03:17:30 +0000 (06:17 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Tue, 29 May 2012 13:56:41 +0000 (16:56 +0300)
commit8aef6a7cc5c03a09249bf193a1d69c3702935591
treef53eedc0352e575e0b4278979e02f2abc72fe4e7
parentdf50e838a94e5cef4e0b73be245d96e1948a6e52
Separated string formatting used only for help.

Moved string formatting routines used only in help printing to
src/gromacs/onlinehelp/ from src/gromacs/utility/format.*.
Also moved one function from cmdlinehelpwriter.cpp to the new file.
Subsequent commits will add more content to the new directory and will
use the same string formatting routines.

Added NOMINMAX define for Windows to avoid min/max macros.

Related to #666.

Change-Id: I9b52012df2fc718bc3d68c697140661a241a1467
14 files changed:
CMakeLists.txt
src/gromacs/CMakeLists.txt
src/gromacs/commandline/cmdlinehelpwriter.cpp
src/gromacs/onlinehelp/CMakeLists.txt [new file with mode: 0644]
src/gromacs/onlinehelp/helpformat.cpp [new file with mode: 0644]
src/gromacs/onlinehelp/helpformat.h [new file with mode: 0644]
src/gromacs/onlinehelp/tests/CMakeLists.txt [new file with mode: 0644]
src/gromacs/onlinehelp/tests/helpformat.cpp [new file with mode: 0644]
src/gromacs/onlinehelp/tests/refdata/TextTableFormatterTest_HandlesBasicCase.xml [moved from src/gromacs/utility/tests/refdata/TextTableFormatterTest_HandlesBasicCase.xml with 100% similarity]
src/gromacs/onlinehelp/tests/refdata/TextTableFormatterTest_HandlesEmptyColumns.xml [moved from src/gromacs/utility/tests/refdata/TextTableFormatterTest_HandlesEmptyColumns.xml with 100% similarity]
src/gromacs/onlinehelp/tests/refdata/TextTableFormatterTest_HandlesOverflowingLines.xml [moved from src/gromacs/utility/tests/refdata/TextTableFormatterTest_HandlesOverflowingLines.xml with 100% similarity]
src/gromacs/utility/format.cpp
src/gromacs/utility/format.h
src/gromacs/utility/tests/format.cpp