JWS C++ Library
C++ language utility library
option.h File Reference

Provides program option support via the command-line or an options file. More...

#include <jwsc++/config.h>
#include <iostream>
#include <list>
#include "jwsc++/base/exception.h"

Go to the source code of this file.

Classes

class  jwscxx::base::Option
 Base program option. More...
class  jwscxx::base::Option_with_arg
 Option that takes an argument. More...
class  jwscxx::base::Option_no_arg
 Option that does not take an argument. More...
class  jwscxx::base::Options
 Collection of Options for processing. More...

Namespaces

namespace  jwscxx
namespace  jwscxx::base

Detailed Description

Provides program option support via the command-line or an options file.

Author:
Joseph Schlecht
License:
Creative Commons BY-NC-SA 3.0

A program can use this option support by defining a collection of Options and then calling Options::process().

The options can be represented by a long or short name. Both can take an argument by defining an Option_with_arg. If no argument is called for, use Option_no_arg.

Definition in file option.h.