Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

SSA_Time Class Reference

Time storage class. More...

#include <SSA_Time.h>


Public Member Functions

 SSA_Time (void)
 The Constructor.

 ~SSA_Time (void)
 The Destructor.

SSA_Time operator+ (SSA_Time Time2)
 Operator + overload (between 2 SSA_Time).

SSA_Time operator- (SSA_Time Time2)
 Operator - overload (between 2 SSA_Time).

SSA_Time operator/ (int divisor)
 Operator / overload (with an integer).

bool operator<= (SSA_Time Time2)
 Overloaded operator <.

bool operator>= (SSA_Time Time2)
 Overloaded operator >.

void ParseSSA_Time (char *Time)
 Parse a string contening a time.

char * Tostring ()
 Convert the class into a string.


Data Fields

int Hour
 Stock the numbers of hour.

int Minute
 Stock the numbers of minutes.

int Second
 Stock the numbers of seconds.

int Milisecond
 Stock the numbers of miliseconds.

char Retour [11]
 Stock data for string conversion.


Detailed Description

Time storage class.

This class store the time and allow some basics operation Utilised in C_Events_List

See also:
C_Events_List


Constructor & Destructor Documentation

SSA_Time::SSA_Time void   ) 
 

The Constructor.

Set to 0 all the values

SSA_Time::~SSA_Time void   ) 
 

The Destructor.

Do absolutely nothing


Member Function Documentation

SSA_Time SSA_Time::operator+ SSA_Time  Time2  ) 
 

Operator + overload (between 2 SSA_Time).

Parameters:
Time2 A SSA_Time
Returns:
A SSA_Time with the result of the addition

SSA_Time SSA_Time::operator- SSA_Time  Time2  ) 
 

Operator - overload (between 2 SSA_Time).

This operator allow to get easely a duration

Parameters:
Time 2 A SSA_Time
Returns:
A SSA_Time with the result of the soustraction
See also:
C_Events_List::Duration

SSA_Time SSA_Time::operator/ int  divisor  ) 
 

Operator / overload (with an integer).

Used to determine the half duration for spliting events

Parameters:
divisor what to say? you no to do a division ;)
Returns:
a SSA_Time divised (all value are divided)

bool SSA_Time::operator<= SSA_Time  Time2  ) 
 

Overloaded operator <.

Can determine if a time is after this.

Parameters:
Time2 Second part of the comparaison
Returns:
True if the time is after, false otherwise

bool SSA_Time::operator>= SSA_Time  Time2  ) 
 

Overloaded operator >.

Can determine if a time is before this.

Parameters:
Time2 Second part of the comparaison
Returns:
True if the time is before, false otherwise

void SSA_Time::ParseSSA_Time char *  Time  ) 
 

Parse a string contening a time.

The string can come from an text edit or a file

Parameters:
Time The string wich contain the data to parse
See also:
C_Events_List

char * SSA_Time::Tostring  ) 
 

Convert the class into a string.

The string can be displayed or writed into a .ssa file

See also:
Retour


Field Documentation

int SSA_Time::Hour
 

Stock the numbers of hour.

int SSA_Time::Milisecond
 

Stock the numbers of miliseconds.

int SSA_Time::Minute
 

Stock the numbers of minutes.

char SSA_Time::Retour[11]
 

Stock data for string conversion.

Used only in Tostring()

See also:
Tostring()

int SSA_Time::Second
 

Stock the numbers of seconds.


The documentation for this class was generated from the following files:
Generated on Thu Jul 3 15:19:54 2003 for Sub Station Beta by doxygen1.3