Arc::Period Class Reference

Public Member Functions

 Period ()
 Period (time_t)
 Period (time_t seconds, uint32_t nanoseconds)
 Period (const std::string &, PeriodBase base=PeriodSeconds)
Periodoperator= (time_t)
Periodoperator= (const Period &)
void SetPeriod (time_t)
time_t GetPeriod () const
const sigc::slot< const char * > * istr () const
 operator std::string () const
bool operator< (const Period &) const
bool operator> (const Period &) const
bool operator<= (const Period &) const
bool operator>= (const Period &) const
bool operator== (const Period &) const
bool operator!= (const Period &) const

Constructor & Destructor Documentation

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.


Member Function Documentation

time_t Arc::Period::GetPeriod (  )  const

gets the period

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.

bool Arc::Period::operator!= ( const Period  )  const

Comparing two Period objects.

bool Arc::Period::operator< ( const Period  )  const

Comparing two Period objects.

bool Arc::Period::operator<= ( const Period  )  const

Comparing two Period objects.

Period& Arc::Period::operator= ( const Period  ) 

Assignment operator from a Period.

Period& Arc::Period::operator= ( time_t   ) 

Assignment operator from a time_t.

bool Arc::Period::operator== ( const Period  )  const

Comparing two Period objects.

bool Arc::Period::operator> ( const Period  )  const

Comparing two Period objects.

bool Arc::Period::operator>= ( const Period  )  const

Comparing two Period objects.

void Arc::Period::SetPeriod ( time_t   ) 

sets the period


The documentation for this class was generated from the following file:
Generated on Wed Jun 27 11:54:20 2012 for Hosting Environment (Daemon) by  doxygen 1.6.3