Celartem::TimeSpan Struct Reference

#include <cel_time.h>

List of all members.

Public Member Functions

ssize_t span () const
bool intersectsWith (const Time &t) const
bool intersectsWith (const TimeSpan &ts) const
void serialize (Stream *inStream, size_t inLevel, Endian inEndian) const
void deserialize (Stream *inStream, size_t inLevel, Endian inEndian)


Detailed Description

This struct stores a time span that consists from "from" and "to".

Definition at line 420 of file cel_time.h.


Member Function Documentation

ssize_t Celartem::TimeSpan::span (  )  const [inline]

This method calculates the time long in seconds between "from" and "to".

Returns:
The time long in seconds.

Definition at line 431 of file cel_time.h.

bool Celartem::TimeSpan::intersectsWith ( const Time t  )  const [inline]

This methods checks whether the specified time is in this TimeSpan or not.

Parameters:
t A Time value.
Returns:
true if the time is in this TimeSpan, otherwise false .

Definition at line 442 of file cel_time.h.

bool Celartem::TimeSpan::intersectsWith ( const TimeSpan ts  )  const [inline]

This methods checks whether the specified TimeSpan has intersects with this TimeSpan or not.

Parameters:
ts A TimeSpan value.
Returns:
true if the TimeSpan is intersects with this TimeSpan, otherwise false .

Definition at line 458 of file cel_time.h.

void Celartem::TimeSpan::serialize ( Stream inStream,
size_t  inLevel,
Endian  inEndian 
) const

This method is just a helper function to deal with SerializableData template. For more information, see SerializableData.

See also:
SerializableData,Serializable, DataStore

void Celartem::TimeSpan::deserialize ( Stream inStream,
size_t  inLevel,
Endian  inEndian 
)

This method is just a helper function to deal with SerializableData template. For more information, see SerializableData.

See also:
SerializableData,Serializable, DataStore


The documentation for this struct was generated from the following file:
This document is automatically generated using doxygen 1.5.4 at Fri Jun 27 18:23:24 2008.