QDOS::TimeInterval Class Reference

#include <QdTime.h>

Inheritance diagram for QDOS::TimeInterval:

QDOS::QdTimeInterval

List of all members.

Public Types

enum  Sense_e { TIME_SENSE_NEGATIVE, NO_TIME_SENSE, TIME_SENSE_POSITIVE }
enum  SetOption_e {
  START_TIME, END_TIME, CENTER_TIME, CENTRE_TIME = CENTER_TIME,
  SAME_START_TIME, SAME_END_TIME, SAME_CENTER_TIME, SAME_DURATION
}
typedef enum
QDOS::TimeInterval::Sense_e 
Sense
typedef enum
QDOS::TimeInterval::SetOption_e 
SetOption

Public Member Functions

 TimeInterval ()
 TimeInterval (const TimeInterval &tint)
 TimeInterval (const Time &st, const Time &ed, Sense option=NO_TIME_SENSE)
Time start () const
Time end () const
Time start_abs () const
Time end_abs () const
Time duration () const
Time duration_abs () const
Sense get_sense () const
TimeIntervaloperator= (const TimeInterval &tint)
void set (const Time &st, const Time &ed, Sense option=NO_TIME_SENSE)
void force_sense (Sense option=TIME_SENSE_POSITIVE)
void set_start (const Time &st, SetOption option=SAME_END_TIME)
void set_end (const Time &ed, SetOption option=SAME_START_TIME)
void set_duration (const Time &d, SetOption option=SAME_START_TIME)
void set_duration (const Time &t, const Time &d, SetOption option=START_TIME)
void reverse ()
TimeIntervaloperator>> (const Time &ttime)
TimeIntervaloperator<< (const Time &ttime)
void shift_forward (double factor=1.0)
void shift_back (double factor=1.0)
TimeInterval int_intersect (const TimeInterval &ti) const
TimeInterval int_union (const TimeInterval &ti) const
bool contains (const Time &t) const
bool empty () const
bool operator== (const TimeInterval &ti) const
bool operator!= (const TimeInterval &ti) const
string iso_srep (const string &t_str=" ", const string &z_str="") const
void display () const

Private Attributes

Time _t1
Time _t2

Friends

Vostreamoperator<< (Vostream &, const TimeInterval &)
Vistreamoperator>> (Vistream &, TimeInterval &)


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
TIME_SENSE_NEGATIVE 
NO_TIME_SENSE 
TIME_SENSE_POSITIVE 

Enumerator:
START_TIME 
END_TIME 
CENTER_TIME 
CENTRE_TIME 
SAME_START_TIME 
SAME_END_TIME 
SAME_CENTER_TIME 
SAME_DURATION 


Constructor & Destructor Documentation

QDOS::TimeInterval::TimeInterval (  )  [inline]

QDOS::TimeInterval::TimeInterval ( const TimeInterval tint  )  [inline]

QDOS::TimeInterval::TimeInterval ( const Time st,
const Time ed,
Sense  option = NO_TIME_SENSE 
) [inline]


Member Function Documentation

bool QDOS::TimeInterval::contains ( const Time t  )  const

void QDOS::TimeInterval::display (  )  const [inline]

Time QDOS::TimeInterval::duration (  )  const [inline]

Time QDOS::TimeInterval::duration_abs (  )  const [inline]

bool QDOS::TimeInterval::empty (  )  const [inline]

Time QDOS::TimeInterval::end (  )  const [inline]

Time QDOS::TimeInterval::end_abs (  )  const [inline]

void QDOS::TimeInterval::force_sense ( Sense  option = TIME_SENSE_POSITIVE  )  [inline]

Sense QDOS::TimeInterval::get_sense (  )  const [inline]

TimeInterval QDOS::TimeInterval::int_intersect ( const TimeInterval ti  )  const

TimeInterval QDOS::TimeInterval::int_union ( const TimeInterval ti  )  const

string QDOS::TimeInterval::iso_srep ( const string &  t_str = " ",
const string &  z_str = "" 
) const [inline]

bool QDOS::TimeInterval::operator!= ( const TimeInterval ti  )  const [inline]

TimeInterval& QDOS::TimeInterval::operator<< ( const Time ttime  )  [inline]

TimeInterval& QDOS::TimeInterval::operator= ( const TimeInterval tint  )  [inline]

Reimplemented in QDOS::QdTimeInterval.

bool QDOS::TimeInterval::operator== ( const TimeInterval ti  )  const [inline]

TimeInterval& QDOS::TimeInterval::operator>> ( const Time ttime  )  [inline]

void QDOS::TimeInterval::reverse (  )  [inline]

void QDOS::TimeInterval::set ( const Time st,
const Time ed,
Sense  option = NO_TIME_SENSE 
) [inline]

void QDOS::TimeInterval::set_duration ( const Time t,
const Time d,
SetOption  option = START_TIME 
)

void QDOS::TimeInterval::set_duration ( const Time d,
SetOption  option = SAME_START_TIME 
)

void QDOS::TimeInterval::set_end ( const Time ed,
SetOption  option = SAME_START_TIME 
) [inline]

void QDOS::TimeInterval::set_start ( const Time st,
SetOption  option = SAME_END_TIME 
) [inline]

void QDOS::TimeInterval::shift_back ( double  factor = 1.0  )  [inline]

void QDOS::TimeInterval::shift_forward ( double  factor = 1.0  )  [inline]

Time QDOS::TimeInterval::start (  )  const [inline]

Time QDOS::TimeInterval::start_abs (  )  const [inline]


Friends And Related Function Documentation

Vostream& operator<< ( Vostream v_os,
const TimeInterval tint 
) [friend]

Vistream& operator>> ( Vistream v_is,
TimeInterval tint 
) [friend]


Member Data Documentation


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

Generated on Tue Dec 9 16:55:41 2008 for QSAS by  doxygen 1.5.7