General helper functions and classes

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.

Detailed Description


Function Documentation

FormatableString & Aseba::FormatableString::arg ( float  value,
int  fieldWidth = 0,
int  precision = 6,
char  fillChar = ' ' 
) [inherited]

Replace the next arg by a float value.

Parameters:
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.
See also:
arg(const T& value)

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.

Parameters:
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
See also:
arg(const T& value)

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.

Parameters:
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
See also:
arg(const T& value)

Definition at line 48 of file FormatableString.cpp.

void Aseba::dumpTime ( std::ostream &  stream,
bool  raw = false 
)

Dump the current time to a stream.

Definition at line 115 of file utils.cpp.

UnifiedTime Aseba::UnifiedTime::fromRawTimeString ( const std::string &  rawTimeString  )  [static, inherited]

Return the time from the raw time string.

Definition at line 107 of file utils.cpp.

FormatableString & Aseba::FormatableString::operator= ( const std::string &  str  )  [inherited]

Affects a new value to the format string and reset the arguments counter.

Parameters:
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]

Sleep for this amount of time.

Definition at line 70 of file utils.cpp.

std::string Aseba::UnifiedTime::toHumanReadableStringFromEpoch (  )  const [inherited]

Create a human readable string with this time.

Definition at line 83 of file utils.cpp.

std::string Aseba::UnifiedTime::toRawTimeString (  )  const [inherited]

Return the raw time string representing this time.

Definition at line 98 of file utils.cpp.

Aseba::UnifiedTime::UnifiedTime ( Value  seconds,
Value  milliseconds 
) [inherited]

Constructor, from a specific number of seconds and ms.

Definition at line 65 of file utils.cpp.

Aseba::UnifiedTime::UnifiedTime ( Value  ms  )  [inherited]

Constructor, from a specific number of ms.

Definition at line 60 of file utils.cpp.

Aseba::UnifiedTime::UnifiedTime (  )  [inherited]

Constructor, set time to current time.

Definition at line 47 of file utils.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:05 2011