WXP::DateRange Class Reference

This class is used to set a valid range of time. More...

#include "../include/DateRange.h"

List of all members.

Public Member Functions

 DateRange ()
 DateRange (Date &rdate, int rpre, int rpost)
int set (Date &rdate, int rpre, int rpost)
int set (int rpre, int rpost)
int set (Date &rdate)
int init ()
bool valid (Date &date)
bool valid (int secs)
int print ()

Detailed Description

This class is used to set a valid range of time.

Author:
Dan Vietor

Constructor & Destructor Documentation

DateRange::DateRange (  ) 

Constructor. Initializes the class values

References init().

DateRange::DateRange ( Date date,
int  pre,
int  post 
)

Constructor. Sets the valid range

Parameters:
date The base date
pre The number of minutes prior to time
post The number of minutes after the time

References init().


Member Function Documentation

int DateRange::init (  ) 

Initializes the object

References WXP::Const::MISS.

Referenced by DateRange().

int DateRange::set ( Date date,
int  rpre,
int  rpost 
)

Sets the valid range

Parameters:
date The base date
rpre The number of minutes prior to time
rpost The number of minutes after the time

References WXP::Date::getSeconds().

Referenced by WXP::UpaDecode::decode(), WXP::RcmDecode::decode(), WXP::UpaDecode::init(), and WXP::UpaDecode::setParam().

bool DateRange::valid ( int  rsecs  ) 

Checks to see if date is within range

Parameters:
date Date to check
Returns:
True if within
bool DateRange::valid ( Date date  ) 

Checks to see if date is within range

Parameters:
date Date to check
Returns:
True if within

References WXP::Date::getSeconds().

Referenced by WXP::UpaDecode::decode(), and WXP::LightPlot::draw().


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

Generated on 8 Jan 2010 for WXP C++ Library by  doxygen 1.6.1