Constrain argument values to zero or positive values. More...
#include <CmdArgs.h>
Public Member Functions | |
virtual bool | check (const T &value) const |
virtual std::string | description () const |
virtual std::string | shortID () const |
ZeroOrPositiveValueConstraint (const std::string &typeDesc) | |
Protected Attributes | |
std::string | _typeDesc |
Constrain argument values to zero or positive values.
virtual bool sbia::basis::ZeroOrPositiveValueConstraint< T >::check | ( | const T & | value | ) | const [inline, virtual] |
The method used to verify that the value parsed from the command line meets the constraint.
value | - The value that will be checked. |
Implements TCLAP::Constraint< T >.
virtual std::string sbia::basis::ZeroOrPositiveValueConstraint< T >::description | ( | ) | const [inline, virtual] |
Returns a description of the Constraint.
Implements TCLAP::Constraint< T >.
virtual std::string sbia::basis::ZeroOrPositiveValueConstraint< T >::shortID | ( | ) | const [inline, virtual] |
Returns the short ID for the Constraint.
Implements TCLAP::Constraint< T >.