|
Click
|
Parser class for seconds and powers thereof. More...
#include <args.hh>
Public Member Functions | |
| SecondsArg (int d=0) | |
| bool | parse_saturating (const String &str, uint32_t &result, const ArgContext &args=blank_args) |
| bool | parse (const String &str, uint32_t &result, const ArgContext &args=blank_args) |
| bool | parse (const String &str, double &result, const ArgContext &args=blank_args) |
Public Attributes | |
| int | fraction_digits |
| int | status |
Additional Inherited Members | |
Public Types inherited from NumArg | |
| enum | { status_ok = 0 , status_inval = EINVAL , status_range = ERANGE , status_notsup , status_unitless } |
Parser class for seconds and powers thereof.
The d argument is the number of digits of fraction to parse. For example, to parse milliseconds, use SecondsArg(3).