Click
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SecondsArg Class Reference

Parser class for seconds and powers thereof. More...

#include <args.hh>

Inheritance diagram for SecondsArg:
NumArg

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
}
 

Detailed Description

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).


The documentation for this class was generated from the following files: