24 #ifndef TCLAP_CMD_LINE_OUTPUT_H 25 #define TCLAP_CMD_LINE_OUTPUT_H 39 class CmdLineInterface;
73 for (std::list<ArgGroup *>::const_iterator it = argSets.begin();
74 it != argSets.end(); ++it) {
75 if (std::find((*it)->begin(), (*it)->end(), arg) != (*it)->end()) {
83 const std::list<ArgGroup *> &argSets) {
84 for (std::list<Arg *>::iterator it = argList.begin();
85 it != argList.end();) {
87 it = argList.erase(it);
96 size_t p = s.find_last_of(
"/\\");
97 if (p != std::string::npos) {
102 if (p == s.length() - 4) {
103 s.erase(s.length() - 4);
111 #endif // TCLAP_CMD_LINE_OUTPUT_H A virtual base class that defines the essential data for all arguments.
A simple class that defines and argument exception.
virtual void failure(CmdLineInterface &c, ArgException &e)=0
Generates some sort of output for a failure.
void removeArgsInArgGroups(std::list< Arg *> &argList, const std::list< ArgGroup *> &argSets)
bool isInArgGroup(const Arg *arg, const std::list< ArgGroup *> &argSets)
virtual void usage(CmdLineInterface &c)=0
Generates some sort of output for the USAGE.
std::string basename(std::string s)
virtual ~CmdLineOutput()
Virtual destructor.
The base class that manages the command line definition and passes along the parsing to the appropria...
virtual void version(CmdLineInterface &c)=0
Generates some sort of output for the version.
The interface that any output object must implement.