| 
    ARC SDK
    
   | 
 
A Period represents a length of time. More...
#include <arc/DateTime.h>
Public Member Functions | |
| Period () | |
| Default constructor. The period is set to 0 length.  More... | |
| Period (time_t) | |
| Constructor that takes a time_t variable and stores it.  More... | |
| Period (time_t seconds, uint32_t nanoseconds) | |
| Constructor that takes seconds and nanoseconds and stores them.  More... | |
| Period (const std::string &, PeriodBase base=PeriodSeconds) | |
| Constructor that tries to convert a string.  More... | |
| Period & | operator= (time_t) | 
| Assignment operator from a time_t.  More... | |
| Period & | operator= (const Period &) | 
| Assignment operator from a Period.  More... | |
| void | SetPeriod (time_t sec) | 
| Sets the period in seconds.  More... | |
| void | SetPeriod (time_t sec, uint32_t nanosec) | 
| Sets the period in seconds and nanoseconds.  More... | |
| time_t | GetPeriod () const | 
| Gets the period in seconds.  More... | |
| uint32_t | GetPeriodNanoseconds () const | 
| Gets the number of nanoseconds after the last whole second.  More... | |
| const sigc::slot< const char * > * | istr () const | 
| For use with IString.  More... | |
| operator std::string () const | |
| Returns a string representation of the period.  More... | |
| bool | operator< (const Period &) const | 
| Comparing two Period objects.  More... | |
| bool | operator> (const Period &) const | 
| Comparing two Period objects.  More... | |
| bool | operator<= (const Period &) const | 
| Comparing two Period objects.  More... | |
| bool | operator>= (const Period &) const | 
| Comparing two Period objects.  More... | |
| bool | operator== (const Period &) const | 
| Comparing two Period objects.  More... | |
| bool | operator!= (const Period &) const | 
| Comparing two Period objects.  More... | |
| Period & | operator+= (const Period &) | 
A Period represents a length of time.
Period represents a length of time (eg 2 mins and 30.1 seconds), whereas Time represents a moment of time (eg midnight on 1st Jan 2000).
| Arc::Period::Period | ( | ) | 
Default constructor. The period is set to 0 length.
| Arc::Period::Period | ( | time_t | ) | 
Constructor that takes a time_t variable and stores it.
| Arc::Period::Period | ( | time_t | seconds, | 
| uint32_t | nanoseconds | ||
| ) | 
Constructor that takes seconds and nanoseconds and stores them.
| Arc::Period::Period | ( | const std::string & | , | 
| PeriodBase | base = PeriodSeconds  | 
        ||
| ) | 
Constructor that tries to convert a string.
| time_t Arc::Period::GetPeriod | ( | ) | const | 
Gets the period in seconds.
| uint32_t Arc::Period::GetPeriodNanoseconds | ( | ) | const | 
Gets the number of nanoseconds after the last whole second.
| const sigc::slot<const char*>* Arc::Period::istr | ( | ) | const | 
For use with IString.
| Arc::Period::operator std::string | ( | ) | const | 
Returns a string representation of the period.
| Period& Arc::Period::operator= | ( | time_t | ) | 
Assignment operator from a time_t.
Assignment operator from a Period.
| void Arc::Period::SetPeriod | ( | time_t | sec | ) | 
Sets the period in seconds.
| void Arc::Period::SetPeriod | ( | time_t | sec, | 
| uint32_t | nanosec | ||
| ) | 
Sets the period in seconds and nanoseconds.
 1.8.14