Classes | |
| class | Aseba::FormatableString |
| struct | Aseba::UnifiedTime |
| Time or durations, in milliseconds. More... | |
Functions | |
| FormatableString & | Aseba::FormatableString::arg (float value, int fieldWidth=0, int precision=6, char fillChar= ' ') |
| FormatableString & | Aseba::FormatableString::arg (unsigned value, int fieldWidth=0, int base=10, char fillChar= ' ') |
| FormatableString & | Aseba::FormatableString::arg (int value, int fieldWidth=0, int base=10, char fillChar= ' ') |
| void | Aseba::dumpTime (std::ostream &stream, bool raw=false) |
| Dump the current time to a stream. | |
| static UnifiedTime | Aseba::UnifiedTime::fromRawTimeString (const std::string &rawTimeString) |
| Return the time from the raw time string. | |
| FormatableString & | Aseba::FormatableString::operator= (const std::string &str) |
| void | Aseba::FormatableString::proceedReplace (const std::string &replacement) |
| void | Aseba::UnifiedTime::sleep () const |
| Sleep for this amount of time. | |
| std::string | Aseba::UnifiedTime::toHumanReadableStringFromEpoch () const |
| Create a human readable string with this time. | |
| std::string | Aseba::UnifiedTime::toRawTimeString () const |
| Return the raw time string representing this time. | |
| Aseba::UnifiedTime::UnifiedTime (Value seconds, Value milliseconds) | |
| Constructor, from a specific number of seconds and ms. | |
| Aseba::UnifiedTime::UnifiedTime (Value ms) | |
| Constructor, from a specific number of ms. | |
| Aseba::UnifiedTime::UnifiedTime () | |
| Constructor, set time to current time. | |
| FormatableString & Aseba::FormatableString::arg | ( | float | value, | |
| int | fieldWidth = 0, |
|||
| int | precision = 6, |
|||
| char | fillChar = ' ' | |||
| ) | [inherited] |
Replace the next arg by a float value.
| value | Value used to replace the current argument. | |
| fieldWidth | min width of the displayed number. | |
| precision | Number of digits displayed. | |
| fillChar | Character used to pad the number to reach fieldWidth. |
Definition at line 80 of file FormatableString.cpp.
| FormatableString & Aseba::FormatableString::arg | ( | unsigned | value, | |
| int | fieldWidth = 0, |
|||
| int | base = 10, |
|||
| char | fillChar = ' ' | |||
| ) | [inherited] |
Replace the next arg by an int value.
| value | Value used to replace the current argument. | |
| fieldWidth | min width of the displayed number | |
| base | Radix of the number (8, 10 or 16) | |
| fillChar | Character used to pad the number to reach fieldWidth |
Definition at line 64 of file FormatableString.cpp.
| FormatableString & Aseba::FormatableString::arg | ( | int | value, | |
| int | fieldWidth = 0, |
|||
| int | base = 10, |
|||
| char | fillChar = ' ' | |||
| ) | [inherited] |
Replace the next arg by an int value.
| value | Value used to replace the current argument. | |
| fieldWidth | min width of the displayed number | |
| base | Radix of the number (8, 10 or 16) | |
| fillChar | Character used to pad the number to reach fieldWidth |
Definition at line 48 of file FormatableString.cpp.
| void Aseba::dumpTime | ( | std::ostream & | stream, | |
| bool | raw = false | |||
| ) |
| UnifiedTime Aseba::UnifiedTime::fromRawTimeString | ( | const std::string & | rawTimeString | ) | [static, inherited] |
| FormatableString & Aseba::FormatableString::operator= | ( | const std::string & | str | ) | [inherited] |
Affects a new value to the format string and reset the arguments counter.
| str | New format string. |
Definition at line 97 of file FormatableString.cpp.
| void Aseba::FormatableString::proceedReplace | ( | const std::string & | replacement | ) | [private, inherited] |
Replace the next argument by replacement.
Definition at line 38 of file FormatableString.cpp.
| void Aseba::UnifiedTime::sleep | ( | ) | const [inherited] |
| std::string Aseba::UnifiedTime::toHumanReadableStringFromEpoch | ( | ) | const [inherited] |
| std::string Aseba::UnifiedTime::toRawTimeString | ( | ) | const [inherited] |
| Aseba::UnifiedTime::UnifiedTime | ( | Value | ms | ) | [inherited] |