|
nidas v1.2.3
|
Class to contain prompt information - string and rate. More...
#include <Prompt.h>
Public Member Functions | |
| Prompt () | |
| void | setString (const std::string &val) |
| const std::string & | getString () const |
| void | setRate (const double val) |
| Set rate of desired prompting, in Hz (sec^-1). | |
| double | getRate () const |
| void | setOffset (const double val) |
| Set prompt offset in seconds. | |
| double | getOffset () const |
Private Attributes | |
| std::string | _promptString |
| double | _promptRate |
| double | _promptOffset |
Class to contain prompt information - string and rate.
|
inline |
|
inline |
References _promptOffset.
|
inline |
References _promptRate.
|
inline |
References _promptString.
Set prompt offset in seconds.
For example, for a rate of 10Hz, an offset of 0 would result in prompts at 0.0, 0.1, 0.2 seconds after each second. An offset of 0.01 would result in prompts at 0.01, 0.11, 0.21 seconds after the second.
References _promptOffset, and nidas::core::getSample().
Set rate of desired prompting, in Hz (sec^-1).
References _promptRate, and nidas::core::getSample().
References _promptString, and nidas::core::getSample().
|
private |
Referenced by getOffset(), and setOffset().
|
private |
Referenced by getString(), and setString().