Public Member Functions | List of all members
Celartem::TimeSpan Struct Reference

#include <cel_time.h>

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".

Member Function Documentation

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
bool Celartem::TimeSpan::intersectsWith ( const Time t) const
inline

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

Parameters
tA Time value.
Returns
true if the time is in this TimeSpan, otherwise false .
bool Celartem::TimeSpan::intersectsWith ( const TimeSpan ts) const
inline

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

Parameters
tsA TimeSpan value.
Returns
true if the TimeSpan is intersects with this TimeSpan, otherwise false .
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
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.

The documentation for this struct was generated from the following file:

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:06.
Cuminas Logo