Commit eb85befc authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

increased granularity of texts

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 4468
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 0a944512
......@@ -14,16 +14,19 @@
* REVISIONS and CHANGES
* - 07/09/2011 V1.0 Thomas Forbriger
* - 29/11/2011 V1.1 remove dependency to libtfxx
* - 24/01/2012 V1.2 increase granularity of receivable texts
*
* ============================================================================
*/
#define LIBDATRWXXINFO_VERSION \
"LIBDATRWXXINFO V1.1 present all online help to the user"
"LIBDATRWXXINFO V1.2 present all online help to the user"
#define LIBDATRWXXINFO_CVSID \
"$Id$"
#include <iostream>
#include <string>
#include <datrwxx/formats.h>
#include <datrwxx/formatmodifier.h>
using std::cout;
using std::cerr;
......@@ -31,18 +34,41 @@ using std::endl;
int main(int iargc, char* argv[])
{
cout << "This is libdatrwxxinfo" << endl;
cout << LIBDATRWXXINFO_VERSION << endl;
cout << LIBDATRWXXINFO_CVSID << endl;
cout << endl;
if (iargc>1)
{
datrw::online_help(argv[1], cout);
if (argv[1]==std::string("all"))
{
datrw::supported_data_types();
cout << endl;
datrw::online_help();
}
if (argv[1]==std::string("formats"))
{
datrw::supported_data_types();
cout << endl;
datrw::formatmodifiers::online_help(cout);
}
else
{
datrw::online_help(argv[1], cout);
}
}
else
{
datrw::supported_data_types();
cout << "The program takes one argument to control its output:" << endl;
cout << endl;
datrw::online_help();
cout << "libdatrwxx all\n"
<< " print all existing online help texts" << endl;
cout << endl;
cout << "libdatrwxx formats\n"
<< " summarize supported formats" << endl;
cout << endl;
cout << "libdatrwxx <format>\n"
<< " print online help text for format <format>" << endl;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment