123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- #ifndef oPUTOPTV_SOURCE
- #define oPUTOPTV_SOURCE
- #include <iostream>
- #include <cstdlib>
- #include "../classes/ogetoptv.hpp"
- #include "../classes/oputoptv.hpp"
- oputoptv & oputoptv::print (char const * optv [])
- {
- extern char const * program_name;
- std::cout << "\n";
- std::cout << " purpose: " << optv [oPUTOPTV_I_PURPOSE] << std::endl << std::endl;
- std::cout << " command: " << program_name << " [options] " << optv [oPUTOPTV_I_COMMAND] << std::endl << std::endl;
- std::cout << " options: [" << optv [oPUTOPTV_I_OPTIONS] << "?!]" << std::endl << std::endl;
- for (int index = oPUTOPTV_I_DETAILS; optv [index] != (char *) (0); index++)
- {
- std::cout << " " << oGETOPTV_C_OPTIONS << optv [index] << std::endl;
- }
- std::cout << " " << oGETOPTV_C_OPTIONS << oGETOPTV_C_VERSION << "\tversion information" << std::endl;
- std::cout << " " << oGETOPTV_C_OPTIONS << oGETOPTV_C_SUMMARY << "\thelp summary" << std::endl << std::endl;
- return (*this);
- }
- oputoptv & oputoptv::print (char const * optv [], signed exitcode)
- {
- oputoptv::print (optv);
- std::exit (exitcode);
- }
- oputoptv::oputoptv ()
- {
- return;
- }
- oputoptv::~oputoptv ()
- {
- return;
- }
- #endif
|