Marsyas  0.5.0-beta1
Public Member Functions
TmTime Class Reference

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
virtual ~TmTime ()

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 38 of file TmTime.h.


Constructor & Destructor Documentation

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

constructor

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

Definition at line 24 of file TmTime.cpp.

~TmTime ( ) [virtual]

Definition at line 29 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.

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.

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

set everything

Parameters:
timer_namename of the timer
timestring representing the time

Definition at line 32 of file TmTime.cpp.

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

set the time

Parameters:
tstring representing the time

Definition at line 52 of file TmTime.cpp.

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

set the timer name

Parameters:
tstring representing the time

Definition at line 58 of file TmTime.cpp.


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