TmTime Class Reference
[Scheduler]

TmTime. More...

#include <TmTime.h>


Public Member Functions

virtual std::string getTime ()
 get the time that this object represents
virtual std::string getTimeName ()
 get the name of the timer on which this time is specified.
virtual void set (std::string timer_name, std::string time)
 set everything
virtual void setTime (std::string t)
 set the time
virtual void setTimeName (std::string t)
 set the timer name
 TmTime (std::string timer_name, std::string time)
 constructor

Protected Attributes

std::string time_
 a string representation of time meaningful on a particular timer
std::string timer_name_
 the timer on which the specified time is meaningful


Detailed Description

TmTime.

Associates a string representation of a time interval with a timer name on which the interval makes sense.

Author:
Neil Burroughs inb@cs.uvic.ca

Definition at line 37 of file TmTime.h.


Constructor & Destructor Documentation

TmTime ( std::string  timer_name,
std::string  time 
)

constructor

Parameters:
timer_name the timer on which the specified time is meaningful
time a string representing a point in time on a given timer

Definition at line 24 of file TmTime.cpp.


Member Function Documentation

std::string getTime (  )  [virtual]

get the time that this object represents

Returns:
a string representation of the time

Definition at line 39 of file TmTime.cpp.

References TmTime::time_.

std::string getTimeName (  )  [virtual]

get the name of the timer on which this time is specified.

Returns:
the name of the timer

Definition at line 46 of file TmTime.cpp.

References TmTime::timer_name_.

void set ( std::string  timer_name,
std::string  time 
) [virtual]

set everything

Parameters:
timer_name name of the timer
time string representing the time

Definition at line 32 of file TmTime.cpp.

References TmTime::time_, and TmTime::timer_name_.

void setTime ( std::string  t  )  [virtual]

set the time

Parameters:
t string representing the time

Definition at line 52 of file TmTime.cpp.

References TmTime::time_.

void setTimeName ( std::string  t  )  [virtual]

set the timer name

Parameters:
t string representing the time

Definition at line 58 of file TmTime.cpp.

References TmTime::timer_name_.


The documentation for this class was generated from the following files:

Generated on Wed May 23 00:02:23 2012 for Marsyas by  doxygen 1.5.6