tclap
1.4.0
|
Interface that allows adding an Arg to a "container". More...
#include <ArgContainer.h>
Public Member Functions | |
virtual | ~ArgContainer () |
virtual ArgContainer & | add (Arg &a)=0 |
Adds an argument. More... | |
virtual ArgContainer & | add (Arg *a)=0 |
Adds an argument. More... | |
Interface that allows adding an Arg to a "container".
A container does not have to be a container in the C++ standard library sense, just something that wants to hold on to references to Arg's. The container does not own the added Arg's and it is the user's responsibility to ensure the life time (scope) of the Arg's outlives any operations on the container.
Definition at line 39 of file ArgContainer.h.
|
inlinevirtual |
Definition at line 41 of file ArgContainer.h.
References add().
|
pure virtual |
Adds an argument.
Ownership is not transfered.
a | - Argument to be added. |
Implemented in TCLAP::CmdLine, TCLAP::ExclusiveArgGroup, TCLAP::CmdLineInterface, and TCLAP::ArgGroup.
Referenced by TCLAP::MultiArg< T >::MultiArg(), TCLAP::MultiSwitchArg::MultiSwitchArg(), TCLAP::SwitchArg::SwitchArg(), TCLAP::UnlabeledMultiArg< T >::UnlabeledMultiArg(), TCLAP::ValueArg< T >::ValueArg(), and ~ArgContainer().
|
pure virtual |
Adds an argument.
Ownership is not transfered.
a | - Argument to be added. |
Implemented in TCLAP::CmdLine, TCLAP::ExclusiveArgGroup, TCLAP::CmdLineInterface, TCLAP::StandaloneArgs, and TCLAP::ArgGroup.